/* WC EU Return Button — frontend styles */

/* ===== Przycisk Zgłoś zwrot ===== */
.wc-eu-return-btn {
    display: inline-block;
    font-size: 0.85em;
    padding: 6px 14px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wc-eu-return-btn:hover {
    background-color: #7f54b3;
    color: #fff;
    border-color: #7f54b3;
}

/* ===== Status badge ===== */
.wcer-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.wcer-status--pending {
    background-color: #fff8e1;
    color: #8a6d00;
    border: 1px solid #ffe082;
}

.wcer-status--processing {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.wcer-status--approved {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.wcer-status--rejected {
    background-color: #fce4ec;
    color: #c62828;
    border: 1px solid #f48fb1;
}

/* ===== Lista zwrotów ===== */
.wc-returns-list {
    padding: var(--sections-padding, 16px 30px 3px 30px);
    border-radius: var(--sections-border-radius, 3px) !important;
}

/* ===== Formularz zwrotu ===== */
.wc-eu-return-form-wrap {
    max-width: 680px;
}

.wc-eu-return-form-wrap h3 {
    margin-bottom: 0.5em;
}

.wcer-legal-note {
    background: #f9f9f9;
    border-left: 4px solid #7f54b3;
    padding: 12px 16px;
    margin-bottom: 1.5em;
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
}

#wc-eu-return-form .form-row {
    margin-bottom: 1.2em;
}

#wc-eu-return-form select,
#wc-eu-return-form textarea {
    width: 100%;
    max-width: 100%;
}

#return_reason,
#return_description {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

#wc-eu-return-form .required {
    color: #e2401c;
}

/* ===== Sekcja produktów (checkboxy) ===== */
.wcer-products-fieldset {
    border: 0 !important;
    padding: 0;
    margin-top: 2rem !important;
    margin-bottom: 1.2em;
}

.wcer-products-heading {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 0.75em;
    font-family: inherit;
}

.wcer-product-checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 10px !important;
    margin-bottom: 0;
    padding: 10px;
    border-bottom: 1px solid #f8f8f8;
    font-weight: 400 !important;
    cursor: pointer;
}

.wcer-product-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
}

.wcer-product-checkbox span {
    font-size: 14px !important;
    font-family: inherit;
    line-height: 1.5;
}

.wcer-products-fieldset.wcer-input-error .wcer-products-heading {
    color: #e2401c;
}

/* ===== Blok z terminem odstąpienia ===== */
.wcer-deadline-note {
    background: #f8f8f8;
    border-left: 4px solid #7f54b3;
    padding: 10px 14px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5em;
}

/* ===== Responsywność ===== */
@media (max-width: 600px) {
    .wc-eu-return-list table thead {
        display: none;
    }

    .wc-eu-return-list table tr {
        display: block;
        margin-bottom: 1em;
        border: 1px solid #eee;
        padding: 8px;
    }

    .wc-eu-return-list table td {
        display: block;
        text-align: right;
        padding: 4px 8px;
        border-bottom: 1px solid #f0f0f0;
    }

    .wc-eu-return-list table td::before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
        color: #555;
    }
}
