/* V54 — a slimmer purchase rail and a single, connected seasonal offer. */
body .purchase-dock .dock-inner {
  grid-template-columns: minmax(0, 1fr) 164px;
  padding-top: 7px !important;
  padding-bottom: max(7px, env(safe-area-inset-bottom)) !important;
  gap: 14px !important;
}
body .purchase-dock .dock-inner > .button.primary {
  min-height: 44px !important;
  padding: 10px 12px !important;
  gap: 9px;
  font-size: 14px !important;
}
body .purchase-dock .dock-inner > .button.primary > strong { font-size: 15px; }
body .purchase-dock .dock-selected-covers .selection-cover { width: 28px; height: 38px; }
body .purchase-dock .dock-selection-label > strong { margin-bottom: 3px; }

/* Plain campaign text and the fixed deadline sit together on a white surface. */
.purchase-panel .bundle-visible {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0;
  border: 1px solid #d8e5ef !important;
  background: #fff !important;
}
.purchase-panel .bundle-visible > * { grid-column: 1 / -1; }
.purchase-panel .bundle-visible .bundle-heading {
  grid-row: 1;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 0 5px !important;
  border: 0 !important;
  border-radius: 0;
  background: #fff !important;
  color: #294358;
}
.purchase-panel .bundle-visible .bundle-heading .bundle-event {
  align-self: center;
  margin: 0;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #294358 !important;
  font: 650 17px/1.3 Figtree, system-ui, sans-serif !important;
  letter-spacing: 0;
}
.purchase-panel .bundle-visible .bundle-heading h2 {
  margin: 0 !important;
  color: #52697b !important;
  font: 500 13px/1.3 Figtree, system-ui, sans-serif !important;
}
.purchase-panel .bundle-visible > .offer-countdown {
  grid-row: 2;
  justify-content: flex-start;
  width: auto;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  border-radius: 0;
  background: #fff !important;
  color: #7f2935;
  font: 500 12px/1.4 Figtree, system-ui, sans-serif;
}
.purchase-panel .bundle-visible > .bundle-builder { margin-top: 12px; }
.purchase-panel .bundle-visible:has(> .offer-countdown[hidden]) .bundle-heading { padding-bottom: 0 !important; }
.purchase-panel .bundle-visible .addon-selection,
.purchase-panel .bundle-visible .addon-selection:has(input:checked) { background: #fff; }
.purchase-panel .bundle-visible .addon-selection:has(input:checked) { border-color: #729bc0; }
.purchase-panel .bundle-visible .checkout-summary {
  margin-top: 14px !important;
  padding: 12px !important;
  border-radius: 10px !important;
  background: #f0f6fc !important;
}
.purchase-panel .bundle-visible .checkout-summary .add-to-cart:hover,
body .purchase-dock .dock-inner > .button.primary:hover,
#holiday-offer .holiday-offer-checkout .button:hover {
  background: #2c75c8 !important;
  box-shadow: 0 8px 19px -7px rgb(44 117 200 / .5) !important;
}
body .purchase-dock .dock-inner > .button.primary {
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

/* The parent collection story provides the outer frame and the connection to Elise. */
#holiday-offer.holiday-offer {
  display: block !important;
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
#holiday-offer .holiday-offer-heading { padding: 25px 28px 0 !important; background: transparent; text-align: left; }
#holiday-offer .holiday-offer-heading h2 { max-width: none; font-size: clamp(27px, 3vw, 33px) !important; line-height: 1.12 !important; }
#holiday-offer .holiday-offer-heading p { max-width: none !important; margin-top: 6px !important; font-size: 14px; }
#holiday-offer .holiday-offer-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 23px 28px 0;
}
#holiday-offer .holiday-offer-editions {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}
#holiday-offer .holiday-offer-edition,
#holiday-offer .holiday-offer-edition + .holiday-offer-edition {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) !important;
  align-items: center;
  gap: 15px !important;
  padding: 0;
  text-align: left;
}
#holiday-offer .holiday-offer-edition > img {
  width: 68px;
  height: 91px;
  object-fit: contain;
  grid-row: 1 !important;
  box-shadow: 0 7px 13px -7px rgb(35 59 80 / .4);
}
#holiday-offer .holiday-offer-edition h3 { margin: 0 0 5px; font-size: 15px; line-height: 1.3; }
#holiday-offer .holiday-offer-edition p { font-size: 13px; line-height: 1.4; }
#holiday-offer .holiday-offer-edition .holiday-edition-regular { margin-top: 7px !important; font-size: 12px; }
#holiday-offer .holiday-offer-features {
  grid-column: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 22px;
}
#holiday-offer .holiday-offer-features li { align-items: center; gap: 7px; font-size: 13px; line-height: 1.4; }
#holiday-offer .holiday-offer-features svg { width: 16px; height: 16px; flex-basis: 16px; margin: 0; }
#holiday-offer .holiday-offer-checkout {
  display: grid;
  grid-column: 1;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 10px 20px;
  width: calc(100% + 56px);
  margin: 0 -28px;
  padding: 18px 28px;
  background: #e4f0fa;
}
#holiday-offer .holiday-offer-checkout > .offer-countdown { margin: 0 !important; }
#holiday-offer .holiday-offer-price {
  grid-template-columns: max-content max-content;
  align-items: center;
  justify-content: start;
  width: max-content;
  gap: 6px 10px;
}
#holiday-offer .holiday-offer-price > strong { font-size: 29px; }
#holiday-offer .holiday-offer-price > .sale-chip { justify-self: start; }
#holiday-offer .holiday-offer-regular-total { font-size: 12px; }
#holiday-offer .holiday-offer-checkout .button {
  min-height: 46px !important;
  padding: 11px 16px !important;
  font-size: 15px !important;
}
#holiday-offer .holiday-offer-note { max-width: 66ch; font-size: 12px !important; line-height: 1.45 !important; text-align: left; }

