
/* =========================================================
   DROPEEGO — COUPONS & OFFERS
   Responsive coupon cards and pagination
   ========================================================= */

/* MAIN WRAPPER */

.dropeego-coupons-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 25px 15px 45px;
    box-sizing: border-box;
    color: #37586D;
}

/* HEADER */

.dropeego-coupons-header {
    margin-bottom: 35px;
    text-align: center;
}

.dropeego-coupons-header h2 {
    margin: 0 0 12px !important;
    color: #37586D !important;
    font-size: 38px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.dropeego-coupons-header p {
    margin: 0;
    color: #687985;
    font-size: 15px;
    line-height: 1.6;
}

/* COUPON GRID */

.dropeego-coupons-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    width: 100%;
}

/* COUPON CARD */

.dropeego-coupon-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e7edf0;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(55, 88, 109, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.dropeego-coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 25px rgba(55, 88, 109, 0.15);
}

/* CARD TOP */

.dropeego-coupon-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 62px;
    padding: 13px 15px;
    background: #f8f6f5;
    border-bottom: 1px solid #edf0f2;
    box-sizing: border-box;
}

.dropeego-coupon-label {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 4px;
    background: #fff0e9;
    color: #f5773e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.dropeego-coupon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f5773e;
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
}

/* DISCOUNT */

