.uba-product-coupons {
    margin: 18px 0 20px;
    padding: 14px;
    border: 1px solid #f1d6d2;
    border-radius: 6px;
    background: #fffafa;
}

.uba-product-coupons__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.uba-product-coupons__eyebrow {
    color: #b42318;
    font-size: 14px;
    font-weight: 700;
}

.uba-product-coupons__hint {
    color: #69707d;
    font-size: 12px;
}

.uba-product-coupons__list {
    display: grid;
    gap: 8px;
}

.uba-product-coupon {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 64px;
    border: 1px dashed #e5bbb6;
    background: #ffffff;
}

.uba-product-coupon__value {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #b42318;
    background: #fff0ef;
    font-size: 15px;
    font-weight: 700;
}

.uba-product-coupon__body {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 8px 12px;
}

.uba-product-coupon__body strong,
.uba-product-coupon__body span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uba-product-coupon__body strong {
    color: #20252d;
    font-size: 13px;
    font-weight: 600;
}

.uba-product-coupon__body span {
    color: #69707d;
    font-size: 12px;
}

.uba-product-coupon__countdown {
    color: #0f766e !important;
    font-variant-numeric: tabular-nums;
}

.uba-product-coupon__claim {
    box-sizing: border-box;
    min-width: 60px;
    height: 30px;
    padding: 0 6px;
    margin-right: 10px;
    border: 1px solid #b42318;
    border-radius: 4px;
    background: #ffffff;
    color: #b42318;
    font-size: 13px;
    line-height: 28px;
    white-space: nowrap;
    cursor: pointer;
}

.uba-product-coupon__claim:hover:not(:disabled) {
    background: #b42318;
    color: #ffffff;
}

.uba-product-coupon.is-claimed,
.uba-product-coupon.is-expired {
    border-color: #d9dde3;
}

.uba-product-coupon.is-claimed .uba-product-coupon__value,
.uba-product-coupon.is-expired .uba-product-coupon__value {
    color: #667085;
    background: #f4f6f8;
}

.uba-product-coupon__claim:disabled {
    border-color: #d0d5dd;
    color: #8b95a5;
    cursor: default;
}

@media (max-width: 575.98px) {
    .uba-product-coupons { padding: 10px; }
    .uba-product-coupon { grid-template-columns: 62px minmax(0, 1fr) auto; }
    .uba-product-coupon__value { font-size: 13px; }
    .uba-product-coupon__claim { margin-right: 8px; }
}

.uba-account-coupon {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 116px;
    border-bottom: 1px solid #eaecf0;
}

.uba-account-coupon:last-child { border-bottom: 0; }
.uba-account-coupon.has-product { grid-template-columns: 116px 80px minmax(0, 1fr) auto; }