@media (min-width: 1200px) {
  .purchase-panel .bundle-visible { grid-template-columns: minmax(0, 1fr) auto; }
  .purchase-panel .bundle-visible .bundle-heading { grid-column: 1; grid-row: 1; padding: 0 !important; border-radius: 0; }
  .purchase-panel .bundle-visible > .offer-countdown { grid-column: 2; grid-row: 1; padding: 0; border-radius: 0; }
  .purchase-panel .bundle-visible:has(> .offer-countdown[hidden]) .bundle-heading { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body .purchase-dock .dock-inner { grid-template-columns: minmax(0, 1fr) 138px; gap: 11px !important; }
  body .purchase-dock .dock-inner > .button.primary { padding-inline: 10px !important; font-size: 13px !important; }
  body .purchase-dock .dock-inner > .button.primary > strong { font-size: 14px; }
  #holiday-offer .holiday-offer-heading { padding: 22px 20px 0 !important; }
  #holiday-offer .holiday-offer-heading h2 { max-width: none; font-size: 29px !important; }
  #holiday-offer .holiday-offer-heading p { font-size: 13px; }
  #holiday-offer .holiday-offer-body { gap: 18px; padding: 21px 20px 0; }
  #holiday-offer .holiday-offer-editions { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #holiday-offer .holiday-offer-edition,
  #holiday-offer .holiday-offer-edition + .holiday-offer-edition { grid-template-columns: 60px minmax(0, 1fr) !important; gap: 15px !important; }
  #holiday-offer .holiday-offer-edition > img { width: 60px; height: 80px; }
  #holiday-offer .holiday-offer-features { gap: 8px 16px; }
  #holiday-offer .holiday-offer-checkout { grid-template-columns: minmax(0, 1fr) 130px; width: calc(100% + 40px); margin-inline: -20px; padding: 17px 20px; gap: 11px 12px; }
  #holiday-offer .holiday-offer-price { gap: 6px 8px; }
  #holiday-offer .holiday-offer-price > strong { font-size: 28px; }
  #holiday-offer .holiday-offer-checkout .button { padding-inline: 10px !important; font-size: 14px !important; }
}
@media (max-width: 360px) {
  body .purchase-dock .dock-inner { grid-template-columns: minmax(0, 1fr) 126px; gap: 9px !important; }
  body .purchase-dock .dock-inner > .button.primary { gap: 7px; padding-inline: 9px !important; }
  .purchase-panel .bundle-visible .bundle-heading { gap: 8px !important; }
  .purchase-panel .bundle-visible .bundle-heading h2 { font-size: 12px !important; }
  #holiday-offer .holiday-offer-heading { padding-inline: 16px !important; }
  #holiday-offer .holiday-offer-heading h2 { font-size: 27px !important; }
  #holiday-offer .holiday-offer-body { padding-inline: 16px; }
  #holiday-offer .holiday-offer-checkout { grid-template-columns: minmax(0, 1fr); width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; }
  #holiday-offer .holiday-offer-checkout .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body .purchase-dock .dock-inner > .button.primary { transition: none; }
}
