/* V238 — one package modal language across storefront, quick-buy and checkout */
:root{--pkg-modal-bg:#fff;--pkg-modal-surface:#fff;--pkg-modal-border:#dce5f3;--pkg-modal-text:#22304a;--pkg-modal-muted:#7b89a2;--pkg-modal-price-bg:#eaf9f4;--pkg-modal-price:#20c69d;--pkg-modal-accent:#645bff;--pkg-modal-selected:#2bcaa3}
html[data-theme="dark"]{--pkg-modal-bg:#101b2d;--pkg-modal-surface:#17243a;--pkg-modal-border:#34455f;--pkg-modal-text:#eef4ff;--pkg-modal-muted:#a9b8cf;--pkg-modal-price-bg:#173a34;--pkg-modal-price:#55e0bc;--pkg-modal-accent:#7b83ff;--pkg-modal-selected:#36d4ac}

/* Common overlay */
.flex-package-modal,
.checkout-picker-modal[data-checkout-modal="package"],
.hero-v11-buy .qb-choice-modal[data-mode="package"]{position:fixed!important;inset:0!important;z-index:20050!important;display:grid!important;place-items:center!important;padding:24px!important;background:transparent!important}
.flex-package-modal[hidden],.checkout-picker-modal[data-checkout-modal="package"][hidden],.hero-v11-buy .qb-choice-modal[data-mode="package"][hidden]{display:none!important}
.flex-package-modal-backdrop,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-backdrop,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-choice-backdrop{position:absolute!important;inset:0!important;background:rgba(5,11,23,.64)!important;backdrop-filter:blur(7px)!important}

/* Common dialog */
.flex-package-modal-dialog,
.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-dialog,
.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-choice-panel{position:relative!important;z-index:1!important;width:min(1720px,97vw)!important;max-width:none!important;max-height:calc(100dvh - 48px)!important;height:auto!important;overflow:hidden!important;border:1px solid var(--pkg-modal-border)!important;border-radius:28px!important;background:var(--pkg-modal-bg)!important;color:var(--pkg-modal-text)!important;box-shadow:0 34px 100px rgba(4,10,24,.30)!important;padding:18px 20px 16px!important;display:flex!important;flex-direction:column!important}

/* Header */
.flex-package-modal-head,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-head,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-choice-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:20px!important;flex:none!important;margin:0!important;padding:0 0 12px!important;border-bottom:1px solid var(--pkg-modal-border)!important}
.flex-package-modal-head h3,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-head h3,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-choice-head h3{margin:4px 0 2px!important;color:var(--pkg-modal-text)!important;font-size:clamp(24px,2.4vw,36px)!important;line-height:1.08!important;letter-spacing:-.035em!important;font-weight:850!important}
.flex-package-modal-head p,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-head p{margin:0!important;color:var(--pkg-modal-muted)!important;font-size:13px!important;line-height:1.35!important}
.flex-package-modal-head .flex-kicker,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-head small,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-choice-head small{display:block!important;color:#6b6fff!important;font-size:11px!important;font-weight:900!important;letter-spacing:.16em!important;text-transform:uppercase!important}
.flex-package-modal-x,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-close,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-choice-close{width:48px!important;height:48px!important;min-width:48px!important;border:1px solid var(--pkg-modal-border)!important;border-radius:15px!important;background:color-mix(in srgb,var(--pkg-modal-surface) 92%,#6776a8 8%)!important;color:var(--pkg-modal-text)!important;font-size:29px!important;line-height:1!important;display:grid!important;place-items:center!important;cursor:pointer!important}

/* Package content head */
.flex-package-modal-panel,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-panel{padding-top:12px!important;min-height:0!important;overflow:hidden!important}
.flex-package-modal-section-head,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 10px!important;flex:none!important}
.flex-package-modal-section-head strong,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-section-head strong{font-size:15px!important;color:var(--pkg-modal-text)!important}
.flex-package-modal-section-head small,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-section-head small{padding:6px 10px!important;border-radius:999px!important;background:color-mix(in srgb,var(--pkg-modal-surface) 86%,#7888b0 14%)!important;color:var(--pkg-modal-muted)!important;font-size:11px!important}
.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-choice-search{display:none!important}

/* Quick-buy group tabs, kept compact and horizontal */
.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-group-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:12px 0 10px!important;flex:none!important}
.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-tier-card{min-height:72px!important;border:1px solid var(--pkg-modal-border)!important;border-radius:18px!important;background:var(--pkg-modal-surface)!important;color:var(--pkg-modal-text)!important;padding:11px 14px!important;text-align:left!important;display:grid!important;grid-template-columns:auto 1fr!important;grid-template-areas:"badge title" "price price"!important;align-items:center!important;gap:5px 9px!important;box-shadow:none!important}
.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-tier-card.is-active{border-color:var(--pkg-modal-accent)!important;background:color-mix(in srgb,var(--pkg-modal-surface) 88%,var(--pkg-modal-accent) 12%)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--pkg-modal-accent) 25%,transparent)!important}
.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-tier-discount{grid-area:badge!important;justify-self:start!important;position:static!important;transform:none!important;min-width:56px!important;padding:6px 10px!important;border-radius:999px!important;background:color-mix(in srgb,var(--pkg-modal-accent) 15%,transparent)!important;color:var(--pkg-modal-text)!important;font-size:12px!important;font-weight:850!important;text-align:center!important}
.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-tier-card strong{grid-area:title!important;font-size:14px!important;line-height:1.15!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-tier-from{grid-area:price!important;font-size:11px!important;color:var(--pkg-modal-muted)!important;white-space:nowrap!important}

/* Common package grids */
.flex-package-modal-list,.flex-package-modal-list[data-package-grid],
.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-grid,
.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-choice-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px 12px!important;min-height:0!important;overflow:visible!important;align-content:start!important;padding:0!important}

/* Common package cards */
.flex-package-modal-item,
.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-card,
.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-card{position:relative!important;min-height:80px!important;height:80px!important;border:1px solid var(--pkg-modal-border)!important;border-radius:18px!important;background:var(--pkg-modal-surface)!important;color:var(--pkg-modal-text)!important;padding:10px 12px!important;display:grid!important;grid-template-columns:34px minmax(0,1fr) minmax(118px,auto)!important;align-items:center!important;gap:10px!important;text-decoration:none!important;box-shadow:none!important;transform:none!important;overflow:visible!important}
.flex-package-modal-item:hover,.flex-package-modal-item:focus-visible,
.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-card:hover,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-card:focus-visible,
.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-card:hover,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-card:focus-visible{border-color:#62d7ba!important;box-shadow:0 9px 22px rgba(22,50,79,.08)!important;outline:none!important}
.flex-package-modal-item.is-featured,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-card[aria-current="page"],.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-card[aria-pressed="true"]{border-color:var(--pkg-modal-selected)!important;background:color-mix(in srgb,var(--pkg-modal-surface) 92%,var(--pkg-modal-selected) 8%)!important}

/* Selection mark */
.flex-package-select-mark,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-check{width:30px!important;height:30px!important;min-width:30px!important;border-radius:9px!important;background:color-mix(in srgb,var(--pkg-modal-surface) 75%,#8392b6 25%)!important;border:1px solid color-mix(in srgb,var(--pkg-modal-border) 80%,#8998b9 20%)!important;display:grid!important;place-items:center!important;color:#fff!important;font-size:16px!important;font-weight:900!important}
.flex-package-modal-item.is-featured .flex-package-select-mark,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-card[aria-pressed="true"] .qb-package-check{background:var(--pkg-modal-selected)!important;border-color:var(--pkg-modal-selected)!important}
.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-icon{width:30px!important;height:30px!important;min-width:30px!important;border-radius:9px!important;background:color-mix(in srgb,var(--pkg-modal-surface) 75%,#8392b6 25%)!important;color:transparent!important;font-size:0!important}
.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-card[aria-current="page"] .checkout-picker-package-icon{background:var(--pkg-modal-selected)!important}
.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-card[aria-current="page"] .checkout-picker-package-icon::after{content:"✓";color:#fff;font-size:16px;font-weight:900}

/* Copy */
.flex-package-modal-copy,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-copy,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-copy{min-width:0!important;display:flex!important;flex-direction:column!important;gap:2px!important;overflow:visible!important}
.flex-package-modal-copy b,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-copy b,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-copy strong{font-size:15px!important;line-height:1.05!important;font-weight:850!important;color:var(--pkg-modal-text)!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
.flex-package-modal-copy small,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-copy small,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-copy span{font-size:10px!important;line-height:1.1!important;color:var(--pkg-modal-muted)!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}

/* Price */
.flex-package-modal-price,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-price,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-price{min-width:118px!important;max-width:160px!important;height:60px!important;border-radius:13px!important;background:var(--pkg-modal-price-bg)!important;padding:8px 10px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;white-space:nowrap!important}
.flex-package-modal-price b,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-price b,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-price b{font-size:14px!important;line-height:1!important;color:var(--pkg-modal-price)!important;font-weight:900!important}
.flex-package-modal-discount,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-price small,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-price small{font-style:normal!important;font-size:9px!important;line-height:1!important;color:var(--pkg-modal-price)!important;border:1px solid color-mix(in srgb,var(--pkg-modal-price) 65%,transparent)!important;border-radius:999px!important;padding:4px 7px!important;background:transparent!important}
.flex-package-modal-arrow,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-arrow{display:none!important}

/* Badges */
.flex-package-favorite,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-badge,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-badge{position:absolute!important;top:-8px!important;left:50%!important;transform:translateX(-50%)!important;z-index:2!important;border-radius:999px!important;background:#ff792d!important;color:#fff!important;padding:4px 8px!important;font-size:8px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important;font-style:normal!important}

/* Bottom consoles */
.flex-package-custom-choice,
.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-console,
.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-choice-footer{margin-top:10px!important;padding-top:10px!important;border-top:1px solid var(--pkg-modal-border)!important;display:grid!important;grid-template-columns:minmax(170px,.72fr) minmax(320px,1.35fr) minmax(180px,.7fr) minmax(240px,.9fr)!important;gap:10px!important;align-items:center!important;flex:none!important;background:transparent!important}
.flex-package-custom-head,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-copy,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-footer-copy{display:flex!important;flex-direction:column!important;gap:2px!important}
.flex-package-custom-head strong,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-copy strong,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-footer-copy strong{font-size:14px!important;color:var(--pkg-modal-text)!important}
.flex-package-custom-head small,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-copy small,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-footer-copy small{font-size:10px!important;line-height:1.2!important;color:var(--pkg-modal-muted)!important}
.flex-package-custom-form{display:contents!important}
.flex-package-stepper,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-stepper,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-footer-stepper{min-height:52px!important;height:52px!important;display:grid!important;grid-template-columns:54px minmax(0,1fr) 54px!important;align-items:stretch!important;border:1px solid var(--pkg-modal-border)!important;border-radius:14px!important;background:var(--pkg-modal-surface)!important;overflow:hidden!important}
.flex-package-stepper button,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-stepper button,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-footer-stepper button{height:100%!important;border:0!important;background:color-mix(in srgb,var(--pkg-modal-price-bg) 82%,transparent)!important;color:var(--pkg-modal-price)!important;font-size:25px!important;font-weight:900!important;cursor:pointer!important}
.flex-package-qty-manual,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-stepper input,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-footer-stepper input{height:50px!important;width:100%!important;border:0!important;background:var(--pkg-modal-surface)!important;color:var(--pkg-modal-text)!important;text-align:center!important;font-size:22px!important;font-weight:850!important;outline:none!important}
.flex-package-range-wrap{display:none!important}
.flex-package-live-box,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-price,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-footer-price{min-height:52px!important;height:52px!important;border:1px solid var(--pkg-modal-border)!important;border-radius:14px!important;background:var(--pkg-modal-surface)!important;padding:7px 12px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:2px!important;overflow:hidden!important}
.flex-package-live-box small,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-price small,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-footer-price small{font-size:9px!important;color:var(--pkg-modal-muted)!important}
.flex-package-live-box strong,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-price strong,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-footer-price strong{font-size:15px!important;color:var(--pkg-modal-text)!important;line-height:1!important}
.flex-package-live-box span{display:none!important}
.flex-package-continue,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-apply,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-footer-apply{min-height:52px!important;height:52px!important;margin:0!important;border-radius:14px!important;font-size:14px!important;font-weight:850!important;align-self:center!important;grid-column:auto!important}

/* Benefit row under category modal keeps the same compact language */
.package-benefit-strip{margin-top:8px!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
.package-benefit-card{min-height:46px!important;border-radius:12px!important;padding:8px 10px!important}
.package-benefit-card strong{font-size:10px!important;line-height:1.15!important}

/* Checkout current selected state can be on any card */
.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-card[aria-current="page"]{box-shadow:0 0 0 1px var(--pkg-modal-selected)!important}

@media(max-height:820px) and (min-width:981px){
 .flex-package-modal-dialog,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-dialog,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-choice-panel{padding:12px 16px 12px!important}
 .flex-package-modal-head,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-head,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-choice-head{padding-bottom:8px!important}
 .flex-package-modal-head h3,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-head h3,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-choice-head h3{font-size:26px!important}
 .flex-package-modal-item,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-card,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-card{height:70px!important;min-height:70px!important}
 .flex-package-modal-price,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-price,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-price{height:52px!important}
 .package-benefit-strip{display:none!important}
}

@media(max-width:1200px){
 .flex-package-modal-list,.flex-package-modal-list[data-package-grid],.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-grid,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .flex-package-custom-choice,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-console,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-choice-footer{grid-template-columns:minmax(140px,.7fr) minmax(260px,1.2fr) minmax(160px,.75fr) minmax(190px,.9fr)!important}
}
@media(max-width:980px){
 .flex-package-modal,.checkout-picker-modal[data-checkout-modal="package"],.hero-v11-buy .qb-choice-modal[data-mode="package"]{padding:12px!important}
 .flex-package-modal-dialog,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-modal-dialog,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-choice-panel{width:100%!important;max-height:calc(100dvh - 24px)!important;border-radius:22px!important;overflow:auto!important}
 .flex-package-modal-list,.flex-package-modal-list[data-package-grid],.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-grid,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-group-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .flex-package-custom-choice,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-console,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-choice-footer{grid-template-columns:1fr 1fr!important}
 .flex-package-continue,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-apply,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-footer-apply{grid-column:2!important}
 .package-benefit-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
 .flex-package-modal-list,.flex-package-modal-list[data-package-grid],.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-grid,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-choice-grid{grid-template-columns:1fr!important}
 .flex-package-modal-item,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-package-card,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-pro-card{grid-template-columns:32px minmax(0,1fr) minmax(100px,auto)!important;height:74px!important;min-height:74px!important}
 .flex-package-custom-choice,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-console,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-choice-footer{grid-template-columns:1fr!important}
 .flex-package-continue,.checkout-picker-modal[data-checkout-modal="package"] .checkout-picker-quantity-apply,.hero-v11-buy .qb-choice-modal[data-mode="package"] .qb-package-footer-apply{grid-column:1!important}
 .package-benefit-strip{grid-template-columns:1fr!important}
}
