/* ============================================================
   VALENA — cart, checkout, order summary
   ============================================================ */

/* ------------------------------------------------------------- cart --- */
.v-cart__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.5vw, 32px);
  align-items: start;
}
.v-cart__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-cart__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
}
.v-cart__head h1 { margin: 0; }
.v-cart__count {
  margin: 0;
  font-size: var(--v-small);
  color: var(--v-black-60);
}

.v-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  grid-template-areas:
    "media info   remove"
    "media qty    total";
  gap: 12px 16px;
  align-items: center;
  padding: 16px;
  border-radius: var(--v-radius);
  background: var(--v-surface);
  box-shadow: var(--v-shadow-card);
}
.v-cart-item__media { grid-area: media; align-self: start; }
.v-cart-item__media img {
  width: 72px;
  height: 72px;
  border-radius: var(--v-radius);
  object-fit: cover;
}
.v-cart-item__info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.v-cart-item__title { font-size: var(--v-body); line-height: 1.4; }
/* A statement of what was bought, not a control — hence no caret. */
.v-cart-item__variant {
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: var(--v-radius);
  box-shadow: inset 0 0 0 1px var(--v-line-strong);
  font-size: var(--v-small);
  line-height: 1.4;
}
.v-cart-item__qty { grid-area: qty; justify-self: start; }
.v-cart-item__total { grid-area: total; justify-self: end; }
.v-cart-item__remove { grid-area: remove; justify-self: end; color: var(--v-black-50); }
.v-cart-item__remove:hover { color: var(--v-danger); }

.v-cart__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.v-cart__update { min-height: 44px; padding: 0 16px; }

@media (min-width: 640px) {
  /* Remove leads the row: it is the one action on a line the shopper may want
     to undo, and it stays clear of the price it would change. */
  .v-cart-item {
    grid-template-columns: 44px 96px minmax(0, 1fr) auto auto;
    grid-template-areas: "remove media info qty total";
  }
  .v-cart-item__media img { width: 96px; height: 96px; }
  .v-cart-item__remove { justify-self: start; }
  .v-cart-item__total { min-width: 96px; }
}

@media (min-width: 1024px) {
  .v-cart__layout { grid-template-columns: minmax(0, 1fr) 400px; }
}

/* ---------------------------------------------------- order summary --- */
.v-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 2.5vw, 32px);
  border-radius: var(--v-radius);
  background: var(--v-blush);
}
.v-summary__title {
  margin: 0;
  font-family: var(--v-font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.3;
}
.v-summary__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--v-radius);
  background: var(--v-surface);
  box-shadow: inset 0 0 0 1px var(--v-ink);
  font: 400 var(--v-body) / 1 var(--v-font-text);
  color: var(--v-text);
  cursor: pointer;
}
.v-summary__toggle[aria-expanded="true"] .v-icon { transform: rotate(180deg); }
.v-summary__toggle .v-icon { transition: transform var(--v-ease); }

.v-summary__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v-summary__items[hidden] { display: none; }
.v-summary__item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.v-summary__thumb img {
  width: 56px;
  height: 56px;
  border-radius: var(--v-radius);
  object-fit: cover;
}
.v-summary__info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: var(--v-small);
  line-height: 1.4;
}
.v-summary__price { font-weight: 600; white-space: nowrap; }

.v-summary__coupon { display: flex; gap: 8px; }
.v-summary__coupon .v-field { height: 44px; font-size: var(--v-small); }
.v-summary__coupon .v-btn { min-height: 44px; padding: 0 16px; font-size: var(--v-small); }

.v-summary__totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.v-summary__totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--v-body);
  line-height: 1.5;
}
.v-summary__totals dt,
.v-summary__totals dd { margin: 0; }

.v-summary__grand {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font: 600 clamp(18px, 1.6vw, 20px) / 1.5 var(--v-font-text);
}
.v-summary__grand-value { font-weight: 700; font-size: clamp(20px, 1.8vw, 24px); }

@media (min-width: 1024px) {
  .v-summary { position: sticky; top: 20px; }
}

