:root {
  --tlfp-ink: #242321;
  --tlfp-body: #5d5952;
  --tlfp-muted: #807d77;
  --tlfp-gold: #b3a27a;
  --tlfp-gold-dark: #8f7e59;
  --tlfp-line: #ddd1b7;
  --tlfp-line-soft: #e9e2d3;
  --tlfp-cream: #f7f3eb;
  --tlfp-white: #fffefa;
  --tlfp-display: "Playfair Display", Georgia, serif;
  --tlfp-body-font: "Open Sans", sans-serif;
}

.tlfp-eyebrow {
  margin: 0 0 7px;
  color: #927f52;
  font: 700 12px/1.35 var(--tlfp-body-font);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.tlfp-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--tlfp-gold);
  border-radius: 0;
  background: var(--tlfp-gold);
  color: #fff !important;
  cursor: pointer;
  font: 700 13px/1.3 var(--tlfp-body-font);
  letter-spacing: .045em;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.tlfp-button:hover,
.tlfp-button:focus-visible {
  border-color: var(--tlfp-gold-dark);
  background: var(--tlfp-gold-dark);
  color: #fff !important;
}

.tlfp-button:disabled {
  cursor: default;
  opacity: .66;
}

/* Finder save panel */
.tlfp-save-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 26px 0 34px;
  padding: 22px 24px;
  border: 1px solid var(--tlfp-line);
  background: var(--tlfp-cream);
  color: var(--tlfp-ink);
  font-family: var(--tlfp-body-font);
}

.tlfp-save-panel__copy strong,
.tlfp-save-panel__copy span {
  display: block;
}

.tlfp-save-panel__copy strong {
  margin-bottom: 4px;
  font: 700 18px/1.35 var(--tlfp-body-font);
}

.tlfp-save-panel__copy span {
  color: var(--tlfp-body);
  font-size: 14px;
  line-height: 1.55;
}

.tlfp-save-panel__action {
  min-width: 235px;
  text-align: right;
}

.tlfp-save-panel__action .tlfp-button {
  width: 100%;
}

.tlfp-save-panel__status {
  max-width: 320px;
  margin: 8px 0 0;
  color: var(--tlfp-body);
  font-size: 12px;
  line-height: 1.45;
}

.tlfp-save-panel__status:empty {
  display: none;
}

.tlfp-save-panel__status.is-error {
  color: #8f3831;
}

.tlfp-save-panel__status.is-success a {
  color: var(--tlfp-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tlfp-save-panel.is-saved .tlfp-button {
  border-color: #b8b1a2;
  background: transparent;
  color: var(--tlfp-ink) !important;
}

/* Compact registration and login */
body.tlfp-modal-open {
  overflow: hidden;
}

.tlfp-modal[hidden],
.tlfp-modal [hidden] {
  display: none !important;
}

.tlfp-modal {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: var(--tlfp-body-font);
}

.tlfp-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(26, 25, 23, .65);
  cursor: default;
}

.tlfp-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 38px 40px 34px;
  border: 1px solid var(--tlfp-line);
  background: var(--tlfp-white);
  box-shadow: 0 24px 70px rgba(25, 23, 19, .28);
  color: var(--tlfp-body);
}

.tlfp-modal__dialog h2 {
  margin: 0 38px 12px 0;
  color: var(--tlfp-ink);
  font: 600 32px/1.16 var(--tlfp-display);
}

.tlfp-modal__dialog > div > p:not(.tlfp-eyebrow):not(.tlfp-modal__legal):not(.tlfp-modal__links) {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
}

.tlfp-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tlfp-ink);
  cursor: pointer;
  font: 300 31px/1 var(--tlfp-body-font);
}

.tlfp-modal form {
  display: grid;
  gap: 9px;
}

.tlfp-modal label {
  margin-top: 4px;
  color: var(--tlfp-ink);
  font-size: 13px;
  font-weight: 700;
}

.tlfp-modal input[type="email"],
.tlfp-modal input[type="password"] {
  width: 100%;
  height: 50px;
  margin: 0 0 6px;
  padding: 10px 13px;
  border: 1px solid #cfc6b3;
  border-radius: 0;
  background: #fff;
  color: var(--tlfp-ink);
  font: 16px/1.3 var(--tlfp-body-font);
  box-shadow: none;
}

.tlfp-modal input:focus {
  border-color: var(--tlfp-gold-dark);
  outline: 2px solid rgba(179, 162, 122, .24);
  outline-offset: 1px;
}

.tlfp-modal form .tlfp-button {
  width: 100%;
  margin-top: 6px;
}

.tlfp-form-status {
  min-height: 18px;
  margin: 3px 0 0;
  color: #8f3831;
  font-size: 12px;
  line-height: 1.45;
}

.tlfp-modal__legal,
.tlfp-modal__links {
  margin: 14px 0 0;
  color: var(--tlfp-muted);
  font-size: 11px;
  line-height: 1.5;
}

