.sagrista-routine-page {
  background: #f6f8f7;
  color: #1e2b29;
  font-size: 16px;
}

.sagrista-routine-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.sagrista-routine-hero,
.sagrista-routine-result-hero {
  padding: 56px 0 42px;
  background: #ffffff;
  border-bottom: 1px solid #d8e2de;
  text-align: center;
}

.sagrista-routine-hero__grid,
.sagrista-routine-result-hero__grid,
.sagrista-routine-home-cta__inner {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.sagrista-routine-kicker {
  margin: 0 0 10px;
  color: #2f6f63;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sagrista-routine-hero h1,
.sagrista-routine-result-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  color: #1e2b29;
  font-size: 46px;
  line-height: 1.08;
  text-align: center;
}

.sagrista-routine-hero p,
.sagrista-routine-result-hero p,
.sagrista-routine-home-cta p {
  max-width: 720px;
  margin: 0 auto;
  color: #50615f;
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
}

.sagrista-routine-quiz,
.sagrista-routine-result {
  padding: 42px 0 70px;
}

.sagrista-routine-quiz__form,
.sagrista-routine-result__intro,
.sagrista-routine-steps,
.sagrista-routine-advice,
.sagrista-routine-empty,
.sagrista-routine-buybox,
.sagrista-routine-private {
  background: #ffffff;
  border: 1px solid #d8e2de;
  border-radius: 0;
  padding: 30px;
}

.sagrista-routine-quiz__form {
  max-width: 900px;
  margin: 0 auto;
}

.sagrista-routine-progress {
  height: 8px;
  overflow: hidden;
  background: #e6ece9;
  border-radius: 0;
  margin-bottom: 30px;
}

.sagrista-routine-progress span {
  display: block;
  height: 100%;
  background: #2f6f63;
  border-radius: 0;
  transition: width 180ms ease;
}

.sagrista-routine-step {
  display: none;
  border: 0;
  margin: 0;
  padding: 0;
  text-align: center;
}

.sagrista-routine-step.is-active {
  display: block;
}

.sagrista-routine-step legend {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px;
  color: #1e2b29;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.sagrista-routine-step legend span {
  color: #687874;
  font-size: 13px;
  font-weight: 700;
}

.sagrista-routine-step__help {
  max-width: 620px;
  margin: 0 auto 24px;
  color: #5b6b68;
  line-height: 1.6;
  text-align: center;
}

.sagrista-routine-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.sagrista-routine-option {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #d8e2de;
  border-radius: 0;
  background: #fbfcfc;
  color: #243532;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
  padding: 16px;
  text-align: center;
}

.sagrista-routine-option input {
  flex: 0 0 auto;
  accent-color: #2f6f63;
}

.sagrista-routine-option.is-selected,
.sagrista-routine-option:has(input:checked) {
  border-color: #2f6f63;
  background: #edf6f2;
  box-shadow: inset 0 0 0 1px #2f6f63;
}

.sagrista-routine-actions,
.sagrista-routine-restart,
.sagrista-routine-private__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.sagrista-routine-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #2f6f63;
  border-radius: 0;
  background: #2f6f63;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  padding: 13px 22px;
  text-align: center;
  text-decoration: none;
}

.sagrista-routine-button:hover,
.sagrista-routine-button:focus {
  color: #ffffff;
  background: #25594f;
  text-decoration: none;
}

.sagrista-routine-button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.sagrista-routine-button--ghost {
  background: #ffffff;
  color: #2f6f63;
}

.sagrista-routine-button--ghost:hover,
.sagrista-routine-button--ghost:focus {
  background: #edf6f2;
  color: #25594f;
}

.sagrista-routine-button--dark,
.sagrista-routine-button--buy,
.sagrista-routine-button--private {
  border-color: #1e2b29;
  background: #1e2b29;
}

.sagrista-routine-button--buy,
.sagrista-routine-button--private {
  min-height: 56px;
  padding-inline: 28px;
}

.sagrista-routine-home-cta {
  background: #ffffff;
  border-top: 1px solid #d8e2de;
  border-bottom: 1px solid #d8e2de;
  padding: 34px 0;
  text-align: center;
}

.sagrista-routine-home-cta h2,
.sagrista-routine-result h2 {
  margin: 0 0 10px;
  color: #1e2b29;
  font-size: 28px;
  line-height: 1.22;
  text-align: center;
}

.sagrista-routine-result {
  display: grid;
  gap: 28px;
}

.sagrista-routine-buybox {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  justify-items: center;
  border-color: #2f6f63;
  text-align: center;
}