/* --------------------------------------------------------- checkout --- */
.v-checkout__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.5vw, 32px);
  align-items: start;
}
.v-checkout__main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.v-checkout__layout .v-summary { order: -1; }

@media (min-width: 1024px) {
  .v-checkout__layout { grid-template-columns: minmax(0, 1fr) 400px; }
  .v-checkout__layout .v-summary { order: 0; }
}

.v-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.v-step[hidden] { display: none; }

.v-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 2.5vw, 32px);
  border-radius: var(--v-radius);
  background: var(--v-surface);
  box-shadow: inset 0 0 0 1px var(--v-blush-mid);
}

/* ------------------------------------------------------- option cards -- */
.v-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}
.v-options--stack { grid-template-columns: 1fr; gap: 12px; }

.v-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--v-radius);
  background: var(--v-surface);
  box-shadow: inset 0 0 0 1px var(--v-line);
  cursor: pointer;
  transition: box-shadow var(--v-ease), background var(--v-ease);
}
.v-option:hover { box-shadow: inset 0 0 0 1px var(--v-pink); }
.v-option input { position: absolute; opacity: 0; pointer-events: none; }
.v-option:has(input:checked) { background: var(--v-blush); box-shadow: inset 0 0 0 1px var(--v-pink); }
.v-option:has(input:focus-visible) { outline: 2px solid var(--v-violet); outline-offset: 2px; }

.v-option__icon { display: flex; flex: 0 0 auto; color: var(--v-ink); }
.v-option__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.v-option__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--v-body);
  line-height: 1.5;
  color: var(--v-ink);
}
.v-option__title img { max-height: 24px; width: auto; }
.v-option__note {
  font-size: var(--v-small);
  line-height: 1.4;
  color: var(--v-ink-60);
}
.v-option__note p { margin: 0; }
.v-option__price {
  flex: 0 0 auto;
  font: 600 var(--v-body) / 1.5 var(--v-font-text);
  white-space: nowrap;
}
.v-option__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--v-surface);
  box-shadow: inset 0 0 0 1px var(--v-line-strong);
  color: var(--v-on-ink);
}
.v-option__dot .v-icon { opacity: 0; }
.v-option:has(input:checked) .v-option__dot {
  background: var(--v-ink);
  box-shadow: inset 0 0 0 1px var(--v-ink);
}
.v-option:has(input:checked) .v-option__dot .v-icon { opacity: 1; }

.payment_box {
  padding: 12px 16px;
  border-radius: var(--v-radius);
  background: var(--v-blush);
  font-size: var(--v-small);
}
.payment_box p:last-child { margin-bottom: 0; }

.v-delivery__totals { margin-top: 8px; }
.v-delivery__grand { font-weight: 700; }

/* -------------------------------------------------- WooCommerce fields -- */
.v-checkout__form .v-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}
.v-checkout__form .v-field-wrap[hidden] { display: none; }
.v-checkout__form label {
  font-size: var(--v-small);
  line-height: 1.4;
  color: var(--v-black-70);
}
.v-checkout__form .required { color: var(--v-pink); text-decoration: none; }
.v-checkout__form .woocommerce-input-wrapper { display: block; width: 100%; }
.v-checkout__form input.v-field,
.v-checkout__form select.v-field,
.v-checkout__form textarea.v-field,
.v-checkout__form .select2-container .select2-selection {
  width: 100%;
  min-height: var(--v-field-h);
}
.v-checkout__form .select2-container .select2-selection {
  display: flex;
  align-items: center;
  border: 1px solid var(--v-line-strong);
  border-radius: var(--v-radius);
  background: var(--v-surface);
}
.v-checkout__form .select2-container .select2-selection__rendered { padding-left: 8px; line-height: 1.4; }
.v-checkout__form .select2-container .select2-selection__arrow { top: 50%; transform: translateY(-50%); right: 6px; }

.v-checkout__form .woocommerce-billing-fields__field-wrapper,
.v-checkout__form .woocommerce-shipping-fields__field-wrapper,
.v-checkout__form .woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 20px;
}
.v-checkout__form .form-row-wide,
.v-checkout__form #billing_address_1_field,
.v-checkout__form #billing_company_field,
.v-checkout__form #shipping_address_1_field { grid-column: 1 / -1; }

