:root{--sgo-coupon-orange:#f58220;--sgo-coupon-purple:#6f3cff;--sgo-coupon-ink:#241d2d;--sgo-coupon-muted:#756e7d;--sgo-coupon-line:#e9e3ec;--sgo-coupon-soft:#f7f4f8}.sgo-product-vouchers,.sgo-vendor-voucher-section,.sgo-coupon-drawer-inline,.sgo-account-wallet,.sgo-wallet-sheet,.sgo-auth-modal{font-family:inherit;color:var(--sgo-coupon-ink)}.sgo-product-vouchers *,.sgo-vendor-voucher-section *,.sgo-coupon-drawer-inline *,.sgo-account-wallet *,.sgo-wallet-sheet *,.sgo-auth-modal *{box-sizing:border-box}.sgo-inline-heading{display:flex;align-items:center;gap:8px;margin:18px 0 9px;font-size:14px}.sgo-inline-heading span{font-size:18px}.sgo-compact-voucher-list{display:flex;flex-wrap:wrap;gap:8px}.sgo-compact-voucher{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:220px;max-width:100%;padding:10px 11px 10px 14px;border:1px solid #eadff0;border-left:4px solid var(--sgo-coupon-orange);border-radius:11px;background:#fffaf6}.sgo-compact-voucher b{display:block;font-size:13px;color:var(--sgo-coupon-orange);line-height:1.25}.sgo-compact-voucher small{display:block;color:var(--sgo-coupon-muted);font-size:10px;margin-top:3px}.sgo-coupon-action{border:0;border-radius:10px;background:var(--sgo-coupon-orange);color:#fff;font:inherit;font-size:13px;font-weight:800;line-height:1;padding:11px 15px;cursor:pointer;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease}.sgo-coupon-action:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(245,130,32,.22);color:#fff}.sgo-coupon-action:disabled{opacity:.6;cursor:wait;transform:none}.sgo-coupon-action.is-remove{background:#f0ecf3;color:#5e5567}.sgo-coupon-action-compact{padding:8px 11px;font-size:11px}.sgo-vendor-voucher-section{width:100%;max-width:1280px;margin:22px auto;padding:22px;border:1px solid var(--sgo-coupon-line);border-radius:20px;background:linear-gradient(135deg,#fffaf6,#f8f4ff);overflow:hidden}.sgo-vendor-voucher-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:15px}.sgo-vendor-voucher-heading>div{display:flex;align-items:center;gap:9px}.sgo-vendor-voucher-heading span{font-size:23px}.sgo-vendor-voucher-heading h2{font:inherit;font-size:21px;font-weight:800;margin:0}.sgo-vendor-voucher-heading p{margin:0;color:var(--sgo-coupon-muted);font-size:13px}.sgo-vendor-voucher-carousel{display:flex;gap:14px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:2px 2px 8px;max-width:100%}.sgo-vendor-voucher-carousel .sgo-coupon-card{flex:0 0 min(680px,88vw);scroll-snap-align:start}.sgo-coupon-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sgo-coupon-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 190px;min-width:0;border:1px solid var(--sgo-coupon-line);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 26px rgba(39,23,55,.045)}.sgo-coupon-card:before,.sgo-coupon-card:after{content:"";position:absolute;z-index:2;left:calc(100% - 201px);width:20px;height:20px;border-radius:50%;background:var(--sgo-coupon-soft)}.sgo-coupon-card:before{top:-11px}.sgo-coupon-card:after{bottom:-11px}.sgo-coupon-main{padding:18px 20px;min-width:0}.sgo-coupon-stub{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:11px;padding:18px;border-left:2px dashed #ded5e4;background:#fffaf6;text-align:center;min-width:0}.sgo-coupon-topline{display:flex;align-items:center;gap:7px;min-width:0;margin-bottom:8px}.sgo-coupon-emoji{font-size:18px}.sgo-coupon-kicker{font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.1em;color:var(--sgo-coupon-purple);font-weight:900}.sgo-coupon-card h3{font:inherit;font-size:17px;line-height:1.3;font-weight:850;color:var(--sgo-coupon-ink);margin:0 0 7px}.sgo-coupon-description{font-size:12px;line-height:1.5;color:var(--sgo-coupon-muted);margin:0 0 12px;min-height:18px}.sgo-coupon-vendor{display:flex;align-items:flex-start;gap:7px;padding:8px 9px;border-radius:9px;background:#f7f4f8;font-size:11px;line-height:1.35}.sgo-coupon-vendor strong{font-weight:750;color:#4d4456}.sgo-coupon-meta{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:11px;color:#847c8b;font-size:10px;line-height:1.35}.sgo-coupon-value{font-size:18px;line-height:1.2;font-weight:950;color:var(--sgo-coupon-orange);overflow-wrap:anywhere}.sgo-coupon-code small{display:block;font-size:9px;color:#8c8492;margin-bottom:5px}.sgo-coupon-code code{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;padding:7px 6px;border-radius:7px;background:#f1edf4;color:#493b54;font-size:10px;letter-spacing:.04em;white-space:nowrap}.sgo-history-status{display:inline-flex;align-self:center;padding:7px 9px;border-radius:999px;background:#eeeaf1;color:#69616f;font-size:10px;font-weight:800;text-transform:uppercase}.sgo-state-used,.sgo-state-blocked,.sgo-state-expired{opacity:.68}.sgo-coupon-drawer-inline{width:100%;margin:0 0 18px;border:1px solid var(--sgo-coupon-line);border-radius:18px;background:#fff;overflow:hidden}.sgo-coupon-drawer-inline>summary{display:flex;align-items:center;gap:11px;padding:16px 18px;cursor:pointer;list-style:none}.sgo-coupon-drawer-inline>summary::-webkit-details-marker{display:none}.sgo-summary-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#fff1e5;font-size:19px}.sgo-coupon-drawer-inline summary>span:nth-child(2){min-width:0;flex:1}.sgo-coupon-drawer-inline summary strong{display:block;font-size:15px}.sgo-coupon-drawer-inline summary small{display:block;margin-top:3px;color:var(--sgo-coupon-muted);font-size:11px}.sgo-coupon-drawer-inline summary>b{display:grid;place-items:center;min-width:25px;height:25px;border-radius:999px;background:#eee8ff;color:#5632bd;font-size:11px}.sgo-coupon-panel-body{padding:0 18px 18px;border-top:1px solid #f0ebf2}.sgo-mini-coupon-button{display:flex;align-items:center;gap:8px;width:100%;margin:0 0 10px;padding:11px 12px;border:1px solid #eadff0;border-radius:11px;background:#fff8f2;color:var(--sgo-coupon-ink);font:inherit;font-size:12px;font-weight:800;cursor:pointer}.sgo-mini-coupon-button span{flex:1;text-align:left}.sgo-mini-coupon-button b{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:var(--sgo-coupon-orange);color:#fff;font-size:10px}.sgo-account-wallet-header{margin-bottom:18px}.sgo-account-wallet-header>div{display:flex;align-items:center;gap:9px}.sgo-account-wallet-header span{font-size:25px}.sgo-account-wallet-header h2{font:inherit;font-size:24px;font-weight:850;margin:0}.sgo-account-wallet-header p{color:var(--sgo-coupon-muted);font-size:13px;margin:6px 0 0}.sgo-wallet-empty{padding:36px 20px;border:1px dashed #ddd4e2;border-radius:17px;background:#faf8fb;text-align:center}.sgo-wallet-empty>span{font-size:34px}.sgo-wallet-empty h3{font:inherit;font-size:17px;font-weight:800;margin:10px 0 5px}.sgo-wallet-empty p{font-size:12px;color:var(--sgo-coupon-muted);margin:0}.sgo-modal-backdrop{position:fixed;z-index:999998;inset:0;background:rgba(24,15,31,.54);backdrop-filter:blur(5px);opacity:0;transition:opacity .22s ease}.sgo-modal-backdrop.is-visible{opacity:1}.sgo-auth-modal{position:fixed;z-index:999999;left:50%;top:50%;width:min(460px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:auto;transform:translate(-50%,-46%) scale(.98);opacity:0;padding:25px;border-radius:23px;background:#fff;box-shadow:0 28px 90px rgba(27,14,39,.28);transition:.22s ease}.sgo-auth-modal.is-visible{transform:translate(-50%,-50%) scale(1);opacity:1}.sgo-modal-close{position:absolute;right:14px;top:13px;width:34px;height:34px;border:0;border-radius:50%;background:#f3eff5;color:#554c5d;font-size:22px;cursor:pointer}.sgo-auth-brand{display:flex;align-items:center;gap:11px;padding-right:38px}.sgo-auth-brand>span{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:#fff0e4;font-size:23px}.sgo-auth-brand small,.sgo-wallet-sheet-header small{display:block;color:var(--sgo-coupon-purple);font-size:9px;letter-spacing:.12em;font-weight:900}.sgo-auth-brand h2{font:inherit;font-size:23px;font-weight:850;line-height:1.2;margin:3px 0 0}.sgo-auth-modal>p{font-size:13px;line-height:1.55;color:var(--sgo-coupon-muted);margin:14px 0 16px}.sgo-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border-radius:12px;background:#f4f1f5;margin-bottom:15px}.sgo-auth-tabs button{border:0;border-radius:9px;background:transparent;color:#756d7c;font:inherit;font-size:12px;font-weight:800;padding:10px;cursor:pointer}.sgo-auth-tabs button.is-active{background:#fff;color:var(--sgo-coupon-ink);box-shadow:0 3px 10px rgba(30,18,43,.08)}.sgo-auth-form{display:none}.sgo-auth-form.is-active{display:block}.sgo-auth-form label{display:block;font-size:12px;font-weight:800;margin-bottom:11px}.sgo-auth-form input{display:block;width:100%;height:43px;margin-top:6px;border:1px solid #ddd5e2;border-radius:10px;background:#fff;padding:9px 11px;font:inherit}.sgo-auth-form button{width:100%;border:0;border-radius:11px;background:var(--sgo-coupon-orange);color:#fff;font:inherit;font-size:13px;font-weight:850;padding:13px 15px;cursor:pointer;margin-top:3px}.sgo-auth-message{min-height:18px;margin-top:11px;color:#2d7a45;font-size:11px;font-weight:700}.sgo-auth-message.is-error{color:#b13e37}.sgo-wallet-sheet{position:fixed;z-index:999999;right:18px;top:18px;bottom:18px;width:min(760px,calc(100vw - 36px));display:flex;flex-direction:column;border-radius:24px;background:#f8f6f9;box-shadow:0 28px 90px rgba(27,14,39,.28);transform:translateX(calc(100% + 40px));opacity:0;transition:.26s ease;overflow:hidden}.sgo-wallet-sheet.is-visible{transform:translateX(0);opacity:1}.sgo-wallet-sheet-handle{display:none}.sgo-wallet-sheet-header{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--sgo-coupon-line);background:#fff}.sgo-wallet-sheet-header>div{display:flex;align-items:center;gap:10px}.sgo-wallet-sheet-header>div>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#fff0e4;font-size:21px}.sgo-wallet-sheet-header h2{font:inherit;font-size:20px;font-weight:850;margin:2px 0 0}.sgo-wallet-sheet-header button{width:35px;height:35px;border:0;border-radius:50%;background:#f2eef4;color:#554c5d;font-size:22px;cursor:pointer}.sgo-wallet-sheet-body{flex:1;overflow:auto;padding:18px}.sgo-toast{position:fixed;z-index:1000000;left:50%;bottom:25px;max-width:min(420px,calc(100vw - 28px));transform:translate(-50%,20px);opacity:0;border-radius:12px;background:#27202e;color:#fff;padding:12px 17px;font:inherit;font-size:12px;font-weight:750;box-shadow:0 12px 30px rgba(21,13,29,.24);transition:.22s ease}.sgo-toast.is-visible{transform:translate(-50%,0);opacity:1}.sgo-toast.is-error{background:#9f352f}.sgo-modal-open{overflow:hidden!important}.sgo-locked-reward-qty{display:inline-flex;padding:6px 9px;border-radius:8px;background:#eef8f1;color:#2d7545;font-weight:800}.woocommerce-form-coupon-toggle,.checkout_coupon.woocommerce-form-coupon,.woocommerce-cart-form td.actions>.coupon,.wc-block-components-totals-coupon,.wc-block-components-panel__button[aria-controls*="coupon"]{display:none!important}
@media(max-width:980px){.sgo-coupon-card-grid{grid-template-columns:1fr}.sgo-vendor-voucher-carousel .sgo-coupon-card{flex-basis:min(650px,90vw)}}
@media(max-width:640px){.sgo-vendor-voucher-section{padding:16px;border-radius:16px}.sgo-vendor-voucher-heading{align-items:flex-start;flex-direction:column}.sgo-coupon-card{grid-template-columns:minmax(0,1fr) 132px;border-radius:15px}.sgo-coupon-card:before,.sgo-coupon-card:after{left:calc(100% - 143px);width:18px;height:18px}.sgo-coupon-main{padding:14px}.sgo-coupon-stub{padding:13px 10px}.sgo-coupon-value{font-size:14px}.sgo-coupon-card h3{font-size:14px}.sgo-coupon-description{font-size:11px}.sgo-coupon-meta{display:block}.sgo-coupon-meta span{display:block;margin-top:4px}.sgo-coupon-action-card{width:100%;padding:10px 8px}.sgo-coupon-code code{font-size:8px}.sgo-coupon-drawer-inline>summary{padding:14px}.sgo-coupon-panel-body{padding:0 12px 13px}.sgo-wallet-sheet{left:0;right:0;top:auto;bottom:0;width:100%;max-height:88vh;border-radius:22px 22px 0 0;transform:translateY(105%)}.sgo-wallet-sheet.is-visible{transform:translateY(0)}.sgo-wallet-sheet-handle{display:block;width:44px;height:5px;border-radius:999px;background:#d8d1dc;margin:8px auto -3px}.sgo-wallet-sheet-header{padding:14px 16px}.sgo-wallet-sheet-body{padding:13px}.sgo-account-coupon-grid .sgo-coupon-card{grid-template-columns:1fr}.sgo-account-coupon-grid .sgo-coupon-stub{border-left:0;border-top:2px dashed #ded5e4}.sgo-account-coupon-grid .sgo-coupon-card:before,.sgo-account-coupon-grid .sgo-coupon-card:after{display:none}.sgo-compact-voucher-list{display:grid;grid-template-columns:1fr;width:100%}.sgo-compact-voucher{width:100%}.sgo-auth-modal{padding:21px}.sgo-toast{bottom:15px}}

/* Checkout/cart wallet containment fix: always use the available column width. */
.sgo-coupon-drawer-inline{
    max-width:100%;
    min-width:0;
    clear:both;
    container-type:inline-size;
}
.sgo-coupon-drawer-inline .sgo-coupon-panel-body,
.sgo-coupon-drawer-inline .sgo-coupon-card-grid,
.sgo-coupon-drawer-inline .sgo-coupon-card{
    width:100%;
    max-width:100%;
    min-width:0;
}
.sgo-coupon-drawer-inline .sgo-coupon-card-grid{
    grid-template-columns:minmax(0,1fr)!important;
}
.sgo-coupon-drawer-inline .sgo-coupon-card{
    grid-template-columns:minmax(0,1fr) minmax(170px,210px)!important;
}
.sgo-coupon-drawer-inline .sgo-coupon-main,
.sgo-coupon-drawer-inline .sgo-coupon-stub,
.sgo-coupon-drawer-inline .sgo-coupon-topline,
.sgo-coupon-drawer-inline .sgo-coupon-code{
    min-width:0;
}
.sgo-coupon-drawer-inline .sgo-coupon-main{
    overflow:hidden;
}
.sgo-coupon-drawer-inline .sgo-coupon-card h3,
.sgo-coupon-drawer-inline .sgo-coupon-description,
.sgo-coupon-drawer-inline .sgo-coupon-vendor,
.sgo-coupon-drawer-inline .sgo-coupon-meta{
    overflow-wrap:anywhere;
    word-break:normal;
}
.sgo-coupon-drawer-inline .sgo-coupon-code code{
    width:100%;
    max-width:100%;
}
/* The old floating coupon pill is intentionally removed. Keep this as a cache-safe fallback. */
.sgo-floating-wallet-button{display:none!important}

@container (max-width:560px){
    .sgo-coupon-drawer-inline .sgo-coupon-card{
        grid-template-columns:minmax(0,1fr)!important;
    }
    .sgo-coupon-drawer-inline .sgo-coupon-card:before,
    .sgo-coupon-drawer-inline .sgo-coupon-card:after{
        display:none;
    }
    .sgo-coupon-drawer-inline .sgo-coupon-stub{
        display:grid;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr);
        align-items:center;
        gap:10px 12px;
        border-left:0;
        border-top:2px dashed #ded5e4;
        text-align:left;
        padding:14px;
    }
    .sgo-coupon-drawer-inline .sgo-coupon-action-card,
    .sgo-coupon-drawer-inline .sgo-history-status{
        grid-column:1/-1;
        width:100%;
    }
}

@media(max-width:640px){
    .sgo-coupon-drawer-inline .sgo-coupon-card{
        grid-template-columns:minmax(0,1fr)!important;
    }
    .sgo-coupon-drawer-inline .sgo-coupon-card:before,
    .sgo-coupon-drawer-inline .sgo-coupon-card:after{
        display:none;
    }
    .sgo-coupon-drawer-inline .sgo-coupon-stub{
        display:grid;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr);
        align-items:center;
        gap:10px 12px;
        border-left:0;
        border-top:2px dashed #ded5e4;
        text-align:left;
        padding:14px;
    }
    .sgo-coupon-drawer-inline .sgo-coupon-action-card,
    .sgo-coupon-drawer-inline .sgo-history-status{
        grid-column:1/-1;
        width:100%;
    }
}

/* Compact cart/checkout accordion without zoom or transform scaling. */
.sgo-coupon-drawer-inline > summary{
    user-select:none;
    transition:background-color .18s ease;
}
.sgo-coupon-drawer-inline > summary:hover,
.sgo-coupon-drawer-inline[open] > summary{background:#fdfbfe}
.sgo-coupon-drawer-inline .sgo-summary-end{
    display:inline-flex;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
    flex:0 0 auto;
}
.sgo-coupon-drawer-inline .sgo-summary-count,
.sgo-coupon-drawer-inline .sgo-summary-chevron{
    display:grid;
    place-items:center;
    min-width:26px;
    width:26px;
    height:26px;
    border-radius:999px;
    line-height:1;
}
.sgo-coupon-drawer-inline .sgo-summary-count{
    padding:0 6px;
    width:auto;
    background:#eee8ff;
    color:#5632bd;
    font-size:10px;
    font-weight:850;
}
.sgo-coupon-drawer-inline .sgo-summary-chevron{
    position:relative;
    background:#f4f0f6;
    color:#5e5567;
    transition:background-color .2s ease;
}
.sgo-coupon-drawer-inline .sgo-summary-chevron::before{
    content:"";
    width:7px;
    height:7px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:translateY(-2px) rotate(45deg);
    transition:transform .2s ease;
}
.sgo-coupon-drawer-inline[open] .sgo-summary-chevron{
    background:#ece5ff;
    color:#5632bd;
}
.sgo-coupon-drawer-inline[open] .sgo-summary-chevron::before{
    transform:translateY(2px) rotate(225deg);
}
.sgo-coupon-drawer-inline .sgo-coupon-panel-body{
    padding:10px;
    overflow:hidden;
}
.sgo-coupon-drawer-inline .sgo-coupon-card-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch;
    gap:9px!important;
    width:100%;
    max-width:100%;
    overflow:visible;
}
.sgo-coupon-drawer-inline .sgo-coupon-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(118px,138px)!important;
    align-self:stretch;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto;
    transform:none!important;
    transform-origin:initial!important;
    border-radius:13px;
    box-shadow:0 5px 16px rgba(39,23,55,.04);
}
.sgo-coupon-drawer-inline .sgo-coupon-card::before,
.sgo-coupon-drawer-inline .sgo-coupon-card::after{display:none}
.sgo-coupon-drawer-inline .sgo-coupon-main{
    min-width:0;
    overflow:hidden;
    padding:11px 12px;
}
.sgo-coupon-drawer-inline .sgo-coupon-stub{
    min-width:0;
    gap:6px;
    padding:10px;
    border-left-width:1px;
}
.sgo-coupon-drawer-inline .sgo-coupon-topline{
    gap:5px;
    margin-bottom:5px;
}
.sgo-coupon-drawer-inline .sgo-coupon-emoji{font-size:13px}
.sgo-coupon-drawer-inline .sgo-coupon-kicker{
    font-size:7px;
    letter-spacing:.08em;
}
.sgo-coupon-drawer-inline .sgo-coupon-card h3{
    margin:0 0 4px;
    font-size:13px;
    line-height:1.18;
    overflow-wrap:anywhere;
}
.sgo-coupon-drawer-inline .sgo-coupon-description{
    display:-webkit-box;
    min-height:0;
    margin:0 0 6px;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    font-size:9px;
    line-height:1.35;
}
.sgo-coupon-drawer-inline .sgo-coupon-vendor{
    gap:4px;
    padding:5px 6px;
    border-radius:7px;
    font-size:8px;
    line-height:1.25;
    overflow-wrap:anywhere;
}
.sgo-coupon-drawer-inline .sgo-coupon-meta{
    display:flex;
    flex-wrap:wrap;
    gap:3px 7px;
    margin-top:6px;
    font-size:7.5px;
    line-height:1.3;
    overflow-wrap:anywhere;
}
.sgo-coupon-drawer-inline .sgo-coupon-value{
    font-size:13px;
    line-height:1.15;
}
.sgo-coupon-drawer-inline .sgo-coupon-code small{
    margin-bottom:3px;
    font-size:7px;
}
.sgo-coupon-drawer-inline .sgo-coupon-code code{
    width:100%;
    max-width:100%;
    padding:5px 4px;
    border-radius:6px;
    font-size:7.5px;
    letter-spacing:.01em;
}
.sgo-coupon-drawer-inline .sgo-coupon-action-card{
    width:100%;
    min-height:30px;
    padding:8px 6px;
    border-radius:8px;
    font-size:9px;
}
.sgo-coupon-drawer-inline .sgo-history-status{
    padding:5px 6px;
    font-size:7px;
}

