/* Add Your Voice to Their Gift - the recorder (voice.js).
   Loaded after style.css, which makes every button full width; anything
   here that sits in a row says width: auto. */

.gv {
  margin: 1rem 0 .25rem;
  padding: 1rem 1rem 1.1rem;
  background: #fff;
  border: 1.5px solid var(--gold-sand);
  border-radius: 14px;
}

.gv h3 {
  margin: 0 0 .2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep-rose);
}

.gv p { margin: 0; font-size: .9rem; line-height: 1.45; }

.gv-head { display: flex; gap: .8rem; align-items: flex-start; }

.gv-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blush-white);
  color: var(--glam-pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gv-icon svg { width: 22px; height: 22px; fill: currentColor; }
.gv-done .gv-icon { background: var(--glam-pink); color: #fff; }

.gv button svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.gv-record, .gv-use, .gv-listen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.gv-price { margin-top: .5rem !important; text-align: center; font-size: .8rem !important; color: #6b7385; }

.gv-problem {
  margin-top: .75rem !important;
  padding: .65rem .8rem;
  background: var(--blush-white);
  border-radius: 10px;
  color: var(--deep-rose);
}

/* Recording */
.gv-live { display: flex; align-items: center; gap: .55rem; font-size: 1rem; }
.gv-clock { margin-left: auto; font-variant-numeric: tabular-nums; color: #6b7385; font-size: .9rem; }
.gv-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--glam-pink);
  animation: gv-pulse 1.2s ease-in-out infinite;
}
@keyframes gv-pulse { 50% { opacity: .35; transform: scale(.8); } }
.gv-meter { height: 6px; margin: .75rem 0 .6rem; border-radius: 3px; background: var(--petal); overflow: hidden; }
.gv-meter span { display: block; height: 100%; width: 0; background: var(--glam-pink); transition: width .25s linear; }
.gv-note { color: #6b7385; }

/* Listening back */
.gv-player { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; }
.gv-player .gv-listen { width: auto; margin: 0; padding: .6rem 1.1rem; }
.gv-time { font-variant-numeric: tabular-nums; color: #6b7385; font-size: .9rem; }

.gv-again {
  width: auto;
  margin: .6rem 0 0;
  padding: .3rem 0;
  background: none;
  color: var(--deep-rose);
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gv-again:hover:not(:disabled) { background: none; color: var(--glam-pink); }

.gv-label { display: block; margin: 1rem 0 .35rem; font-size: .85rem; font-weight: 600; }
/* 16px: anything smaller makes an iPhone zoom the page when tapped. */
.gv input[type="text"] {
  width: 100%;
  padding: .75rem .9rem;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: #fff;
  border: 2px solid var(--petal);
  border-radius: 10px;
}
.gv input[type="text"]:focus { outline: none; border-color: var(--glam-pink); }
.gv-hint { margin-top: .3rem !important; font-size: .8rem !important; color: #6b7385; }

.gv-consent { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; font-size: .85rem; line-height: 1.45; cursor: pointer; }
.gv-consent input { flex: none; width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--glam-pink); }

.gv-cart { margin-top: .9rem; }

.gv-skip { display: block; width: 100%; text-align: center; }

.gv-saving { padding: .5rem 0; text-align: center; font-weight: 600; color: var(--deep-rose); }

@media (prefers-reduced-motion: reduce) {
  .gv-dot { animation: none; }
  .gv-meter span { transition: none; }
}

/* The voice step: the gift is already in the cart, so the design screen
   behind it is put away. Without this the customer can press Add to Cart
   again - Gretchen bought four blankets that way on 2026-09-22 - and the
   matching-piece offer comes back with it. The artwork itself stays: it is
   what they are recording a message about. */
body.voice-step #form,
body.voice-step #reorder,
body.voice-step #gallery,
body.voice-step #seeOnProduct,
body.voice-step #mockupView,
body.voice-step #bundle,
body.voice-step #editForm,
body.voice-step .actions,
body.voice-step .final,
body.voice-step .download,
body.voice-step #guideToggle,
body.voice-step .ap-actions,
body.voice-step .ap-revise,
body.voice-step #addToCart,
body.voice-step #unapprove,
/* The shirt's pickers. The cart line already carries the garment, the colour
   and the size, so a picker that still works here can only tell a customer
   something untrue about what they have just bought. */
body.voice-step #stepGarment,
body.voice-step #stepColor,
body.voice-step #stepSize,
body.voice-step #stepGifty,
/* "Pick what you're wearing. Show Gifty what you're imagining..." - how to
   use a designer they have finished with. Three lines of a phone screen,
   directly above the only thing left to do. */
body.voice-step .blurb { display: none !important; }

/* One line above the recorder, so they know the gift is safely bought. */
body.voice-step .chosen { display: block; text-align: center; font-weight: 600; }

/* THE RECORDER AT THE TOP (Gretchen, 2026-10-10). On the blanket designer
   the full picture of the design stayed above the recorder, so on a phone
   the recorder began at the very bottom of the screen and "Use This
   Message" was below it - found by scrolling or not at all. The line above
   already says what is in the cart; the picture is put away for the minute
   this takes and is back the moment she leaves. The shirts are untouched:
   their page has no #result. */
body.voice-step #result > .frame,
body.voice-step #designHeading { display: none !important; }

/* THE ONE BUTTON THAT MOVES HER ON STAYS IN REACH: Record, then Stop, then
   Use This Message. It holds to the bottom of the screen while the recorder
   is taller than what is showing - an open keyboard, a long consent line -
   and sits in its ordinary place when everything fits. */
body.voice-step .gv .gv-record,
body.voice-step .gv .gv-stop,
body.voice-step .gv .gv-use {
  position: sticky;
  bottom: .6rem;
  z-index: 2;
  box-shadow: 0 0 0 .5rem #fff;
}