.tlfp-modal a {
  color: var(--tlfp-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tlfp-switch-auth {
  min-height: 44px;
  margin: 14px 0 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--tlfp-ink);
  cursor: pointer;
  font: 700 13px/1.4 var(--tlfp-body-font);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tlfp-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* My Account collection */
.tlfp-account {
  --tlfp-content: min(100%, 920px);
  width: var(--tlfp-content);
  color: var(--tlfp-body);
  font-family: var(--tlfp-body-font);
}

.tlfp-account__header {
  margin-bottom: 30px;
}

.tlfp-account__header h2 {
  margin: 0 0 12px;
  color: var(--tlfp-ink);
  font: 600 clamp(32px, 4vw, 48px)/1.12 var(--tlfp-display);
}

.tlfp-account__header > p:last-child {
  max-width: 720px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.tlfp-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tlfp-profile-card,
.tlfp-empty {
  padding: 24px;
  border: 1px solid var(--tlfp-line-soft);
  background: var(--tlfp-white);
}

.tlfp-profile-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
}

.tlfp-profile-card__date {
  margin: 0 0 12px;
  color: #927f52;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.tlfp-profile-card h3,
.tlfp-empty h3 {
  margin: 0 0 8px;
  color: var(--tlfp-ink);
  font: 600 25px/1.25 var(--tlfp-display);
}

.tlfp-profile-card__count {
  margin: 0 0 18px;
  color: var(--tlfp-muted);
  font-size: 13px;
}

.tlfp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tlfp-chips span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(33, 33, 33, .16);
  border-radius: 0;
  background: #fff;
  color: rgba(33, 33, 33, .82);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.tlfp-profile-card__actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
}

.tlfp-text-button {
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--tlfp-ink);
  cursor: pointer;
  font: 700 12px/1.4 var(--tlfp-body-font);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tlfp-back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--tlfp-ink) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.tlfp-saved-blocks {
  display: grid;
  gap: 30px;
}

.tlfp-saved-block {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(179, 162, 122, .22);
  border-radius: 6px;
  background: #faf8f4;
}

.tlfp-saved-block h3 {
  margin: 0 0 13px;
  color: #212121;
  font: 500 clamp(1.45rem, 3vw, 2.2rem)/1.05 var(--tlfp-display);
}

.tlfp-saved-block > p:not(.tlfp-eyebrow),
.tlfp-block-copy > p:not(.tlfp-eyebrow) {
  margin: 0 0 20px;
  color: #82786e;
  font-size: .86rem;
  line-height: 1.55;
}

.tlfp-saved-block--profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 30px;
  align-items: center;
}

/* Exact Finder result-page flower geometry, scoped to My Account. */
.tlfp-account .tlf-profile-flower {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 1;
  margin: 10px auto 0;
  transform: none;
}

.tlfp-account .tlf-profile-flower::before,
.tlfp-account .tlf-profile-flower::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.tlfp-account .tlf-profile-flower::before {
  inset: 7%;
  border: 1px solid rgba(179, 162, 122, .18);
}

.tlfp-account .tlf-profile-flower::after {
  inset: 30%;
  border: 1px solid rgba(33, 33, 33, .08);
}

.tlfp-account .tlf-flower__spoke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--rot));
  transform-origin: 0 0;
}

.tlfp-account .tlf-flower__petal {
  width: 50px;
  height: calc(88px + var(--v) * 1.22px);
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 999px 999px 32px 32px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 76%, #fff), var(--c));
  box-shadow: 0 10px 24px rgba(33, 33, 33, .08);
  opacity: .88;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
}

.tlfp-account .tlf-flower__label {
  position: absolute;
  left: 0;
  top: calc(-116px - var(--v) * 1.22px);
  z-index: 4;
  display: grid;
  gap: 2px;
  min-width: 54px;
  color: rgba(33, 33, 33, .76);
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(var(--label-rot));
}

.tlfp-account .tlf-flower__label small {
  color: #8d7951;
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.tlfp-account .tlf-profile-flower__center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(179, 162, 122, .32);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #fff 38%, #faf8f4 100%);
  box-shadow: 0 14px 28px rgba(33, 33, 33, .08);
  color: #8d7951;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

/* Saved taste directions */
.tlfp-direction-list {
  display: grid;
  gap: 19px;
  margin-top: 22px;
}

.tlfp-direction {
  border: 1px solid var(--tlfp-line);
  background: #fff;
}

.tlfp-direction summary {
  position: relative;
  display: grid;
  min-height: 105px;
  grid-template-columns: minmax(0, 1fr) auto 190px 28px;
  grid-template-areas: "code count segments chevron" "title count segments chevron";
  gap: 4px 14px;
  align-items: center;
  padding: 17px 20px;
  color: var(--tlfp-ink);
  cursor: pointer;
  list-style: none;
}

.tlfp-direction summary::-webkit-details-marker {
  display: none;
}

.tlfp-direction__code {
  grid-area: code;
  color: #927f52;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tlfp-direction__title {
  grid-area: title;
  font: 700 18px/1.3 var(--tlfp-body-font);
}

.tlfp-direction__count {
  grid-area: count;
  padding: 5px 9px;
  border: 1px solid var(--tlfp-line-soft);
  border-radius: 999px;
  color: #7d6a42;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tlfp-direction__segments {
  grid-area: segments;
  display: grid;
  height: 56px;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--tlfp-line);
  border-radius: 999px;
}