@container (max-width:560px){
    .sgo-coupon-drawer-inline .sgo-coupon-card-grid{
        grid-template-columns:minmax(0,1fr)!important;
    }
}
@container (max-width:390px){
    .sgo-coupon-drawer-inline .sgo-coupon-card{
        grid-template-columns:minmax(0,1fr)!important;
    }
    .sgo-coupon-drawer-inline .sgo-coupon-card::before,
    .sgo-coupon-drawer-inline .sgo-coupon-card::after{display:none}
    .sgo-coupon-drawer-inline .sgo-coupon-stub{
        display:grid;
        grid-template-columns:minmax(0,1fr) minmax(110px,.8fr);
        align-items:center;
        border-left:0;
        border-top:1px dashed #ded5e4;
        text-align:left;
    }
    .sgo-coupon-drawer-inline .sgo-coupon-action-card,
    .sgo-coupon-drawer-inline .sgo-history-status{grid-column:1/-1}
}
@media(max-width:640px){
    .sgo-coupon-drawer-inline .sgo-coupon-card-grid{grid-template-columns:minmax(0,1fr)!important}
    .sgo-coupon-drawer-inline > summary{padding:12px;gap:8px}
    .sgo-coupon-drawer-inline .sgo-summary-icon{width:32px;height:32px;font-size:16px}
    .sgo-coupon-drawer-inline summary strong{font-size:12px}
    .sgo-coupon-drawer-inline summary small{font-size:9px}
    .sgo-coupon-drawer-inline .sgo-coupon-panel-body{padding:8px}
}

