/* growth-offers flag: 3 for £10, free-delivery nudge, email signup. Tokens from v3.css / BRAND.md */

.go-deal-badge {
    display: inline-block;
    color: var(--coral, #B4412A);
    background: var(--coral-soft, #F8E4DC);
    font-size: 12px;
    font-weight: 590;
    line-height: 1.2;
    letter-spacing: 0;
    border-radius: 999px;
    padding: 4px 8px;
    margin: 0;
    vertical-align: middle;
}
body.az-v3 .product-card .card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 2.6em;
}
body.az-v3 .product-card .card-meta .go-deal-badge { margin-top: 0; }
body.az-v3 .product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
body.az-v3 .shelf-item .go-deal-badge { margin-top: 4px; }
.go-deal-hint {
    margin: 8px 0 0;
    color: var(--muted, #6e6e73);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

body.az-v3 .go-deal-saving,
body.az-v3 .go-deal-saving .price,
body.az-v3 .go-deal-saving span,
.go-deal-saving,
.go-deal-saving .price {
    color: #1F4D32;
    font-size: 15px;
    font-weight: 400;
}

.go-basket-totals {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 8px 0 16px;
    width: 100%;
}
.go-basket-totals .basket-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    width: 100%;
    padding: 6px 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--ink, #1d1d1f);
}
.go-basket-totals .basket-total .price,
body.az-v3 .go-basket-totals .basket-total .price {
    color: var(--ink, #1d1d1f);
    font-size: inherit;
    font-weight: inherit;
}
.go-basket-totals .go-deal-saving,
.go-basket-totals .go-deal-saving .price,
body.az-v3 .go-basket-totals .go-deal-saving,
body.az-v3 .go-basket-totals .go-deal-saving .price {
    color: #1F4D32;
    font-size: 15px;
    font-weight: 400;
}
.go-basket-total,
.go-basket-total .price,
body.az-v3 .go-basket-totals .go-basket-total,
body.az-v3 .go-basket-totals .go-basket-total .price {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink, #1d1d1f);
}

.go-basket-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 16px 0 8px;
}
a.button.go-basket-checkout,
body.az-v3 a.button.go-basket-checkout,
.go-basket-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    box-sizing: border-box;
}
body.az-v3 button.go-basket-update,
.go-basket-update {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    align-self: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--accent, #0071e3);
    font: inherit;
    font-size: 15px;
    font-weight: 590;
    min-height: 44px;
    padding: 0;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
body.az-v3 button.go-basket-update:hover,
.go-basket-update:hover {
    background: transparent;
    color: var(--accent, #0071e3);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.go-basket-note {
    margin: 8px 0 0;
    color: var(--muted, #6e6e73);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.go-nudge {
    background: var(--leaf-soft, #E4F0E6);
    color: var(--leaf, #1F4D32);
    border-radius: 14px;
    padding: 12px 16px;
    margin: 12px 0 16px;
}
.go-nudge-copy {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 590;
    line-height: 1.35;
    color: var(--leaf, #1F4D32);
}
.go-nudge-bar {
    height: 4px;
    border-radius: 999px;
    background: #d2d2d7;
    overflow: hidden;
}
.go-nudge-bar span {
    display: block;
    height: 100%;
    background: var(--leaf, #1F4D32);
    border-radius: 999px;
}

.go-addons { margin: 0 0 20px; }
.go-addons-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}
.go-addon-card {
    flex: 0 0 auto;
    width: 132px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.go-addon-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 4px; min-height: 44px; }
.go-addon-cover, .go-addon-cover img, .go-addon-cover-empty {
    width: 64px;
    height: 96px;
    object-fit: contain;
    background: var(--bg-subtle, #f5f5f7);
    border-radius: 8px;
    display: block;
}
.go-addon-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 590;
    line-height: 1.3;
    min-height: calc(1.3em * 2);
}
.go-addon-price { color: var(--coral, #B4412A); font-weight: 650; font-size: 14px; }
body.az-v3 button.go-add,
.go-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    min-width: 44px;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent, #0071e3);
    font-size: 13px;
    font-weight: 590;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
}
body.az-v3 button.go-add .go-add-visual,
.go-add-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--accent, #0071e3);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    box-sizing: border-box;
}
body.az-v3 button.go-add:hover,
.go-add:hover { background: transparent; color: var(--accent, #0071e3); }
body.az-v3 button.go-add:hover .go-add-visual,
.go-add:hover .go-add-visual { background: rgba(0, 113, 227, 0.06); }

.go-signup-card {
    background: var(--bg-subtle, #f5f5f7);
    border-radius: 16px;
    padding: 20px;
    margin: 0;
}
.go-signup-heading,
body.az-v3 footer .go-signup-heading {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--ink, #1d1d1f);
}
.go-signup-copy {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted, #6e6e73);
}
.go-signup-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}
.go-signup-email {
    flex: 1 1 160px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--line, #d2d2d7);
    border-radius: 999px;
    font-size: 16px;
    background: #fff;
}
.go-signup-submit {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--accent, #0071e3);
    color: #fff;
    font-size: 15px;
    font-weight: 590;
    cursor: pointer;
}
.go-signup-submit:hover { background: var(--accent-hover, #0077ed); }
.go-signup-optin,
body.az-v3 footer .go-signup-optin {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.35;
    color: var(--muted, #6e6e73);
    cursor: pointer;
}
.go-signup-optin input,
body.az-v3 footer .go-signup-optin input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    flex: 0 0 auto;
}
.go-signup-optin a,
body.az-v3 footer .go-signup-optin a {
    display: inline;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.az-v3 footer .footer-grid {
    /* card sits as a full-width row above the existing columns */
}
body.az-v3 .go-signup-footer {
    grid-column: 1 / -1;
    margin: 0 0 8px;
}

.go-signup-banner {
    position: fixed;
    z-index: 45;
    max-width: 360px;
    width: calc(100% - 32px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    overflow: auto;
    max-height: min(80dvh, 520px);
}
.go-signup-banner .go-signup-card { margin: 0; }
.go-signup-banner .go-signup-heading { padding-right: 52px; }
body.az-v3 button.go-signup-dismiss,
.go-signup-dismiss {
    position: absolute;
    top: 4px;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink, #1d1d1f);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: none;
    cursor: pointer;
    z-index: 1;
}
.go-signup-dismiss span { display: block; line-height: 1; }
body.az-v3 button.go-signup-dismiss:hover,
.go-signup-dismiss:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--ink, #1d1d1f);
}

@media (max-width: 768px) {
    .go-signup-banner {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}
@media (min-width: 769px) {
    .go-signup-banner {
        left: 16px;
        bottom: 16px;
    }
}

/* Shift the chat chip up so it never sits under the banner.
   Keep the env() term in a @supports block: some engines drop the whole
   declaration when env() and a custom property are mixed in one calc(). */
body.az-v3.az-signup-banner-on .chat-widget,
body.az-signup-banner-on .chat-widget {
    bottom: var(--go-banner-shift, 220px) !important;
}
@supports (bottom: calc(220px + env(safe-area-inset-bottom, 0px))) {
    body.az-v3.az-signup-banner-on .chat-widget,
    body.az-signup-banner-on .chat-widget {
        bottom: calc(var(--go-banner-shift, 220px) + env(safe-area-inset-bottom, 0px)) !important;
    }
}
