.bap-custom-scripts-coupon-container {
    margin: 25px 0;
    font-family: var(--minimog-typography-body-font-family, 'Geom');
    --bap-cs-ok: #27ae60;
    --bap-cs-ok-soft: rgba(39, 174, 96, 0.12);
    --bap-cs-accent: var(--minimog-color-primary, rgb(191, 15, 48));
}

.bap-custom-scripts-coupon-area-title {
    font-size: 13px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.bap-custom-scripts-coupon-card {
    display: flex;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px) scale(0.985);
}

.bap-custom-scripts-coupon-container.is-revealed .bap-custom-scripts-coupon-card {
    animation: bapCsCardEnter 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--bap-cs-stagger, 0s);
}

.bap-custom-scripts-coupon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -8px rgba(0, 0, 0, 0.12);
}

.bap-custom-scripts-coupon-card.is-active {
    background: linear-gradient(135deg, #f9fff9 0%, #f4fff6 100%);
    border: 1px solid var(--bap-cs-ok);
    box-shadow: 0 12px 30px -10px rgba(39, 174, 96, 0.35);
}

.bap-custom-scripts-coupon-left {
    flex: 1;
    padding: 16px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.bap-custom-scripts-coupon-content {
    display: flex;
    flex-direction: column;
}

.bap-custom-scripts-coupon-code {
    color: var(--minimog-color-heading, #000);
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bap-custom-scripts-coupon-card.is-active .bap-custom-scripts-coupon-code {
    color: var(--bap-cs-ok);
}

.bap-custom-scripts-coupon-desc {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.bap-custom-scripts-coupon-divider {
    position: relative;
    width: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.bap-custom-scripts-coupon-line {
    width: 0;
    height: 100%;
    border-left: 2px dashed #e8e8e8;
}

.bap-custom-scripts-coupon-notch-top,
.bap-custom-scripts-coupon-notch-bottom {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.bap-custom-scripts-coupon-notch-top { top: -9px; }
.bap-custom-scripts-coupon-notch-bottom { bottom: -9px; }

.bap-custom-scripts-coupon-right {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #fafafa;
    z-index: 2;
}

.bap-custom-scripts-coupon-card.is-active .bap-custom-scripts-coupon-right {
    background: #f0fff4;
}

.bap-custom-scripts-coupon-action-btn {
    width: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.bap-custom-scripts-coupon-action-btn.btn-apply {
    color: #000;
}

.bap-custom-scripts-coupon-action-btn.btn-apply:hover {
    background: #000;
    color: #fff;
}

.bap-custom-scripts-coupon-action-btn.btn-remove {
    color: var(--bap-cs-ok);
}

.bap-custom-scripts-coupon-action-btn .hover-text {
    display: none;
}

@media (hover: hover) {
    .bap-custom-scripts-coupon-action-btn.btn-remove:hover .state-text { display: none; }
    .bap-custom-scripts-coupon-action-btn.btn-remove:hover .hover-text { display: block; }
    .bap-custom-scripts-coupon-action-btn.btn-remove:hover {
        background: rgba(191, 15, 48, 0.05);
        color: var(--bap-cs-accent);
    }
}

.bap-custom-scripts-coupon-action-btn.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.bap-custom-scripts-coupon-msg {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.48s ease, opacity 0.34s ease, margin 0.42s ease, padding 0.42s ease;
}

.bap-custom-scripts-coupon-msg.is-open {
    max-height: 6rem;
    opacity: 1;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.bap-custom-scripts-coupon-msg.is-success {
    color: var(--bap-cs-ok);
    background: var(--bap-cs-ok-soft);
    border-color: rgba(39, 174, 96, 0.22);
}

.bap-custom-scripts-coupon-msg.is-error {
    color: #9b1c2e;
    background: rgba(155, 28, 46, 0.07);
    border-color: rgba(155, 28, 46, 0.22);
}

@keyframes bapCsCardEnter {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .bap-custom-scripts-coupon-card,
    .bap-custom-scripts-coupon-container.is-revealed .bap-custom-scripts-coupon-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
