.cbo-coupon-reveal-note,
.cbo-coupon-reveal-message {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 8px;
}

.cbo-coupon-reveal-note {
    color: #5b6b7c;
}

.cbo-coupon-reveal-message {
    border-radius: 10px;
    padding: 8px 10px;
    background: #f4f8ff;
    color: #21415f;
    border: 1px solid #d8e8ff;
}

.cbo-coupon-reveal-message[hidden],
.cbo-coupon-reveal-fallback[hidden],
.cbo-coupon-reveal-manual[hidden] {
    display: none !important;
}

.cbo-coupon-reveal-message--success {
    background: #edf9f1;
    color: #176738;
    border-color: #bee7c9;
}

.cbo-coupon-reveal-message--warning {
    background: #fff8e8;
    color: #795001;
    border-color: #ffe1a3;
}

.cbo-coupon-reveal-message--error {
    background: #fff0f0;
    color: #8a1f1f;
    border-color: #ffc9c9;
}

.cbo-coupon-action--button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.cbo-coupon-action--button.is-loading {
    opacity: .78;
    pointer-events: none;
}

.cbo-coupon-code--revealed .cbo-coupon-code__value {
    letter-spacing: .04em;
}

.cbo-coupon-reveal-fallback {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #0757b8;
    text-decoration: underline;
}

.coupons-list .coupon .cbo-store-coupon-reveal {
    float: right;
    clear: right;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 310px;
    max-width: 34%;
    margin: 0 0 14px 24px;
    text-align: center;
}

.coupons-list .coupon .cbo-store-coupon-code {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 11px 14px;
    border-radius: 16px;
    background: #fffaf2;
    border: 1px dashed #14a77b;
    color: #063f37;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.coupons-list .coupon .cbo-store-coupon-code.cbo-coupon-code--locked {
    color: #0d5a46;
}

.coupons-list .coupon .cbo-store-coupon-code__label {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    color: #637289;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.coupons-list .coupon .cbo-store-coupon-code__value {
    display: block;
    font-size: 17px;
    margin-top: 4px;
    letter-spacing: .08em;
}

.coupons-list .coupon .cbo-store-coupon-button {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #075bbb;
    color: #fff;
    font-weight: 800;
    padding: 11px 16px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(7, 87, 184, .22);
}

.coupons-list .coupon .cbo-store-coupon-button:hover,
.coupons-list .coupon .cbo-store-coupon-button:focus {
    background: #064b9d;
    color: #fff;
    text-decoration: none;
}

.coupons-list .coupon .cbo-store-coupon-reveal .cbo-coupon-reveal-message,
.coupons-list .coupon .cbo-store-coupon-reveal .cbo-coupon-reveal-note,
.coupons-list .coupon .cbo-store-coupon-reveal .cbo-coupon-reveal-manual {
    text-align: center;
}

.coupons-list .coupon .cbo-store-coupon-reveal .cbo-coupon-reveal-note {
    margin-top: 0;
    color: #516680;
}

.coupons-list .coupon .cbo-store-coupon-reveal .cbo-coupon-reveal-fallback {
    align-self: center;
}

@media (max-width: 991px) {
    .coupons-list .coupon .cbo-store-coupon-reveal {
        max-width: 42%;
    }
}

@media (max-width: 767px) {
    .coupons-list .coupon .cbo-store-coupon-reveal {
        float: none;
        width: 100%;
        max-width: none;
        margin: 14px 0 12px;
        text-align: center;
    }

    .coupons-list .coupon .cbo-store-coupon-code {
        margin-left: 0;
    }
}

/* R6: modern shop-detail coupon card alignment */
.coupons-list .scissors {
    display: none !important;
}

.coupons-list .coupon.cbo-store-coupon-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: center;
    min-height: 0;
    padding: 24px 26px !important;
    border: 1px solid #dbeaf7 !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fbfdff 100%) !important;
    box-shadow: 0 18px 48px rgba(16, 44, 84, .08) !important;
}

.coupons-list .coupon.cbo-store-coupon-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%) !important;
    border-color: #c8ddf4 !important;
}

.cbo-store-coupon-main {
    min-width: 0;
}