.dropeego-coupon-discount {
    margin: 22px 15px 8px;
    color: #f5773e;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

/* DESCRIPTION */

.dropeego-coupon-description {
    min-height: 48px;
    margin: 0 15px 16px;
    color: #526674;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

/* COUPON CODE */

.dropeego-coupon-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0 15px 13px;
    overflow: hidden;
    border: 1px dashed #f5773e;
    border-radius: 6px;
    background: #fffaf7;
}

.dropeego-coupon-code {
    display: block;
    width: 100%;
    padding: 11px 8px;
    color: #37586D;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.dropeego-copy-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 0;
    background: #f5773e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

/* EXPIRY AND USAGE */

.dropeego-coupon-expiry {
    margin: 0 15px 9px;
    padding: 7px 9px;
    border-radius: 5px;
    background: #f4f7f8;
    color: #526674;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.dropeego-coupon-minimum {
    margin: 0 15px 15px;
    color: #71818b;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

/* USE COUPON BUTTON */

.dropeego-get-code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 30px);
    min-height: 44px;
    margin: auto 15px 12px;
    padding: 11px 12px;
    border: 1px solid #f5773e;
    border-radius: 6px;
    background: #f5773e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.dropeego-get-code:hover {
    border-color: #37586D;
    background: #37586D;
    color: #ffffff;
}

.dropeego-get-code:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.dropeego-button-text {
    display: inline;
}

.dropeego-button-loading {
    display: none;
}

.dropeego-get-code.is-loading .dropeego-button-text {
    display: none;
}

.dropeego-get-code.is-loading .dropeego-button-loading {
    display: inline;
}

/* STATUS MESSAGE */

.dropeego-coupon-status {
    min-height: 18px;
    margin: 0 12px 10px;
    color: #526674;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

.dropeego-coupon-status.success {
    color: #21864b;
    font-weight: 700;
}

.dropeego-coupon-status.error {
    color: #d64545;
    font-weight: 700;
}

/* CHECKOUT BUTTON */

.dropeego-coupon-checkout {
    align-items: center;
    justify-content: center;
    width: calc(100% - 30px);
    min-height: 42px;
    margin: 0 15px 15px;
    padding: 10px;
    border: 1px solid #37586D;
    border-radius: 6px;
    background: #37586D;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.dropeego-coupon-checkout:hover {
    background: #f5773e;
    border-color: #f5773e;
    color: #ffffff;
}

/* PAGINATION */

.dropeego-coupons-pagination {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 30px 0 10px;
    padding: 20px 0 0;
    border-top: 1px solid #e8e8e8;
    box-sizing: border-box;
}

.dropeego-coupons-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #f5773e;
    border-radius: 6px;
    background: #ffffff;
    color: #37586D;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.dropeego-coupons-pagination a:hover {
    background: #f5773e;
    border-color: #f5773e;
    color: #ffffff;
    transform: translateY(-2px);
}

.dropeego-coupons-pagination a:focus-visible {
    outline: 2px solid #37586D;
    outline-offset: 3px;
}

.dropeego-coupons-pagination .prev,
.dropeego-coupons-pagination .next {
    font-weight: 800;
}

/* TABLET — 5 COLUMNS */

@media (min-width: 768px) and (max-width: 991px) {

    .dropeego-coupons-wrapper {
        padding: 20px 10px 35px;
    }

    .dropeego-coupons-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
    }

    .dropeego-coupons-header h2 {
        font-size: 30px !important;
    }

    .dropeego-coupon-top {
        min-height: 52px;
        padding: 9px 7px;
    }

    .dropeego-coupon-label {
        padding: 5px;
        font-size: 8px;
        letter-spacing: 0;
    }

    .dropeego-coupon-icon {
        width: 27px;
        height: 27px;
        font-size: 15px;
    }

    .dropeego-coupon-discount {
        margin: 18px 7px 7px;
        font-size: 19px;
    }

    .dropeego-coupon-description {
        min-height: 55px;
        margin: 0 7px 10px;
        font-size: 10px;
    }

    .dropeego-coupon-code-wrapper {
        margin: 0 7px 9px;
    }

    .dropeego-coupon-code {
        padding: 8px 4px;
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .dropeego-coupon-expiry {
        margin: 0 7px 8px;
        padding: 5px;
        font-size: 9px;
    }

    .dropeego-coupon-minimum {
        margin: 0 7px 12px;
        font-size: 9px;
    }

    .dropeego-get-code {
        width: calc(100% - 14px);
        min-height: 38px;
        margin: auto 7px 9px;
        padding: 7px 4px;
        font-size: 9px;
        letter-spacing: 0;
    }

    .dropeego-coupon-status {
        margin: 0 5px 8px;
        font-size: 9px;
    }

    .dropeego-coupon-checkout {
        width: calc(100% - 14px);
        min-height: 36px;
        margin: 0 7px 9px;
        padding: 7px 4px;
        font-size: 9px;
    }
}

/* MOBILE — 3 COLUMNS */

@media (max-width: 767px) {

    .dropeego-coupons-wrapper {
        padding: 15px 8px 30px;
    }

    .dropeego-coupons-header {
        margin-bottom: 22px;
    }

    .dropeego-coupons-header h2 {
        font-size: 25px !important;
    }

    .dropeego-coupons-header p {
        font-size: 13px;
    }

    .dropeego-coupons-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .dropeego-coupon-card {
        border-radius: 8px;
        box-shadow: 0 3px 12px rgba(55, 88, 109, 0.08);
    }

    .dropeego-coupon-top {
        min-height: 43px;
        padding: 7px 5px;
        gap: 3px;
    }

    .dropeego-coupon-label {
        padding: 4px;
        font-size: 7px;
        letter-spacing: 0;
    }

    .dropeego-coupon-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .dropeego-coupon-discount {
        margin: 16px 5px 6px;
        font-size: 16px;
        line-height: 1.2;
    }

    .dropeego-coupon-description {
        min-height: 55px;
        margin: 0 6px 9px;
        font-size: 9px;
        line-height: 1.4;
    }

    .dropeego-coupon-code-wrapper {
        margin: 0 6px 8px;
        flex-direction: column;
        border-radius: 4px;
    }

    .dropeego-coupon-code {
        padding: 7px 3px;
        font-size: 9px;
        letter-spacing: 0;
    }

    .dropeego-copy-code {
        width: 100%;
        padding: 6px 3px;
        border-top: 1px dashed #f5773e;
        font-size: 9px;
    }

    .dropeego-coupon-expiry {
        margin: 0 6px 7px;
        padding: 4px;
        font-size: 8px;
        line-height: 1.3;
    }

    .dropeego-coupon-minimum {
        margin: 0 6px 9px;
        font-size: 8px;
        line-height: 1.3;
    }

    .dropeego-get-code {
        width: calc(100% - 12px);
        min-height: 35px;
        margin: auto 6px 8px;
        padding: 6px 3px;
        font-size: 9px;
        letter-spacing: 0;
    }

    .dropeego-coupon-status {
        min-height: 15px;
        margin: 0 4px 7px;
        font-size: 8px;
    }

    .dropeego-coupon-checkout {
        width: calc(100% - 12px);
        min-height: 34px;
        margin: 0 6px 8px;
        padding: 6px 3px;
        font-size: 9px;
    }

    .dropeego-coupons-pagination {
        gap: 8px;
        margin-top: 20px;
        padding-top: 14px;
    }

    .dropeego-coupons-pagination a {
        min-width: 85px;
        min-height: 37px;
        padding: 7px 10px;
        font-size: 10px;
    }
}

/* SMALL MOBILE */

@media (max-width: 360px) {

    .dropeego-coupons-grid {
        gap: 6px;
    }

    .dropeego-coupon-label {
        font-size: 6px;
    }

    .dropeego-coupon-discount {
        font-size: 14px;
    }

    .dropeego-coupon-description {
        font-size: 8px;
    }

    .dropeego-coupon-code {
        font-size: 8px;
    }

    .dropeego-coupons-pagination a {
        min-width: 78px;
        padding: 7px 8px;
        font-size: 9px;
    }
}

/* DROPEEGO — YELLOW COUPON BACKGROUND */

.dropeego-coupon-card {
    background: #fff9db;
    border: 1px solid #f3d36a;
}

.dropeego-coupon-top {
    background: #fff1b8;
    border-bottom: 1px solid #f3d36a;
}

.dropeego-coupon-code-wrapper {
    background: #ffffff;
    border-color: #f5773e;
}


/* COUPON LABEL — NO BACKGROUND */

.dropeego-coupon-label {
    background: transparent !important;
    color: #37586D;
}

/* EXPIRY — WHITE BACKGROUND */

.dropeego-coupon-expiry {
    background: #ffffff !important;
    color: #526674;
}