@media (min-width: 640px) {
  .v-checkout__form .woocommerce-billing-fields__field-wrapper,
  .v-checkout__form .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr 1fr; }
}

.v-checkout__form .woocommerce-shipping-fields h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--v-font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 24px);
}
.v-checkout__form .woocommerce-shipping-fields h3 label { font-size: inherit; color: inherit; }

.v-checkout__form .woocommerce-invalid input.v-field,
.v-checkout__form input.v-field--error { border-color: var(--v-danger); }

/* ----------------------------------------------------- review blocks --- */
.v-review-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}
.v-review-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.v-review-block__edit { font-size: var(--v-small); padding: 0; }
.v-review-block__body {
  margin: 0;
  font-size: var(--v-body);
  line-height: 1.5;
  color: var(--v-black-60);
}

/* -------------------------------------------------- order confirmation - */
/* ------------------------------------------------- shipping + notes ---- */
/* The toggle is the panel's own control, so it sits under the heading. */
#ship-to-different-address { margin: 0; }
/* Collapsed until the shopper asks for a second address. */
#ship-to-different-address-checkbox:not(:checked) ~ .shipping_address,
.woocommerce-shipping-fields:not(:has(#ship-to-different-address-checkbox:checked)) .shipping_address {
  display: none;
}

/* Core renders the note as a bare textarea; give it the panel's full width. */
.woocommerce-additional-fields__field-wrapper .form-row { width: 100%; }
.woocommerce-additional-fields textarea.v-field {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

/* ================================================= order result screens == */
/*
 * The verdict sits on the blush band, not in a card: it is the page's headline,
 * and boxing it would make it compete with the panels below.
 */
.v-order-hero { padding-block: clamp(32px, 5vw, 64px); }

.v-order-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.v-order-result__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--v-success);
  color: var(--v-on-ink);
}
.v-order-result__icon--error { background: var(--v-danger); }
.v-order-result__body { display: flex; flex-direction: column; gap: 12px; }
.v-order-result__body h1 { margin: 0; }
.v-order-result__body p {
  margin: 0;
  font-size: var(--v-lead);
  line-height: 1.5;
}

.v-order-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.v-order-result__actions .v-btn { flex: 1 1 220px; }

@media (min-width: 768px) {
  .v-order-result {
    flex-direction: row;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
  }
  .v-order-result__body { max-width: 640px; }
  .v-order-result__actions .v-btn { flex: 0 0 auto; }
  .v-order-result__actions--end { justify-content: flex-end; }
}

/* ------------------------------------------------------- order layout --- */
.v-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  align-items: start;
}
.v-order-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Phone: what was ordered comes before the paperwork about it. */
.v-order-layout .v-order-status { order: -1; }

@media (min-width: 1024px) {
  .v-order-layout { grid-template-columns: minmax(0, 1fr) 480px; }
  .v-order-layout .v-order-status { order: 0; }
}

.v-order-causes { display: flex; flex-direction: column; gap: 20px; }
.v-order-cause h3 {
  margin: 0 0 6px;
  font-family: var(--v-font-text);
  font-weight: 600;
  font-size: var(--v-body);
  line-height: 1.4;
}
.v-order-cause p { margin: 0; font-size: var(--v-small); line-height: 1.6; color: var(--v-black-70); }

/* --------------------------------------------------------- order facts -- */
.v-order-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--v-radius);
  box-shadow: inset 0 0 0 1px var(--v-ink);
}
.v-order-number .v-hint { display: block; }

.v-order-fact h3 {
  margin: 0 0 6px;
  font-family: var(--v-font-text);
  font-weight: 600;
  font-size: var(--v-small);
  line-height: 1.4;
}
.v-order-fact p { margin: 0; font-size: var(--v-small); line-height: 1.6; color: var(--v-black-70); }

.v-order-facts__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Desktop shows the facts open; the phone gets the collapsed row the design draws. */
.v-order-facts__toggle { display: none; }