.uba-account-coupon__offer {
    align-self: stretch;
    display: grid;
    align-content: center;
    gap: 2px;
    justify-content: center;
    color: #b42318;
    background: #fff0ef;
    text-align: center;
}
.uba-account-coupon__offer > span { color: #9d2a20; font-size: 11px; font-weight: 600; }
.uba-account-coupon__offer strong { font-size: 24px; font-weight: 700; }
.uba-account-coupon__offer small { margin-right: 2px; font-size: 12px; font-weight: 600; }
.uba-account-coupon__countdown { padding-top: 3px; color: #c4281c !important; font-size: 11px !important; font-variant-numeric: tabular-nums; font-weight: 700 !important; }
.uba-account-coupon__product { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; margin-left: 16px; overflow: hidden; border: 1px solid #eaecf0; background: #f8fafc; }
.uba-account-coupon__product img { width: 100%; height: 100%; object-fit: cover; }
.uba-account-coupon__product:focus-visible, .uba-account-coupon__product:hover { border-color: #b42318; }

.uba-account-coupon__body {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 16px;
}

.uba-account-coupon__body strong { color: #20252d; font-size: 14px; }
.uba-account-coupon__body span, .uba-account-coupon__body small { color: #69707d; font-size: 12px; }
.uba-account-coupon__scope { width: max-content; max-width: 100%; padding: 2px 6px; border: 1px solid #f1d6d2; color: #a63328 !important; background: #fffafa; font-size: 11px !important; font-weight: 600; }
.uba-account-coupon__product-name { overflow: hidden; color: #475467; font-size: 12px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.uba-account-coupon__product-name:hover { color: #b42318; text-decoration: underline; }

.uba-account-coupon__action {
    display: grid;
    justify-items: end;
    padding: 16px;
}

.uba-account-coupon__use { min-width: 96px; padding: 8px 12px; border: 1px solid #b42318; color: #fff; background: #b42318; font-size: 13px; line-height: 1.25; text-align: center; text-decoration: none; }
.uba-account-coupon__use:hover, .uba-account-coupon__use:focus-visible { color: #fff; background: #8f1e15; }
.uba-account-coupon__status { color: #667085; font-size: 12px; }
.uba-account-coupon.is-pending .uba-account-coupon__offer { color: #667085; background: #f4f6f8; }
.uba-account-coupon.is-expired { opacity: .62; }
.uba-account-coupon.is-expired .uba-account-coupon__offer { color: #667085; background: #f4f6f8; }

.uba-checkout-coupons { margin-top: 20px; border-top: 1px solid #eaecf0; padding-top: 18px; }
.uba-checkout-coupons__heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; color:#20252d; font-size:14px; font-weight:700; }
.uba-checkout-coupons__heading small { color:#69707d; font-size:12px; font-weight:400; }
.uba-checkout-coupons__list { display:grid; gap:8px; }
.uba-checkout-coupon { display:grid; grid-template-columns:auto 72px minmax(0,1fr); align-items:center; gap:10px; min-height:54px; padding:8px 10px; border:1px solid #e4e7ec; border-radius:4px; cursor:pointer; }
.uba-checkout-coupon:hover, .uba-checkout-coupon.is-selected { border-color:#b42318; background:#fffafa; }
.uba-checkout-coupon input { accent-color:#b42318; }
.uba-checkout-coupon strong { color:#b42318; font-size:14px; }
.uba-checkout-coupon span { display:grid; gap:2px; min-width:0; }
.uba-checkout-coupon b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#20252d; font-size:13px; }
.uba-checkout-coupon small { color:#69707d; font-size:12px; }
.uba-checkout-coupon:has(.uba-checkout-coupon__none) { grid-template-columns:auto minmax(0,1fr); }
.uba-checkout-coupon__none { color:#475467; font-size:13px; }
.uba-checkout-coupons.is-loading { opacity:.55; pointer-events:none; }

.uba-targeted-coupon-modal { position:fixed; inset:0; z-index:100010; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(26,32,44,.46); }
.uba-targeted-coupon-modal__dialog { position:relative; width:min(496px,100%); max-height:calc(100vh - 40px); padding:28px; overflow:auto; border:1px solid #f0c5bd; border-radius:6px; background:#fff; box-shadow:0 20px 50px rgba(0,0,0,.22); text-align:center; }
.uba-targeted-coupon-modal__mark { display:inline-flex; width:44px; height:44px; align-items:center; justify-content:center; margin-bottom:12px; border-radius:50%; background:#fff0ef; color:#b42318; font-size:20px; }
.uba-targeted-coupon-modal h3 { margin:0; color:#20252d; font-size:19px; font-weight:700; }.uba-targeted-coupon-modal p { margin:9px 0 16px; color:#69707d; font-size:13px; }
.uba-targeted-coupon-modal ul { display:grid; gap:10px; margin:0 0 18px; padding:0; list-style:none; text-align:left; }
.uba-targeted-coupon-modal li { display:grid; grid-template-columns:104px minmax(0,1fr); gap:12px; padding:12px; border:1px solid #f1d6d2; background:#fffafa; }
.uba-targeted-coupon-modal__product { display:grid; gap:6px; color:#475467; font-size:11px; text-decoration:none; }
.uba-targeted-coupon-modal__product img { width:104px; height:104px; object-fit:cover; background:#f4f6f8; }
.uba-targeted-coupon-modal__product span { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.uba-targeted-coupon-modal__platform { display:grid; align-content:center; justify-items:center; gap:8px; min-height:104px; color:#a63328; background:#fff0ef; font-size:12px; text-align:center; }
.uba-targeted-coupon-modal__platform i { font-size:28px; }
.uba-targeted-coupon-modal__copy { display:grid; align-content:start; gap:5px; min-width:0; }
.uba-targeted-coupon-modal__scope { width:max-content; padding:2px 6px; border:1px solid #f1d6d2; color:#a63328!important; background:#fff; font-size:11px!important; font-weight:600; }
.uba-targeted-coupon-modal li strong { overflow:hidden; color:#20252d; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.uba-targeted-coupon-modal li p { margin:0; color:#69707d; font-size:12px; line-height:1.5; }
.uba-targeted-coupon-modal li b { color:#b42318; font-size:17px; }
.uba-targeted-coupon-modal li small { color:#69707d; font-size:11px; }
.uba-targeted-coupon-modal__use { width:max-content; margin-top:2px; padding:6px 9px; border:1px solid #b42318; color:#b42318; background:#fff; font-size:12px; text-decoration:none; }
.uba-targeted-coupon-modal__use:hover, .uba-targeted-coupon-modal__use:focus-visible { color:#fff; background:#b42318; }
.uba-targeted-coupon-modal__button { display:block; padding:10px 14px; border-radius:4px; background:#b42318; color:#fff!important; font-size:13px; text-decoration:none; }.uba-targeted-coupon-modal__close { position:absolute; top:8px; right:10px; border:0; background:transparent; color:#667085; font-size:24px; line-height:1; }

@media (max-width: 575.98px) {
    .uba-account-coupon, .uba-account-coupon.has-product { grid-template-columns: 76px minmax(0, 1fr); }
    .uba-account-coupon.has-product .uba-account-coupon__product { grid-column:2; grid-row:1; margin:14px 16px 0; }
    .uba-account-coupon.has-product .uba-account-coupon__body { grid-column:2; grid-row:2; padding-top:10px; }
    .uba-account-coupon__offer strong { font-size:18px; }
    .uba-account-coupon__body { padding:14px 16px; }
    .uba-account-coupon__action { grid-column: 2; grid-row: 3; justify-items: start; padding: 0 16px 14px; }
    .uba-targeted-coupon-modal { align-items:flex-start; padding:12px; overflow:auto; }
    .uba-targeted-coupon-modal__dialog { margin:auto 0; padding:24px 16px; }
    .uba-targeted-coupon-modal li { grid-template-columns:76px minmax(0,1fr); gap:10px; padding:10px; }
    .uba-targeted-coupon-modal__product img { width:76px; height:76px; }
    .uba-targeted-coupon-modal__platform { min-height:76px; }
}