.cbo-store-coupon-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.coupons-list .coupon .coupon_title.cbo-store-coupon-title {
    color: #062554 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 24px !important;
    line-height: 1.18 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.coupons-list .coupon .coupon_title.cbo-store-coupon-title:hover,
.coupons-list .coupon .coupon_title.cbo-store-coupon-title:focus {
    color: #075bbb !important;
    text-decoration: none !important;
}

.cbo-store-coupon-badges {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.cbo-store-coupon-badges .exclusive_s,
.cbo-store-coupon-badges .coupon_times_used {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    background: #edf5ff;
    color: #1d416a;
}

.cbo-store-coupon-badges .exclusive_s {
    background: #fff6de;
    color: #805500;
}

.coupons-list .coupon .cbo-store-coupon-description {
    max-width: 850px;
    min-height: 0;
    margin: 0 0 16px;
    color: #405577 !important;
    font-size: 16px !important;
    line-height: 1.58 !important;
}

.cbo-store-coupon-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cbo-store-coupon-meta-row .expires,
.cbo-store-coupon-meta-row .time_left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff6e6;
    color: #7a4d00 !important;
    font-size: 13px;
    font-weight: 800;
}

.cbo-store-coupon-meta-row .expires:before,
.cbo-store-coupon-meta-row .time_left:before {
    content: none !important;
}

.coupons-list .coupon.cbo-store-coupon-card .cbo-store-coupon-reveal {
    float: none;
    clear: none;
    width: 100%;
    max-width: none;
    margin: 0;
    justify-self: end;
    align-self: center;
    text-align: center;
}

.coupons-list .coupon.cbo-store-coupon-card .cbo-store-coupon-code {
    background: #fffaf2;
    border: 1px dashed #14a77b;
    border-radius: 18px;
    padding: 15px 18px;
}

.coupons-list .coupon.cbo-store-coupon-card .cbo-store-coupon-code__value {
    font-size: 20px;
}

.coupons-list .coupon.cbo-store-coupon-card .cbo-store-coupon-button {
    padding: 14px 18px;
    font-size: 16px;
}

.coupons-list .coupon.cbo-store-coupon-card .cbo-coupon-reveal-message,
.coupons-list .coupon.cbo-store-coupon-card .cbo-coupon-reveal-note,
.coupons-list .coupon.cbo-store-coupon-card .cbo-coupon-reveal-manual {
    max-width: 100%;
}

.cbo-store-coupon-deal-link {
    float: none !important;
    justify-self: end;
    align-self: center;
}

@media (max-width: 991px) {
    .coupons-list .coupon.cbo-store-coupon-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .coupons-list .coupon.cbo-store-coupon-card .cbo-store-coupon-reveal,
    .cbo-store-coupon-deal-link {
        justify-self: stretch;
    }
}

@media (max-width: 640px) {
    .coupons-list .coupon.cbo-store-coupon-card {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .coupons-list .coupon .coupon_title.cbo-store-coupon-title {
        font-size: 20px !important;
    }

    .cbo-store-coupon-meta-row .expires,
    .cbo-store-coupon-meta-row .time_left {
        width: 100%;
        justify-content: center;
    }
}

/* CashbackOase Phase D - mobile coupon reveal hardening 2026-05-23
   Keeps the click-to-reveal/copy/open behaviour untouched and only improves small-screen layout. */
@media (max-width: 767px) {
    .cbo-coupon-code,
    .cbo-store-coupon-code {
        min-height: 68px;
    }

    .cbo-coupon-code__label,
    .cbo-store-coupon-code__label {
        line-height: 1.25;
    }

    .cbo-coupon-action--button,
    .cbo-store-coupon-button {
        min-height: 52px;
        touch-action: manipulation;
    }

    .cbo-coupon-reveal-note,
    .cbo-coupon-reveal-message,
    .cbo-coupon-reveal-manual {
        font-size: 12.5px;
        line-height: 1.42;
    }

    .cbo-coupon-reveal-fallback {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
    }

    .coupons-list .coupon.cbo-store-coupon-card {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
        padding: 18px 16px !important;
        overflow: hidden;
    }

    .coupons-list .coupon.cbo-store-coupon-card .cbo-store-coupon-main,
    .coupons-list .coupon.cbo-store-coupon-card .cbo-store-coupon-reveal {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .cbo-store-coupon-title-row {
        gap: 10px;
    }

    .coupons-list .coupon .coupon_title.cbo-store-coupon-title {
        font-size: clamp(20px, 6.4vw, 24px) !important;
        overflow-wrap: anywhere;
    }

    .cbo-store-coupon-meta-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .cbo-store-coupon-meta-row .expires,
    .cbo-store-coupon-meta-row .time_left {
        min-height: 36px;
        width: auto;
        max-width: 100%;
    }

    .coupons-list .coupon.cbo-store-coupon-card .cbo-store-coupon-reveal {
        justify-self: stretch;
        align-self: stretch;
        margin-top: 2px;
    }

    .coupons-list .coupon.cbo-store-coupon-card .cbo-store-coupon-code {
        display: flex;
        min-height: 76px;
        flex-direction: column;
        justify-content: center;
    }

    .coupons-list .coupon.cbo-store-coupon-card .cbo-store-coupon-button {
        width: 100%;
        border-radius: 16px;
    }
}

@media (max-width: 420px) {
    .coupons-list .coupon.cbo-store-coupon-card {
        padding: 16px 14px !important;
        border-radius: 16px !important;
    }

    .cbo-store-coupon-badges {
        width: 100%;
    }

    .cbo-store-coupon-badges .exclusive_s,
    .cbo-store-coupon-badges .coupon_times_used {
        max-width: 100%;
    }

    .cbo-store-coupon-meta-row .expires,
    .cbo-store-coupon-meta-row .time_left {
        width: 100%;
        justify-content: center;
    }
}