@media (max-width: 1023px) {
  .v-order-facts__toggle { display: flex; width: 100%; }
  .v-order-facts__toggle[aria-expanded="false"] + .v-order-facts__body { display: none; }
  .v-order-facts__toggle[aria-expanded="true"] .v-icon { transform: rotate(180deg); }
}

/* ------------------------------------------------------- status panel --- */
.v-order-status__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.v-order-status__title {
  margin: 0;
  font-family: var(--v-font-text);
  font-weight: 600;
  font-size: var(--v-body);
  line-height: 1.5;
}
.v-order-status__state { font-size: var(--v-small); }
.v-order-status__state.is-ok { color: var(--v-success); }
.v-order-status__state.is-error { color: var(--v-danger); }

.v-order-status__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v-order-status__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--v-radius);
  background: var(--v-surface);
}
.v-order-status__thumb img {
  width: 64px;
  height: 64px;
  border-radius: var(--v-radius);
  object-fit: cover;
}
.v-order-status__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v-order-status__name { font-size: var(--v-small); line-height: 1.4; }
.v-order-status__meta { font-size: var(--v-caption); color: var(--v-black-60); }
.v-order-status__meta p { margin: 0; display: inline; }
.v-order-status__price { font-weight: 600; white-space: nowrap; }

.v-order-details { margin-inline: auto; }

/* WooCommerce notices, restyled. */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 20px;
  padding: 14px 16px;
  list-style: none;
  border-radius: var(--v-radius);
  background: var(--v-blush);
  box-shadow: inset 0 0 0 1px var(--v-pink);
  font-size: var(--v-small);
  line-height: 1.5;
}
.woocommerce-error { background: #fdf0f2; box-shadow: inset 0 0 0 1px var(--v-danger); color: var(--v-danger); }
.woocommerce-message { background: #eef6f2; box-shadow: inset 0 0 0 1px var(--v-success); color: var(--v-success); }

/* =========================================================== step rail == */
/*
 * A blush band under the header, the full width of the page, on all five
 * checkout screens — form steps, thank-you and payment-failed alike.
 */
.v-checkout-steps {
  background: var(--v-blush);
  padding-block: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--v-line);
}

.v-steps {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.v-steps::-webkit-scrollbar { display: none; }

.v-steps__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
/* The rule between steps takes the slack, so the three sit evenly apart. */
.v-steps__item:not(:last-child)::after {
  content: "";
  flex: 1 1 40px;
  min-width: 24px;
  height: 1px;
  background: var(--v-line);
}
.v-steps__item:not(:last-child) { flex: 1 1 auto; }

.v-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--v-radius);
  background: var(--v-surface);
  box-shadow: inset 0 0 0 1px var(--v-line-strong);
  font: 400 var(--v-body) / 1 var(--v-font-text);
  color: var(--v-text);
}
.v-steps__label {
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.4;
  white-space: nowrap;
  color: var(--v-black-60);
}

.v-steps__item.is-current .v-steps__num,
.v-steps__item.is-done .v-steps__num {
  background: var(--v-ink);
  box-shadow: none;
  color: var(--v-on-ink);
}
.v-steps__item.is-current .v-steps__label { color: var(--v-text); }
.v-steps__item.is-done .v-steps__label { color: var(--v-text); }

.v-steps__item.is-error .v-steps__num {
  background: var(--v-danger);
  box-shadow: none;
  color: var(--v-on-ink);
}
.v-steps__item.is-error .v-steps__label { color: var(--v-text); }

/* The label is the step's meaning; on a phone the numbered squares carry it. */
@media (max-width: 639px) {
  .v-steps__label { display: none; }
  .v-steps__item:not(:last-child)::after { min-width: 16px; }
}

/* ====================================================== step navigation == */
.v-step__nav {
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
}
.v-step__nav .v-btn { width: 100%; }
.v-step__nav--single { align-items: stretch; }
.v-step__back { min-height: 48px; padding: 0 16px; }

@media (min-width: 640px) {
  .v-step__nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .v-step__nav .v-btn { width: auto; }
  .v-step__nav--single { justify-content: center; }
}

