.gd-cart-upsell-layer{position:fixed;z-index:11000;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}.gd-cart-upsell-backdrop{position:absolute;inset:0;background:rgba(20,28,32,.58)}.gd-cart-upsell{position:relative;width:100%;max-width:560px;max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:14px;padding:28px;box-shadow:0 18px 60px rgba(0,0,0,.28);text-align:left}.gd-cart-upsell--with-recommendations{max-width:860px}.gd-cart-upsell__close{position:absolute;right:12px;top:8px;width:44px;height:44px;border:0;background:transparent;font-size:30px;line-height:1;color:#868583}.gd-cart-upsell__status{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#00dbff;color:#fff;font-size:20px}.gd-cart-upsell__title{margin:12px 48px 20px 0;font-size:24px;line-height:1.25;color:#333333}.gd-cart-upsell__product{display:flex;gap:16px;align-items:center;min-height:100px}.gd-cart-upsell__image{width:100px;height:100px;flex:0 0 100px}.gd-cart-upsell__image img{display:block;width:100px;height:100px;object-fit:contain}.gd-cart-upsell__summary{min-width:0}.gd-cart-upsell__message{margin:0 0 8px;line-height:1.45}.gd-cart-upsell__main-prices{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.gd-cart-upsell__old-price{color:#8a9187;font-size:14px;text-decoration:line-through}.gd-cart-upsell__price{display:block;font-size:18px;color:#0096ff}.gd-cart-upsell__count{display:block;margin-top:5px;color:#868583}.gd-cart-upsell__actions{display:flex;gap:12px;margin-top:24px}.gd-cart-upsell__continue,.gd-cart-upsell__checkout{min-height:44px;flex:1;border-radius:7px;padding:12px 16px;text-align:center;font-weight:600;box-sizing:border-box}.gd-cart-upsell__continue{border:1px solid #82c8cc;background:#fff;color:#0096ff}.gd-cart-upsell__checkout{border:1px solid #00dbff;background:#00dbff;color:#fff}.gd-cart-upsell__checkout:hover,.gd-cart-upsell__checkout:focus{color:#fff;background:#ff7800}.gd-cart-upsell-open{overflow:hidden}
.gd-cart-upsell__recommendations{margin-top:24px;padding-top:20px;border-top:1px solid #d8d8d8}.gd-cart-upsell__recommendations-title{margin:0 0 14px;font-size:19px;color:#333333}.gd-cart-upsell__recommendations-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.gd-cart-upsell__card{display:flex;flex-direction:column;min-width:0;padding:10px;border:1px solid #d8d8d8;border-radius:10px;background:#fff}.gd-cart-upsell__card-image{display:block;aspect-ratio:1/1}.gd-cart-upsell__card-image img{display:block;width:100%;height:100%;object-fit:contain}.gd-cart-upsell__card-name{display:-webkit-box;min-height:42px;margin-top:8px;overflow:hidden;color:#333333;font-size:14px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.gd-cart-upsell__card-price{margin:7px 0;color:#0096ff;font-size:16px}.gd-cart-upsell__card-button{min-height:40px;margin-top:auto;border:1px solid #00dbff;border-radius:6px;padding:9px 8px;background:#00dbff;color:#fff;font-weight:600;text-align:center}.gd-cart-upsell__card-button:hover,.gd-cart-upsell__card-button:focus{background:#ff7800;color:#fff}.gd-cart-upsell__card-button.is-loading{opacity:.65}.gd-cart-upsell__card-button.is-added{border-color:#868686;background:#868686}.gd-cart-upsell__card-button--choose{display:block;background:#fff;color:#0096ff}.gd-cart-upsell__card-button--choose:hover,.gd-cart-upsell__card-button--choose:focus{color:#fff}.gd-cart-upsell__card.is-added{background:#f1f1f1}
@media(max-width:720px){.gd-cart-upsell__recommendations-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gd-cart-upsell__card:nth-child(n+4){display:none}}
@media(max-width:520px){.gd-cart-upsell-layer{align-items:flex-end;padding:0}.gd-cart-upsell{max-width:none;max-height:92vh;border-radius:16px 16px 0 0;padding:22px 18px}.gd-cart-upsell__title{font-size:21px}.gd-cart-upsell__product{align-items:flex-start}.gd-cart-upsell__recommendations-grid{gap:8px}.gd-cart-upsell__card{padding:7px}.gd-cart-upsell__card-name{min-height:38px;font-size:12px}.gd-cart-upsell__card-price{font-size:14px}.gd-cart-upsell__card-button{min-height:38px;padding:8px 4px;font-size:12px}.gd-cart-upsell__actions{flex-direction:column-reverse}.gd-cart-upsell__continue,.gd-cart-upsell__checkout{width:100%;flex:none}}

/* v2.0.2 compact UI: fit content instead of reserving an empty 4-column grid. */
.gd-cart-upsell-layer{z-index:2147483000}.gd-cart-upsell--with-recommendations{max-width:680px}.gd-cart-upsell__status{float:left;width:38px;height:38px;font-size:17px}.gd-cart-upsell__title{display:flex;align-items:center;min-height:38px;margin:2px 42px 16px 52px;font-size:22px}.gd-cart-upsell__product{clear:both;gap:12px;min-height:76px}.gd-cart-upsell__image{width:76px;height:76px;flex-basis:76px}.gd-cart-upsell__image img{width:76px;height:76px}.gd-cart-upsell__recommendations{margin-top:16px;padding-top:14px}.gd-cart-upsell__recommendations-title{margin-bottom:10px;font-size:18px}.gd-cart-upsell__recommendations-grid{display:flex;grid-template-columns:none;gap:10px;overflow-x:auto;padding-bottom:3px}.gd-cart-upsell__card{flex:0 0 160px;padding:8px}.gd-cart-upsell__card-image{height:108px;aspect-ratio:auto}.gd-cart-upsell__card-name{min-height:39px;margin-top:6px;font-size:13px;line-height:1.4}.gd-cart-upsell__card-price{margin:5px 0;font-size:15px}.gd-cart-upsell__card-button{min-height:36px;padding:7px 6px}.gd-cart-upsell__actions{margin-top:16px}
@media(max-width:520px){.gd-cart-upsell-layer{align-items:center;padding:8px}.gd-cart-upsell{max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);border-radius:14px;padding:15px}.gd-cart-upsell__status{width:32px;height:32px;font-size:14px}.gd-cart-upsell__title{min-height:32px;margin:0 34px 12px 42px;font-size:19px}.gd-cart-upsell__product{gap:10px;min-height:62px}.gd-cart-upsell__image{width:62px;height:62px;flex-basis:62px}.gd-cart-upsell__image img{width:62px;height:62px}.gd-cart-upsell__message{margin-bottom:4px;font-size:13px}.gd-cart-upsell__main-prices{gap:6px}.gd-cart-upsell__old-price{font-size:12px}.gd-cart-upsell__price{font-size:16px}.gd-cart-upsell__count{margin-top:2px;font-size:12px}.gd-cart-upsell__recommendations{margin-top:12px;padding-top:11px}.gd-cart-upsell__recommendations-title{margin-bottom:8px;font-size:17px}.gd-cart-upsell__recommendations-grid{gap:8px}.gd-cart-upsell__card{flex-basis:142px;padding:6px}.gd-cart-upsell__card:nth-child(n+4){display:none}.gd-cart-upsell__card-image{height:86px}.gd-cart-upsell__card-name{min-height:34px;font-size:12px}.gd-cart-upsell__card-price{font-size:14px}.gd-cart-upsell__card-button{min-height:34px;padding:6px 4px;font-size:12px}.gd-cart-upsell__actions{flex-direction:row;gap:8px;margin-top:12px}.gd-cart-upsell__continue,.gd-cart-upsell__checkout{width:auto;min-height:40px;flex:1;padding:9px 5px;font-size:12px}}

/* v2.0.6: three-card desktop carousel with arrows; swipeable on mobile. */
.gd-cart-upsell__carousel{position:relative}.gd-cart-upsell__recommendations-grid{scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none}.gd-cart-upsell__recommendations-grid::-webkit-scrollbar{display:none}.gd-cart-upsell__card{scroll-snap-align:start}.gd-cart-upsell__carousel-arrow{position:absolute;z-index:3;top:50%;width:38px;height:38px;margin-top:-19px;border:1px solid #d8d8d8;border-radius:50%;background:#fff;color:#ff7800;box-shadow:0 2px 9px rgba(0,0,0,.18)}.gd-cart-upsell__carousel-arrow:hover,.gd-cart-upsell__carousel-arrow:focus{background:#00dbff;color:#fff}.gd-cart-upsell__carousel-arrow--prev{left:-19px}.gd-cart-upsell__carousel-arrow--next{right:-19px}
@media(min-width:721px){.gd-cart-upsell__card{flex:0 0 calc((100% - 20px)/3)}.gd-cart-upsell__card:nth-child(n+4){display:flex}}
@media(max-width:720px){.gd-cart-upsell__card:nth-child(n+4){display:flex}.gd-cart-upsell__carousel-arrow{display:none}}

/* v2.0.7: keep the cart popup above the AI assistant (which uses max z-index). */
.gd-cart-upsell-layer{z-index:2147483647!important}
html.gd-cart-upsell-open #ocbox-ai,body.gd-cart-upsell-open #ocbox-ai,body.gd-cart-upsell-open #ocbox-ai-chat{z-index:2147482000!important}

/* v2.0.8: visible sale pricing without increasing card height. */
.gd-cart-upsell__card-image{position:relative}.gd-cart-upsell__special-badge{position:absolute;z-index:2;top:2px;left:2px;border-radius:4px;padding:3px 6px;background:#e64135;color:#fff;font-size:11px;font-weight:700;line-height:1.2;box-shadow:0 1px 4px rgba(0,0,0,.15)}.gd-cart-upsell__card-prices{display:flex;min-height:23px;align-items:baseline;gap:6px;margin:5px 0;white-space:nowrap}.gd-cart-upsell__card-prices .gd-cart-upsell__card-price{margin:0}.gd-cart-upsell__card-price.is-special{color:#d9362b}.gd-cart-upsell__card-old-price{overflow:hidden;color:#8a9187;font-size:12px;text-decoration:line-through;text-overflow:ellipsis}
@media(max-width:520px){.gd-cart-upsell__special-badge{padding:2px 4px;font-size:10px}.gd-cart-upsell__card-prices{gap:4px}.gd-cart-upsell__card-old-price{font-size:10px}}

/* v3.2.3: suppress only the native add-success popup while the rich popup loads. */
html.gd-cart-upsell-suppress-legacy .mfp-bg,html.gd-cart-upsell-suppress-legacy .mfp-wrap{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
