.desktop-only {
    display: block;
}

.doc-mobile-view-coupons {
    display: none;
}
.coupon-h4 {
    margin: 0;
}
.coupon-container {
    display: flex;
    gap: 0.5em;
    margin-bottom: 0.5em;
}


.featured-coupon {
    display: flex;
    flex-grow: 1;
    flex-shrink: 1;
}

.coupon-info {
    display: flex;
    gap: 1em;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    padding: 0.5em;
    border-color: #000;
    border-style: dotted;
    border-width: 2px 2px 2px 0;
    border-radius: 0 0.5em 0.5em 0;
    width: 210px;
}

.cart-coupon {
    text-align: start;
    display: flex;
    flex-direction: column;
}

 /*.cart-coupon-container {*/
 /*      margin-bottom: 0;*/
 /*   }*/
.coupon-detail {
    text-align: left;
    line-height: normal;
    display: flex;
    flex-direction: column;
}

.coupon-title {
    color: #ad2831;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
}

.coupon-desc {
    font-weight: 700;
    background: #ad2831;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    padding: 0 0.5em;
    border-radius: 0.5em 0 0 0.5em;
    flex-grow: 0;
    flex-shrink: 0;
    text-transform: uppercase;
}

.coupon-min, .coupon-expiry{
    font-size: 10px;
}

.coupon-btn {
    padding-right: 0.5em;
    flex-grow: 0;
    flex-shrink: 0;
}

.coupon-copy-btn, .coupon-apply-btn {
    border-radius: 5px;
    border: none;
    padding: 7px 10px;
    font-size: 12px;
    line-height: normal;
}

/*.option-inline {*/
/*    display: inline-block;*/
/*    margin-right: 1rem;*/
/*    min-height: 1.5rem;*/
/*    padding-left: 1.5em;*/
/*    margin-bottom: .125rem;*/
/*}*/

.doc-checkbox-inline {
    display: flex;
    gap: 20px;
    margin-top: 6px;
    flex-wrap: wrap; /* makes it responsive */
}
.doc-checkbox-inline .option-inline {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    width: 300px;
    margin-top: 1.5em;
}

.doc-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #444;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    transform: translateY(10px);
    z-index: 99999;
    font-size: 14px;
}

.doc-toast-success {
    background: #2e7d32;
}

.doc-toast-error {
    background: #c62828;
}

.doc-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal background */
.doc-coupon-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

/* Modal box */
.doc-coupon-modal-content {
    text-align: center;
    background: #fff;
    width: 90%;
    max-width: 350px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    top: 15%;
}

/* Close button */
.doc-coupon-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}

/* View all button */
.doc-view-all-coupons {
    margin-bottom: 0.5em;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    color: #243271;
    font-weight: 800;
}

/* Modal coupon list layout */
.doc-modal-coupon-list .featured-coupon {
    margin-bottom: 12px;
    background: #f7f7f7;
    border-radius: 6px;
}

.coupon-apply-btn.coupon-applied {
    background: #ddd;
    cursor: not-allowed;
    color: #000;
}

@media(max-width: 576px){
    .coupon-container {
        flex-direction: column;
        gap: 1em;
    }
    .coupon-desc {
        font-size: 12px;
    }
    .cart-coupon {
            width: 100%;
    }
    .coupon-title {
        font-size: 14px;
    }
    
    .desktop-only {
        display: none;
    }

    .doc-mobile-view-coupons {
        display: block;
        font-size: 14px;
        font-weight: 700;
        color: #243271;
        margin-bottom: 1em;
        text-decoration: underline;
    }
    
    .doc-mobile-view-coupons.on-cart{
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 0.5em;
        text-decoration: none;
    }
    
    .doc-mobile-view-coupons::after {
        content: "›"; /* chevron */
        margin: 0 0.5em;
    }
    
    .coupon-h4 {
        display: none;
    }
   
}