/* ======================================================= shipping rate == */
/* Delivery time reads as the promise, so it gets its own weighted line. */
.v-option__eta {
  font-weight: 600;
  font-size: var(--v-small);
  line-height: 1.4;
}

/*
 * WooCommerce keeps this table fresh over AJAX and checkout.js copies the
 * numbers into the summary, the price panel and the order button. It is a
 * data source on step 2, not something the design shows there.
 */
.v-delivery__totals { display: none; }

/* ========================================================= step 3 review = */
.v-review-blocks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.v-review-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}
.v-review-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.v-review-block__head .v-panel__title { font-size: var(--v-body); font-weight: 600; font-family: var(--v-font-text); }
.v-review-block__edit { flex: 0 0 auto; gap: 8px; }
.v-review-block__body {
  margin: 0;
  font-size: var(--v-small);
  line-height: 1.6;
  color: var(--v-black-70);
}

@media (min-width: 768px) {
  .v-review-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------- order lines - */
.v-order-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v-order-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas:
    "media info   remove"
    "media price  price";
  gap: 8px 16px;
  align-items: center;
}
.v-order-item.is-busy { opacity: 0.5; pointer-events: none; }
.v-order-item__media { grid-area: media; align-self: start; }
.v-order-item__media img {
  width: 64px;
  height: 64px;
  border-radius: var(--v-radius);
  object-fit: cover;
}
.v-order-item__info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.v-order-item__title { font-size: var(--v-small); line-height: 1.4; }
.v-order-item__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.v-order-item__variant {
  padding: 4px 10px;
  border-radius: var(--v-radius);
  box-shadow: inset 0 0 0 1px var(--v-line-strong);
  font-size: var(--v-small);
  line-height: 1.4;
}
.v-order-item__price { grid-area: price; justify-self: start; }
.v-order-item__remove { grid-area: remove; align-self: start; color: var(--v-black-50); }
.v-order-item__remove:hover { color: var(--v-danger); }

@media (min-width: 640px) {
  .v-order-item {
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    grid-template-areas: "media info price remove";
  }
  .v-order-item__price { justify-self: end; min-width: 96px; text-align: right; }
  .v-order-item__remove { align-self: center; }
}

/* -------------------------------------------------------------- coupon -- */
.v-coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.v-coupon .v-field { flex: 1 1 220px; height: 56px; }
.v-coupon__btn { flex: 0 0 auto; min-height: 56px; padding: 0 24px; }
.v-coupon__msg {
  margin: 12px 0 0;
  font-size: var(--v-small);
  line-height: 1.4;
  color: var(--v-success);
}
.v-coupon__msg:empty { display: none; }
.v-coupon__msg.is-error { color: var(--v-danger); }

/* ------------------------------------------------------------ consents -- */
.v-consents {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------------------------------------------------- place-order bar ---- */
/*
 * Pinned to the bottom of the viewport on the last step: the total and the
 * button that spends it should never be a scroll away from each other.
 */
.v-checkout__bar {
  position: sticky;
  bottom: 0;
  z-index: var(--v-z-dropdown);
  margin-top: 24px;
  padding-block: 16px;
  background: var(--v-page);
  box-shadow: 0 -8px 24px rgba(208, 183, 204, 0.35);
}
.v-checkout__bar[hidden] { display: none; }
.v-checkout__bar-inner { display: flex; justify-content: flex-end; }

.v-checkout__place {
  width: 100%;
  min-height: 56px;
  gap: 8px;
}
.v-checkout__place[disabled] {
  background: var(--v-line-strong);
  color: var(--v-black-50);
  cursor: not-allowed;
}
.v-checkout__place-total { font-weight: 700; }
.v-checkout__place-total::before { content: "— "; }

@media (min-width: 640px) {
  .v-checkout__place { width: auto; padding: 0 32px; }
}

/* Step 3 has no sidebar in the design — the panels run the full width. */
.v-checkout__layout:has(.v-step--review.is-active) { grid-template-columns: minmax(0, 1fr); }
.v-checkout__layout:has(.v-step--review.is-active) .v-summary { display: none; }
