/* Make an offer uses the same shell, heading, close control and CTA as payment. */
.offer-dialog .classic-payment-head { margin-bottom: 8px; }
.offer-dialog #offer-title:focus { outline: none; }
.offer-intro { margin: 0 0 24px; color: #696969; font-size: 15px; line-height: 1.5; }

.offer-bottle {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
}
.offer-photo { display: grid; place-items: center; height: 88px; background: #fff; }
.offer-photo img { width: 64px; height: 80px; object-fit: contain; }
.offer-bottle .name:not(.bc-name) { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.offer-bottle .specs:not(.bc-meta) { margin: 6px 0 0; font-size: 13px; color: #696969; }

.offer-prices { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0; }
.offer-prices > div + div { border-left: 1px solid #e4e4e4; padding-left: 24px; }
.offer-prices dt { color: #696969; font-size: 13px; }
.offer-prices dd { margin: 4px 0 0; font: 700 20px/1.4 var(--font-body, sans-serif); font-variant-numeric: tabular-nums; }

.offer-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.offer-amount { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid #d9d9d9; border-radius: 8px; background: #f6f7f8; }
.offer-amount > span { color: #696969; font-size: 20px; }
.offer-amount input { width: 100%; min-width: 0; height: 56px; padding: 0; border: 0; background: transparent; color: #1a1a1a; font: 500 20px var(--font-body, sans-serif); font-variant-numeric: tabular-nums; }
.offer-amount:focus-within { border-color: #0d8962; outline: 2px solid #0d8962; outline-offset: 2px; }
.offer-dialog .offer-amount input:focus-visible { outline: none; }
.offer-min { margin: 8px 0 0; color: #696969; font-size: 12px; }
.offer-dialog .offer-next { margin-top: 20px; }

@media (max-width: 600px) {
  .offer-bottle { gap: 16px; grid-template-columns: 56px minmax(0, 1fr); padding: 16px 0; }
  .offer-photo { height: 76px; }
  .offer-photo img { width: 48px; height: 72px; }
  .offer-prices { margin: 20px 0; gap: 16px; }
  .offer-prices > div + div { padding-left: 16px; }
  .offer-prices dd { font-size: 18px; }
}

/* Existing three-step offer flow, in the shared payment skin. */
.offer-dialog [hidden] { display: none !important; }
.offer-back { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.offer-back svg { width: 24px; height: 24px; }
.offer-dialog .classic-payment-head h2 { flex: 1; }
.offer-back:hover { background: #f6f7f8; }
.offer-amount:has([aria-invalid="true"]) { border-color: #ad3447; }
.offer-form:has([aria-invalid="true"]) .offer-min, .offer-error { color: #ad3447; }
.offer-dialog.is-payment { width: min(980px, calc(100% - 32px)); }
.offer-payment-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.offer-explanation { margin: -12px 0 24px; font-size: 14px; }
.offer-explanation summary { width: fit-content; color: #0d8962; cursor: pointer; font-weight: 700; }
.offer-explanation p { max-width: 75ch; margin: 12px 0 0; line-height: 1.6; color: #696969; }
.offer-payment-methods { min-width: 0; padding: 0; margin: 0; border: 0; }
.offer-payment-methods .classic-card { margin: 0; }
.offer-payment-methods .offer-provider { margin-top: 12px; }
.offer-provider .classic-card-body p { margin: 0 0 16px; color: #696969; font-size: 14px; line-height: 1.5; }
.offer-payment-methods:disabled { opacity: .6; }
.offer-payment-separator { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: #696969; font-size: 13px; }
.offer-payment-separator::before, .offer-payment-separator::after { content: ''; height: 1px; background: #e4e4e4; flex: 1; }
.offer-pay-method { width: 100%; min-height: 48px; padding: 12px 16px; margin-top: 10px; border: 1px solid #1a1a1a; border-radius: 6px; background: #1a1a1a; color: #fff; font: 600 16px/1.4 var(--font-body, sans-serif); cursor: pointer; }
.offer-pay-method:disabled, .offer-back:disabled { cursor: wait; }
.offer-summary-bottle { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid #e4e4e4; }
.offer-summary-bottle img { width: 40px; height: 64px; object-fit: contain; }
.offer-summary-bottle p { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
.offer-summary-bottle small { display: block; margin-top: 6px; font-size: 12px; color: #696969; }
.offer-summary-note { margin: 16px 0 0; color: #696969; font-size: 12px; }
.offer-processing { padding: 16px; background: #e3f1ed; border-radius: 8px; color: #1a1a1a; margin: 20px 0 0; }
.offer-success { text-align: center; }
.offer-success-art { display: block; width: min(280px, 100%); height: 144px; object-fit: contain; margin: 24px auto; }
.offer-success p { margin: 20px auto; max-width: 48ch; font-size: 16px; line-height: 1.6; }
.offer-success .classic-pay { max-width: 280px; margin: 28px auto 0; }
.offer-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .offer-payment-layout { display: flex; flex-direction: column; gap: 24px; }
  .offer-payment-layout > * { width: 100%; }
  .offer-payment-layout .classic-summary-card { order: -1; box-shadow: none; }
  .offer-dialog.is-payment .classic-payment-head { gap: 8px; }
  .offer-back { flex-basis: 28px; width: 28px; }
}

/* One steady shell across offer amount, payment and confirmation. */
dialog.offer-dialog,dialog.offer-dialog.is-payment{box-sizing:border-box;width:min(640px,calc(100% - 32px));height:min(760px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:24px;overflow:auto}
.offer-dialog .classic-payment-head{position:sticky;top:-24px;background:var(--white,#fff);padding:16px 0;margin-top:-16px;z-index:2}
.offer-dialog .offer-intro{font-size:14px;line-height:1.55;margin-bottom:16px}.offer-dialog .offer-payment-layout{display:flex;flex-direction:column;gap:16px}.offer-dialog .offer-payment-layout>*{width:100%;box-sizing:border-box}.offer-dialog .classic-summary-card{order:-1;padding:14px 16px;box-shadow:none;border:1px solid #e3e1db;border-radius:10px;background:#f7f6f2;color:#1a1a1a}.offer-dialog .classic-summary-card h3,.offer-dialog .offer-summary-bottle{display:none}.offer-dialog .classic-summary{display:flex;justify-content:space-between;gap:12px;margin:0}.offer-dialog .classic-summary>div{display:block;border:0;padding:0}.offer-dialog .classic-summary dt{font-size:11px;margin-bottom:4px}.offer-dialog .classic-summary dd{margin:0;font-size:16px}.offer-dialog .offer-summary-note{margin:8px 0 0;font-size:11px}.offer-dialog .offer-explanation{margin:0 0 16px}.offer-dialog .offer-explanation summary{color:inherit}.offer-dialog .payment-card-fields .classic-card-body{padding:14px}.offer-dialog .offer-amount:focus-within{outline-color:#1a1a1a;border-color:#1a1a1a}
@media(max-width:600px){dialog.offer-dialog,dialog.offer-dialog.is-payment{width:calc(100% - 20px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:18px}.offer-dialog .classic-payment-head{top:-18px}.offer-dialog .classic-summary{gap:8px}.offer-dialog .classic-summary dd{font-size:14px}}

.offer-dialog .payment-methods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0;margin:0;border:0}.offer-dialog .payment-methods>.payment-express,.offer-dialog .payment-methods>.payment-alternatives{display:contents}.offer-dialog .payment-tile{min-width:0;font-size:12px}.offer-dialog .payment-logo{width:48px;height:48px;flex-basis:48px}.offer-dialog .payment-methods>[data-payment-card],.offer-dialog .payment-methods>.payment-more,.offer-dialog .payment-methods>.payment-source-note,.offer-dialog .payment-methods>.payment-issue,.offer-dialog .payment-methods>.classic-pay{grid-column:1/-1}.offer-dialog .payment-source-note{margin:0;font-size:12px}.offer-dialog .payment-more{margin:0;font-size:13px}.offer-dialog .payment-card-fields .classic-card-body{padding:0}.offer-dialog .classic-cvv{padding:0 16px 12px}.offer-dialog .classic-cvv input{height:40px}.offer-dialog .classic-summary>div:last-child{border-top:0;margin:0;padding:0}.offer-dialog .payment-tile>input:checked+.payment-logo{border-color:#1a1a1a;background:#f7ff8e}.offer-dialog .classic-card-option[aria-pressed=true],.offer-dialog .classic-cvv{background:#f7f6f2}.offer-dialog .classic-pay{margin-top:0}.offer-dialog .classic-card-option{min-height:44px}
.offer-dialog .classic-pay{background:#1a1a1a!important;color:#fff!important;border-color:#1a1a1a!important}.offer-dialog .classic-summary-card .classic-summary>div:last-child{border-top:0;margin:0;padding:0}