.tlfp-direction__segments span {
  min-width: 0;
  overflow: hidden;
}

.tlfp-direction__segments img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tlfp-direction__chevron {
  grid-area: chevron;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid #8c7a55;
  border-bottom: 1.5px solid #8c7a55;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .18s ease;
}

.tlfp-direction[open] .tlfp-direction__chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.tlfp-direction__body {
  padding: 22px;
  border-top: 1px solid var(--tlfp-line-soft);
  background: #fbfaf7;
}

.tlfp-direction__body > p {
  margin: 0 0 18px;
  color: var(--tlfp-muted);
  font-size: 13px;
  line-height: 1.6;
}

.tlfp-product-rows {
  display: grid;
  gap: 8px;
}

.tlfp-product-row {
  display: grid;
  min-height: 82px;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 6px 12px 6px 6px;
  border: 1px solid #ece8df;
  background: #fff;
}

.tlfp-product-row__image {
  display: block;
  width: 70px;
  height: 70px;
  overflow: hidden;
  background: var(--tlfp-cream);
}

.tlfp-product-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tlfp-product-row h4 {
  margin: 0 0 3px;
  font: 600 18px/1.25 var(--tlfp-display);
}

.tlfp-product-row h4 a,
.tlfp-product-row__link {
  color: var(--tlfp-ink) !important;
  text-decoration: none !important;
}

.tlfp-product-row__price {
  color: var(--tlfp-muted);
  font-size: 12px;
}

.tlfp-product-row__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.tlfp-detail-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--tlfp-line);
  background: var(--tlfp-cream);
}

@media (max-width: 820px) {
  .tlfp-save-panel {
    grid-template-columns: 1fr;
    gap: 17px;
    margin: 20px 0 28px;
    padding: 20px;
  }

  .tlfp-save-panel__action {
    min-width: 0;
    text-align: left;
  }

  .tlfp-save-panel__action .tlfp-button {
    min-height: 50px;
  }

  .tlfp-modal {
    align-items: end;
    padding: 0;
  }

  .tlfp-modal__dialog {
    width: 100%;
    max-height: min(88vh, 760px);
    padding: 30px 22px calc(25px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow: 0 -16px 55px rgba(25, 23, 19, .28);
  }

  .tlfp-modal__dialog h2 {
    font-size: 29px;
  }

  .tlfp-profile-grid {
    grid-template-columns: 1fr;
  }

  .tlfp-profile-card {
    min-height: 0;
  }

  .tlfp-saved-block {
    padding: 28px 18px 26px;
  }

  .tlfp-saved-block--profile {
    grid-template-columns: 1fr;
  }

  .woocommerce-MyAccount-content .tlfp-account .tlfp-saved-block h3 {
    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: .92rem !important;
    font-weight: 650 !important;
    line-height: 1.32 !important;
  }

  .tlfp-saved-block--selection .tlfp-chips {
    gap: 4px 5px;
  }

  .tlfp-saved-block--selection .tlfp-chips span {
    min-height: 20px;
    padding: 0 6px;
    font-size: .49rem;
    letter-spacing: .045em;
  }

  .tlfp-account .tlf-profile-flower {
    width: min(310px, 100%);
    margin: 64px auto 12px;
    transform: translateX(-8px);
  }

  .tlfp-account .tlf-flower__petal {
    width: 38px;
    height: calc(66px + var(--v) * .9px);
  }

  .tlfp-account .tlf-flower__label {
    top: calc(-88px - var(--v) * .9px);
    min-width: 48px;
    font-size: .42rem;
  }

  .tlfp-account .tlf-profile-flower__center {
    width: 88px;
    height: 88px;
    font-size: .52rem;
  }

  .tlfp-direction summary {
    min-height: 112px;
    grid-template-columns: minmax(0, 1fr) auto 28px;
    grid-template-areas: "code count chevron" "title title chevron" "segments segments segments";
    padding: 14px 14px 12px;
  }

  .tlfp-direction__segments {
    width: 142px;
    height: 38px;
    margin-top: 5px;
  }

  .tlfp-direction__body {
    padding: 16px 12px;
  }

  .tlfp-product-row {
    min-height: 69px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 5px 9px 5px 5px;
  }

  .tlfp-product-row__image {
    width: 58px;
    height: 58px;
  }

  .tlfp-product-row h4 {
    font-size: 16px;
  }

  .tlfp-detail-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .tlfp-detail-actions .tlfp-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .tlfp-account__header h2 {
    font-size: 34px;
  }

  .tlfp-profile-card__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tlfp-profile-card__actions .tlfp-button {
    width: 100%;
  }

  .tlfp-direction__title {
    font-size: 16px;
  }

  .tlfp-product-row__link {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlfp-button,
  .tlfp-direction__chevron {
    transition: none;
  }
}
