/* Coquette — Free Video Offer. Colours come from the settings page via --cfvo-bg / --cfvo-fg on the bar. */

/* ---- Announcement bar: in normal flow at the very top of <body>, standing in for the header's dark strip.
 *      Desktop: both messages on one line with a small heart between. Phones: the two crossfade in place. ---- */
.cfvo-bar {
  position: relative;
  z-index: 61; /* over the header's own strip (.cjc-announce, 60), under the mobile menu (65) and nav (70) */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: calc(37px + env(safe-area-inset-top, 0px));
  margin: 0;
  padding: calc(8px + env(safe-area-inset-top, 0px)) calc(44px + env(safe-area-inset-right, 0px)) 8px calc(44px + env(safe-area-inset-left, 0px));
  background: var(--cfvo-bg, #221C1E);
  color: var(--cfvo-fg, #F8F4F1);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-align: center;
}
html.cfvo-dismissed .cfvo-bar { display: none; }

.cfvo-bar__msgs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  min-width: 0;
}
.cfvo-bar__msg { color: inherit; text-wrap: balance; }
.cfvo-bar__msg--offer,
.cfvo-bar__msg--offer:visited {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(216, 180, 184, .55);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 200ms;
}
.cfvo-bar__msg--offer:hover { text-decoration-color: currentColor; }
.cfvo-bar__msg--second { opacity: .82; }
.cfvo-bar__sep { display: inline-flex; color: var(--cjc-pink, #D8B4B8); }
.cfvo-bar__sep svg { width: 10px; height: 10px; fill: currentColor; }

.cfvo-bar__close {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  bottom: 0;
  right: env(safe-area-inset-right, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  opacity: 0.6;
  cursor: pointer;
}
.cfvo-bar__close:hover { opacity: 1; }
.cfvo-bar__close:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; border-radius: 6px; }
.cfvo-bar__msg--offer:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }

/* Phones and small tablets: one message at a time, crossfading every few seconds. */
@media (max-width: 899px) {
  .cfvo-bar { font-size: 12.5px; letter-spacing: 0.02em; padding-left: calc(40px + env(safe-area-inset-left, 0px)); padding-right: calc(40px + env(safe-area-inset-right, 0px)); }
  .cfvo-bar--two .cfvo-bar__msgs { display: grid; gap: 0; }
  .cfvo-bar--two .cfvo-bar__sep { display: none; }
  .cfvo-bar--two .cfvo-bar__msg { grid-area: 1 / 1; }
  .cfvo-bar__msg--offer { text-decoration-color: rgba(216, 180, 184, .4); text-underline-offset: 3px; line-height: 1.5; }
  .cfvo-bar--two .cfvo-bar__msg--second { opacity: 0; }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .cfvo-bar--two .cfvo-bar__msg--offer  { animation: cfvo-swap-a 10s ease-in-out infinite; }
  .cfvo-bar--two .cfvo-bar__msg--second { animation: cfvo-swap-b 10s ease-in-out infinite; }
  .cfvo-bar--two:hover .cfvo-bar__msg,
  .cfvo-bar--two:focus-within .cfvo-bar__msg { animation-play-state: paused; }
}
/* No motion wanted: both messages stacked instead. */
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .cfvo-bar--two .cfvo-bar__msg { grid-area: auto; }
  .cfvo-bar--two .cfvo-bar__msg--second { opacity: .82; }
}
@keyframes cfvo-swap-a { 0%, 44% { opacity: 1; visibility: visible; } 50%, 94% { opacity: 0; visibility: hidden; } 100% { opacity: 1; visibility: visible; } }
@keyframes cfvo-swap-b { 0%, 44% { opacity: 0; visibility: hidden; } 50%, 94% { opacity: .82; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }

/* Three messages: all on one line on wide screens; below 1280px they take turns, 5s each. */
@media (max-width: 1279px) {
  .cfvo-bar--three .cfvo-bar__msgs { display: grid; gap: 0; }
  .cfvo-bar--three .cfvo-bar__sep { display: none; }
  .cfvo-bar--three .cfvo-bar__msg { grid-area: 1 / 1; --cfvo-o: 1; }
  .cfvo-bar--three .cfvo-bar__msg--second { --cfvo-o: .82; opacity: 0; }
}
@media (max-width: 1279px) and (prefers-reduced-motion: no-preference) {
  .cfvo-bar--three .cfvo-bar__msg { animation: cfvo-swap-3 15s ease-in-out infinite; }
  .cfvo-bar--three .cfvo-bar__msg--second { animation-delay: -10s; }
  .cfvo-bar--three .cfvo-bar__msg--third { animation-delay: -5s; }
  .cfvo-bar--three:hover .cfvo-bar__msg,
  .cfvo-bar--three:focus-within .cfvo-bar__msg { animation-play-state: paused; }
}
@media (max-width: 1279px) and (prefers-reduced-motion: reduce) {
  .cfvo-bar--three .cfvo-bar__msg { grid-area: auto; }
  .cfvo-bar--three .cfvo-bar__msg--second { opacity: .82; }
}
@keyframes cfvo-swap-3 { 0%, 29% { opacity: var(--cfvo-o, 1); visibility: visible; } 33.4%, 95.6% { opacity: 0; visibility: hidden; } 100% { opacity: var(--cfvo-o, 1); visibility: visible; } }

/* ---- Product page card, printed inside the Oxygen Price element (which sets a 40px serif),
 *      so every size and family is reset here. The hearts are the week's spots: rose = still open. ---- */
.cfvo-card {
  --cfvo-rose: #B67D88;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 18px 0 4px;
  padding: 16px 18px 15px 16px;
  background: #F4E6E9;
  border: 1px solid rgba(182, 125, 136, .32);
  border-radius: var(--cjc-radius-sm, 16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
  color: var(--cjc-ink, #221C1E);
  font-family: var(--cjc-font-sans, 'Jost', sans-serif);
  font-size: 14px;
  font-variant-numeric: normal;
  line-height: 1.45;
  text-align: left;
}
.cfvo-card p { margin: 0; }

.cfvo-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cjc-ivory, #F8F4F1);
  border: 1px solid rgba(182, 125, 136, .4);
  color: var(--cfvo-rose);
}
.cfvo-card__badge svg { fill: currentColor; margin-left: 2px; }

.cfvo-card__title {
  font-family: var(--cjc-font-serif, 'Cormorant Garamond', serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--cjc-ink, #221C1E);
}
.cfvo-card__sub {
  margin-top: 3px !important;
  color: var(--cjc-mauve, #6B5756);
  font-size: 14px;
}

.cfvo-card__spots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(182, 125, 136, .25);
  font-size: 13px;
  font-weight: 500;
  color: var(--cjc-ink, #221C1E);
}
.cfvo-card__hearts { display: inline-flex; gap: 3px; }
.cfvo-card__heart { display: inline-flex; color: rgba(182, 125, 136, .3); }
.cfvo-card__heart svg { fill: currentColor; }
.cfvo-card__heart.is-open { color: var(--cfvo-rose); }

/* One soft pulse on the next open spot, twice, after the page settles. */
@media (prefers-reduced-motion: no-preference) {
  .cfvo-card__heart.is-next svg { transform-origin: 50% 60%; animation: cfvo-beat 1.4s ease-in-out .8s 2; }
}
@keyframes cfvo-beat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.22); }
  40% { transform: scale(.96); }
  60% { transform: scale(1.1); }
}

/* Full week: same card, quieter. */
.cfvo-card--full { background: var(--cjc-ivory-2, #F2ECE8); border-color: rgba(107, 87, 86, .18); }
.cfvo-card--full .cfvo-card__badge { color: var(--cjc-mauve, #6B5756); border-color: rgba(107, 87, 86, .25); }
.cfvo-card--full .cfvo-card__spots { color: var(--cjc-mauve, #6B5756); font-weight: 400; }

/* Paused (spots per week = 0): a slim notice, not an offer. */
.cfvo-card--paused { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; margin: 14px 0 2px; padding: 11px 16px 11px 12px; }
.cfvo-card--paused .cfvo-card__badge { width: 34px; height: 34px; background: var(--cjc-white, #fff); opacity: .85; }
.cfvo-card--paused .cfvo-card__title { font-size: 17px; line-height: 1.2; }
.cfvo-card--paused .cfvo-card__sub { margin-top: 1px !important; font-size: 12.5px; line-height: 1.45; text-wrap: pretty; }
.cfvo-card--paused .cfvo-card__sub a { color: var(--cjc-ink, #221C1E); text-decoration: underline; text-decoration-color: rgba(34, 28, 30, .3); text-underline-offset: 2px; }
.cfvo-card--paused .cfvo-card__sub a:hover { text-decoration-color: currentColor; }

@media (max-width: 479px) {
  .cfvo-card { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px 14px 13px; }
  .cfvo-card__badge { width: 38px; height: 38px; }
  .cfvo-card__title { font-size: 21px; }
  .cfvo-card--paused { grid-template-columns: 32px minmax(0, 1fr); padding: 10px 14px 10px 11px; }
  .cfvo-card--paused .cfvo-card__badge { width: 32px; height: 32px; }
  .cfvo-card--paused .cfvo-card__title { font-size: 16px; }
}

/* ---- Checkout and thank-you notes: a soft pink panel. ---- */
.cfvo-note {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--cjc-blush, #EAD7DB);
  color: var(--cjc-ink, #221C1E);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.cfvo-note a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