/* V1.0.5 — clean applied coupon presentation */
.cart-discount[class*="coupon-"] th,
.cart-discount[class*="coupon-"] td {
    vertical-align: middle;
}
.cart-discount[class*="coupon-"] th {
    font-weight: 800 !important;
    color: #211d2b !important;
    overflow-wrap: anywhere;
}
.cart-discount[class*="coupon-"] td {
    text-align: right;
}
.sgo-summary-discount {
    display: inline-block;
    margin-right: 10px;
    color: #211d2b;
    font-weight: 850;
}
.sgo-summary-remove,
a.sgo-summary-remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #dc3d38 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.sgo-summary-remove:hover { background: #bd2f2b !important; color: #fff !important; }
.sgo-applied-summary-card {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 12px 0;
    padding: 13px 14px;
    border: 1px solid #eadff7;
    border-radius: 14px;
    background: linear-gradient(135deg,#fff 0%,#fff8f2 100%);
    box-sizing: border-box;
}
.sgo-applied-summary-copy { min-width: 0; }
.sgo-applied-summary-copy small {
    display: block;
    margin-bottom: 2px;
    color: #7d7488;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sgo-applied-summary-copy strong {
    display: block;
    color: #211d2b;
    font-size: 14px;
    line-height: 1.25;
}
.sgo-applied-summary-amount {
    color: var(--sgo-coupon-orange);
    font-weight: 900;
    white-space: nowrap;
}
.sgo-applied-summary-card.is-vendor {
    margin: 10px 0;
    border-color: #ded9cb;
    background: rgba(255,255,255,.58);
}
@media (max-width: 600px) {
    .sgo-applied-summary-card { grid-template-columns: 1fr auto; }
    .sgo-applied-summary-card .sgo-summary-remove { grid-column: 1 / -1; width: 100%; }
}

/* V1.0.6 — colourful ticket vouchers and unified cart placement */
.sgo-coupon-card{
    position:relative;
    overflow:hidden;
    border:0!important;
    border-radius:18px!important;
    color:#172033;
    box-shadow:0 10px 26px rgba(41,35,68,.12)!important;
}
.sgo-coupon-card.sgo-ticket-color-0,
.sgo-applied-summary-card.sgo-ticket-color-0{
    background:linear-gradient(120deg,#d6a4ff 0%,#b8c8ff 50%,#8fd3ff 100%)!important;
}
.sgo-coupon-card.sgo-ticket-color-1,
.sgo-applied-summary-card.sgo-ticket-color-1{
    background:linear-gradient(120deg,#ffd27f 0%,#ffb48f 46%,#ff8498 100%)!important;
}
.sgo-coupon-card.sgo-ticket-color-2,
.sgo-applied-summary-card.sgo-ticket-color-2{
    background:linear-gradient(120deg,#8fc8ff 0%,#49c7ef 48%,#55e2c6 100%)!important;
}
.sgo-coupon-card .sgo-coupon-main,
.sgo-coupon-card .sgo-coupon-stub{
    background:transparent!important;
}
.sgo-coupon-card .sgo-coupon-stub{
    border-left:2px dashed rgba(255,255,255,.65)!important;
}
.sgo-coupon-card .sgo-coupon-kicker,
.sgo-coupon-card h3,
.sgo-coupon-card .sgo-coupon-description,
.sgo-coupon-card .sgo-coupon-meta,
.sgo-coupon-card .sgo-coupon-value,
.sgo-coupon-card .sgo-coupon-code small{
    color:#172033!important;
}
.sgo-coupon-card .sgo-coupon-vendor,
.sgo-coupon-card .sgo-coupon-code code{
    background:rgba(255,255,255,.48)!important;
    color:#172033!important;
    border:1px solid rgba(255,255,255,.5)!important;
}
.sgo-coupon-card .sgo-coupon-action-card{
    background:#fff!important;
    color:#1d2433!important;
    box-shadow:0 5px 14px rgba(25,30,52,.12);
}
.sgo-coupon-card .sgo-coupon-action-card:hover{
    background:#182033!important;
    color:#fff!important;
}
.sgo-coupon-card:before,
.sgo-coupon-card:after{
    content:""!important;
    display:block!important;
    position:absolute;
    z-index:3;
    top:50%;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#fff;
    transform:translateY(-50%);
    pointer-events:none;
}
.sgo-coupon-card:before{left:-10px}
.sgo-coupon-card:after{right:-10px}

.sgo-applied-marketplace-list{
    display:grid;
    gap:10px;
    width:100%;
    margin:10px 0 16px;
}
.sgo-applied-summary-card{
    position:relative;
    overflow:hidden;
    border:0!important;
    border-radius:16px!important;
    color:#172033;
    box-shadow:0 8px 22px rgba(41,35,68,.11)!important;
}
.sgo-applied-summary-card:before,
.sgo-applied-summary-card:after{
    content:"";
    position:absolute;
    top:50%;
    width:16px;
    height:16px;
    border-radius:50%;
    background:#fff;
    transform:translateY(-50%);
}
.sgo-applied-summary-card:before{left:-8px}
.sgo-applied-summary-card:after{right:-8px}
.sgo-applied-summary-copy small,
.sgo-applied-summary-copy strong,
.sgo-applied-summary-amount{color:#172033!important}
.sgo-applied-summary-copy strong{font-size:15px!important}
.sgo-applied-summary-amount{font-size:16px!important}
.sgo-applied-summary-card .sgo-summary-remove{
    background:#d93632!important;
    color:#fff!important;
    border-radius:999px!important;
    min-height:36px!important;
    padding:8px 16px!important;
}

/* Native WooCommerce rows are hidden after the custom named card is rendered. */
tr.cart-discount[class*="coupon-"].sgo-native-hidden,
.cart-discount[class*="coupon-"].sgo-native-hidden{display:none!important}

/* Give the wallet breathing room when moved between Fresh Points and totals. */
.sgo-coupon-drawer-cart{
    margin:16px 0!important;
}

@container (max-width:390px){
    .sgo-coupon-card .sgo-coupon-stub{border-left:0!important;border-top:2px dashed rgba(255,255,255,.65)!important}
}
@media(max-width:640px){
    .sgo-coupon-card .sgo-coupon-stub{border-left:0!important;border-top:2px dashed rgba(255,255,255,.65)!important}
    .sgo-applied-summary-card{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding:12px 16px!important}
    .sgo-applied-summary-card .sgo-summary-remove{grid-column:auto!important;width:auto!important}
}

/* V1.0.7: keep every cart coupon element together inside the summary column. */
.sgo-cart-coupon-placement {
    width: 100%;
    min-width: 0;
    margin: 18px 0;
}
.sgo-cart-coupon-placement > .sgo-coupon-drawer-cart,
.sgo-cart-coupon-placement > .sgo-applied-marketplace-list {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.sgo-cart-coupon-placement > .sgo-applied-marketplace-list {
    margin-top: 12px;
}

/* V1.0.8 — applied coupon deductions live inside the Items total card. */
.sgo-coupon-deduction-list{
    display:block;
    width:100%;
    margin:0;
    padding:0;
}
.sgo-coupon-deduction-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    min-width:0;
    padding:12px 14px;
    margin:8px 0;
    border-radius:12px;
    background:#eefaf2;
    color:#157a3d;
}
.sgo-coupon-deduction-label,
.sgo-coupon-deduction-value{
    display:flex;
    align-items:center;
    min-width:0;
}
.sgo-coupon-deduction-label{gap:8px;flex:1 1 auto}
.sgo-coupon-deduction-label strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#157a3d;
    font:inherit;
    font-size:14px;
    font-weight:800;
    line-height:1.25;
}
.sgo-coupon-deduction-icon{font-size:15px;line-height:1}
.sgo-coupon-deduction-value{gap:9px;flex:0 0 auto}
.sgo-coupon-deduction-amount{
    color:#157a3d;
    font:inherit;
    font-size:14px;
    font-weight:850;
    white-space:nowrap;
}
.sgo-summary-remove-small,
button.sgo-summary-remove-small{
    min-width:0!important;
    width:auto!important;
    height:28px!important;
    padding:5px 10px!important;
    border:1px solid #d7e8dc!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#58625b!important;
    font:inherit!important;
    font-size:10px!important;
    font-weight:800!important;
    line-height:1!important;
    box-shadow:none!important;
}
.sgo-summary-remove-small:hover,
button.sgo-summary-remove-small:hover{
    border-color:#e23d38!important;
    background:#fff5f4!important;
    color:#c72f2b!important;
}
@media(max-width:640px){
    .sgo-coupon-deduction-row{padding:10px 11px;gap:8px}
    .sgo-coupon-deduction-label{gap:6px}
    .sgo-coupon-deduction-label strong,.sgo-coupon-deduction-amount{font-size:12px}
    .sgo-summary-remove-small,button.sgo-summary-remove-small{height:26px!important;padding:4px 8px!important;font-size:9px!important}
}


/* V1.0.10 — preserve V1.0.8 layout; only compact the custom remove control and hide exact duplicate native rows. */
.sgo-native-coupon-row-hidden{display:none!important}
.sgo-summary-remove-small,
button.sgo-summary-remove-small{
    height:24px!important;min-height:24px!important;padding:4px 8px!important;
    border:0!important;border-radius:7px!important;background:#e63b36!important;color:#fff!important;
    font-size:9px!important;font-weight:850!important;line-height:1!important;box-shadow:none!important;
}
.sgo-summary-remove-small:hover,button.sgo-summary-remove-small:hover{background:#c92f2b!important;color:#fff!important}
@media(max-width:640px){.sgo-summary-remove-small,button.sgo-summary-remove-small{height:22px!important;min-height:22px!important;padding:3px 7px!important;font-size:8px!important}}
