/* ==========================================================
   WC Withdrawal Button - Frontend Form
   ========================================================== */

.wcwb-withdrawal-form {
    width: 100%;
    max-width: none;
    margin: 24px 0;
}

.wcwb-withdrawal-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.wcwb-withdrawal-form input,
.wcwb-withdrawal-form input[type="number"],
.wcwb-withdrawal-form input[type="email"],
.wcwb-withdrawal-form input[type="text"],
.wcwb-withdrawal-form input[type="tel"],
.wcwb-withdrawal-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    border: 1px solid #ddd !important;
    outline: none !important;
    box-shadow: none !important;
}

.wcwb-withdrawal-form input:focus,
.wcwb-withdrawal-form input:focus-visible,
.wcwb-withdrawal-form textarea:focus,
.wcwb-withdrawal-form textarea:focus-visible {
    border: 1px solid #ddd !important;
    outline: none !important;
    box-shadow: none !important;
}

.wcwb-confirmation-text {
    font-size: 14px;
    opacity: 0.85;
    text-align: center;
}

.wcwb-submit-wrapper {
    text-align: center;
}

.wcwb-submit-wrapper .button {
    padding: 12px 24px;
}

.wcwb-notice {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
}

.wcwb-notice-success {
    border-left: 4px solid #46b450;
    background: #f0fff4;
}

.wcwb-notice-error {
    border-left: 4px solid #dc3232;
    background: #fff5f5;
}

.wcwb-withdrawal-form .required {
    color: #b32d2e;
}

.wcwb-order-summary {
    padding: 14px 16px;
    margin: 0 0 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

.wcwb-request-type {
    margin: 20px 0;
}

.wcwb-radio-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    margin-bottom: 8px;
}

.wcwb-radio-label input {
    width: auto !important;
}

.wcwb-items-section {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

.wcwb-item-row {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.wcwb-item-row:last-child {
    border-bottom: 0;
}

.wcwb-item-checkbox {
    display: flex !important;
    gap: 8px;
    align-items: flex-start;
    font-weight: 600 !important;
}

.wcwb-item-checkbox input {
    width: auto !important;
    margin-top: 4px;
}

.wcwb-item-checkbox small {
    display: block;
    font-weight: 400;
    opacity: 0.75;
    margin-top: 2px;
}

.wcwb-qty-label {
    margin-top: 8px;
    font-size: 14px;
}

.wcwb-qty-label input {
    max-width: 120px !important;
    margin-top: 4px;
}


/* ==========================================================
   My Account > Withdrawals Table
   ========================================================== */

.wcwb-withdrawals-table {
    width: 100%;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    background: transparent !important;
}

/* Header */
.wcwb-withdrawals-table thead tr {
    background: transparent !important;
}

.wcwb-withdrawals-table thead th {
    height: 46px !important;
    padding: 0 14px !important;
    vertical-align: middle !important;

    background: #ffffff !important;
    border: none !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #333333 !important;
    text-transform: uppercase;
}

.wcwb-withdrawals-table thead th:first-child {
    border-radius: 10px 0 0 10px;
}

.wcwb-withdrawals-table thead th:last-child {
    border-radius: 0 10px 10px 0;
    text-align: center !important;
}

/* Body rows */
.wcwb-withdrawals-table tbody tr {
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Body cells */
.wcwb-withdrawals-table tbody td {
    height: 64px !important;
    padding: 0 14px !important;
    vertical-align: middle !important;

    background: #ffffff !important;
    border: none !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #222222 !important;
}

.wcwb-withdrawals-table tbody td:first-child {
    border-radius: 10px 0 0 10px;
    font-weight: 600 !important;
}

.wcwb-withdrawals-table tbody td:last-child {
    border-radius: 0 10px 10px 0;
    text-align: center !important;
}

/* Column widths */
.wcwb-withdrawals-table th:nth-child(1),
.wcwb-withdrawals-table td:nth-child(1) {
    width: 12%;
}

.wcwb-withdrawals-table th:nth-child(2),
.wcwb-withdrawals-table td:nth-child(2) {
    width: 18%;
}

.wcwb-withdrawals-table th:nth-child(3),
.wcwb-withdrawals-table td:nth-child(3) {
    width: 17%;
}

.wcwb-withdrawals-table th:nth-child(4),
.wcwb-withdrawals-table td:nth-child(4) {
    width: 23%;
}

.wcwb-withdrawals-table th:nth-child(5),
.wcwb-withdrawals-table td:nth-child(5) {
    width: 18%;
}

.wcwb-withdrawals-table th:nth-child(6),
.wcwb-withdrawals-table td:nth-child(6) {
    width: 12%;
    text-align: center !important;
}

/* Links */
.wcwb-withdrawals-table a {
    color: #222222 !important;
    text-decoration: none !important;
}

.wcwb-withdrawals-table a:hover {
    color: #A6CE39 !important;
}

/* Order number link alignment */
.wcwb-withdrawals-table tbody td:first-child a {
    display: inline-flex !important;
    align-items: center !important;
    height: 28px !important;
    line-height: 1 !important;
}

/* Product small text */
.wcwb-withdrawals-table small {
    display: block;
    margin-top: 4px;
    font-size: 12px !important;
    line-height: 1.2 !important;
    opacity: 0.75;
}


/* ==========================================================
   Withdrawal Status Badge
   ========================================================== */

.wcwb-request-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 28px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.wcwb-request-status-pending {
    background: #fff8e5 !important;
    color: #8a6400 !important;
}

.wcwb-request-status-approved {
    background: #e7f7ed !important;
    color: #1f7a3a !important;
}

.wcwb-request-status-rejected {
    background: #fdeaea !important;
    color: #a32121 !important;
}

.wcwb-request-status-completed {
    background: #eaf3ff !important;
    color: #1f5f9e !important;
}


/* ==========================================================
   Withdrawals Table Button
   ========================================================== */

.wcwb-withdrawals-table .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 36px !important;
    min-height: 36px !important;
    padding: 0 16px !important;

    background: #A6CE39 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;

    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-transform: uppercase;
    text-decoration: none !important;

    box-shadow: none !important;
    vertical-align: middle !important;
}

.wcwb-withdrawals-table .button:hover {
    background: #93ba2f !important;
    color: #ffffff !important;
}


/* ==========================================================
   Mobile Withdrawals Table
   ========================================================== */

@media (max-width: 768px) {
    .wcwb-withdrawals-table {
        border-spacing: 0 12px !important;
    }

    .wcwb-withdrawals-table thead {
        display: none;
    }

    .wcwb-withdrawals-table tbody tr {
        display: block;
        padding: 14px;
        border-radius: 12px;
        background: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .wcwb-withdrawals-table tbody td {
        display: flex !important;
        justify-content: space-between;
        align-items: center !important;
        gap: 16px;

        height: auto !important;
        min-height: 34px !important;
        padding: 8px 0 !important;

        border-radius: 0 !important;
        background: transparent !important;
        text-align: right;
    }

    .wcwb-withdrawals-table tbody td::before {
        content: attr(data-title);
        font-weight: 700;
        color: #333333;
        text-align: left;
        flex: 0 0 45%;
    }

    .wcwb-withdrawals-table tbody td:first-child,
    .wcwb-withdrawals-table tbody td:last-child {
        border-radius: 0;
    }

    .wcwb-withdrawals-table tbody td:last-child {
        justify-content: flex-end;
        text-align: right;
    }

    .wcwb-withdrawals-table tbody td:last-child::before {
        display: none;
    }

    .wcwb-withdrawals-table .button {
        height: 34px !important;
        min-height: 34px !important;
    }
}