/* Kod rabatowy */
#ep-discount-box {
    max-width: 520px;
    margin: 0 auto 24px;
    padding: 14px 16px;
    background: rgba(255,255,255,.08);
    border-left: 4px solid #ffe900;
    border-radius: 3px;
    color: #fff;
    box-sizing: border-box;
}

#ep-discount-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: left;
}

.ep-discount-row {
    display: flex;
    gap: 8px;
}

#ep-discount-code {
    flex: 1;
    height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 4px;
    background: #fff;
    color: #111;
    box-sizing: border-box;
}

#ep-discount-box button {
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    background: #ffe900;
    color: #111;
    font-weight: 700;
    cursor: pointer;
}

#ep-discount-message {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.ep-discount-ok,
.ep-discount-error {
    color: #e60000 !important;
    background: rgba(255,255,255,.95);
    padding: 7px 10px;
    border-radius: 4px;
    display: inline-block;
}

.ep-discount-section-header {
    background: #5f95ba !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 10px !important;
}

#ep-discount-summary-row td {
    background: #ffffff !important;
    color: #e60000 !important;
    font-weight: 700 !important;
    border-color: #dfe7ee !important;
}

#ep-discount-summary-row .ep-discount-summary-label,
#ep-discount-summary-row .ep-discount-summary-info {
    text-align: left !important;
}

#ep-discount-summary-row .ep-discount-summary-qty,
#ep-discount-summary-row .ep-discount-summary-value {
    text-align: right !important;
}

#ep-discount-summary-row .ep-discount-summary-value {
    white-space: nowrap;
}

/* Regulamin — mocne wyśrodkowanie */
body #ep-terms-box {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 25px auto 15px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

body #ep-terms-box .ep-terms-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 auto !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    text-align: center !important;
    cursor: pointer !important;
}

body #ep-accept-terms {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    cursor: pointer !important;
}

body #ep-terms-box a {
    color: #ffe900 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

body #ep-terms-error {
    display: none;
    margin: 9px auto 0 !important;
    color: #e60000 !important;
    background: rgba(255,255,255,.95) !important;
    padding: 7px 10px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.ep-order-disabled {
    opacity: .55 !important;
    filter: grayscale(25%);
}

@media (max-width: 767px) {
    #ep-discount-box {
        max-width: 90%;
    }

    .ep-discount-row {
        flex-direction: column;
    }

    #ep-discount-box button {
        width: 100%;
    }

    body #ep-terms-box .ep-terms-label {
        font-size: 13px !important;
        flex-wrap: wrap !important;
    }
}