.sagrista-routine-buybox p,
.sagrista-routine-result__intro p,
.sagrista-routine-advice p,
.sagrista-routine-empty p,
.sagrista-routine-private p {
  max-width: 760px;
  margin: 0 auto;
  color: #50615f;
  line-height: 1.7;
  text-align: center;
}

.sagrista-routine-products-head {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 4px;
  text-align: center;
}

.sagrista-routine-products-head__price {
  margin: 0;
  color: #50615f;
  font-weight: 800;
}

.sagrista-routine-steps ol {
  display: grid;
  max-width: 760px;
  gap: 12px;
  margin: 0 auto;
  padding-left: 22px;
  text-align: left;
}

.sagrista-routine-score {
  min-width: 210px;
  border: 1px solid #d8e2de;
  border-radius: 0;
  background: #f9fbfa;
  padding: 22px;
  text-align: center;
}

.sagrista-routine-score span,
.sagrista-routine-score small {
  display: block;
  color: #60716e;
  font-weight: 700;
}

.sagrista-routine-score strong {
  display: block;
  color: var(--routine-accent, #2f6f9f);
  font-size: 52px;
  line-height: 1;
}

.sagrista-routine-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.sagrista-routine-product {
  display: grid;
  overflow: hidden;
  border: 1px solid #d8e2de;
  border-radius: 0;
  background: #ffffff;
  text-align: center;
}

.sagrista-routine-product__image {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  background: #f1f5f3;
}

.sagrista-routine-product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.sagrista-routine-product__image span {
  color: #2f6f63;
  font-size: 38px;
  font-weight: 800;
}

.sagrista-routine-product__body {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 16px;
}

.sagrista-routine-product__body > span {
  color: #2f6f63;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sagrista-routine-product h3 {
  min-height: 60px;
  margin: 0;
  font-size: 15px;
  line-height: 1.32;
}

.sagrista-routine-product h3 a {
  color: #1e2b29;
}

.sagrista-routine-product__meta {
  display: grid;
  gap: 4px;
}

.sagrista-routine-product__meta strong {
  color: #1e2b29;
  font-size: 17px;
}

.sagrista-routine-product__meta small {
  color: #9a4d33;
  font-weight: 700;
}

.sagrista-routine-cart-message,
.sagrista-routine-private__message {
  min-height: 24px;
  margin: 14px 0 0;
  color: #2f6f63;
  font-weight: 800;
  text-align: center;
}

.sagrista-routine-cart-message.is-error,
.sagrista-routine-private__message.is-error {
  color: #a83b34;
}

.sagrista-routine-private {
  display: grid;
  gap: 22px;
  border-color: #1e2b29;
  text-align: center;
}

.sagrista-routine-private__form,
.sagrista-routine-private__login {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.sagrista-routine-private__consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  width: min(100%, 760px);
  margin: 0 auto;
  color: #4d5d59;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.sagrista-routine-private__consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.sagrista-routine-private__consent a {
  color: #2f6f63;
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 1199px) {
  .sagrista-routine-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sagrista-routine-page {
    font-size: 15px;
  }

  .sagrista-routine-hero,
  .sagrista-routine-result-hero {
    padding: 46px 0 36px;
  }

  .sagrista-routine-hero h1,
  .sagrista-routine-result-hero h1 {
    font-size: 36px;
  }

  .sagrista-routine-step legend {
    font-size: 26px;
  }

  .sagrista-routine-options,
  .sagrista-routine-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sagrista-routine-shell {
    width: min(100% - 20px, 1120px);
  }

  .sagrista-routine-page {
    font-size: 14px;
  }

  .sagrista-routine-hero,
  .sagrista-routine-result-hero {
    padding: 34px 0 28px;
  }

  .sagrista-routine-hero h1,
  .sagrista-routine-result-hero h1 {
    font-size: 30px;
  }

  .sagrista-routine-hero p,
  .sagrista-routine-result-hero p,
  .sagrista-routine-home-cta p {
    font-size: 15px;
  }

  .sagrista-routine-quiz,
  .sagrista-routine-result {
    padding: 26px 0 48px;
  }

  .sagrista-routine-quiz__form,
  .sagrista-routine-result__intro,
  .sagrista-routine-steps,
  .sagrista-routine-advice,
  .sagrista-routine-empty,
  .sagrista-routine-buybox,
  .sagrista-routine-private {
    padding: 20px;
  }

  .sagrista-routine-step legend {
    font-size: 22px;
  }

  .sagrista-routine-options,
  .sagrista-routine-products {
    grid-template-columns: 1fr;
  }

  .sagrista-routine-actions,
  .sagrista-routine-private__actions {
    flex-direction: column;
  }

  .sagrista-routine-button {
    width: 100%;
    min-height: 50px;
  }
}
