/**
 * NOTICE OF LICENSE
 * This file is licenced under the Software License Agreement.
 * @author    01generator
 * @copyright 2015-2026 01generator
 */

.wzrp-entry {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 15px 0;
    padding: 14px 16px;
    border: 1px solid #dde1e5;
    border-radius: 6px;
    background: #f7f9fa;
}

.wzrp-entry__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef1f3;
    color: #4a4f54;
}

.wzrp-entry__icon svg {
    display: block;
}

.wzrp-entry__body {
    flex: 1 1 auto;
    min-width: 0;
}

.wzrp-entry__notice {
    margin: 0 0 10px;
    font-size: 0.92em;
    line-height: 1.45;
    color: #4f5459;
}

@media (max-width: 480px) {
    .wzrp-entry {
        flex-direction: column;
    }
}

.wzrp-account-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0;
    padding: 12px 16px;
    border: 1px solid #dde1e5;
    border-radius: 6px;
    background: #f7f9fa;
    color: #32373c;
    text-decoration: none;
}

.wzrp-account-card:hover {
    background: #eef1f3;
    color: #32373c;
}

.wzrp-account-card__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef1f3;
}

.wzrp-account-card__label {
    font-weight: 600;
    font-size: 0.95em;
}

.wzrp-mywithdrawals__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid #dde1e5;
    border-radius: 6px;
    background: #f7f9fa;
}

.wzrp-mywithdrawals__order {
    flex: 1 1 140px;
    font-weight: 600;
}

.wzrp-mywithdrawals__status {
    flex: 1 1 160px;
}

.wzrp-mywithdrawals__action {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.wzrp-mywithdrawals__action form {
    display: inline;
}

.wzrp-line-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.wzrp-line-table th,
.wzrp-line-table td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #e2e2e2;
}

.wzrp-line--excluded {
    opacity: 0.55;
}

.wzrp-line__exclusion-reason {
    font-size: 0.85em;
    font-style: italic;
    color: #a94442;
}

.wzrp-declaration {
    white-space: pre-wrap;
    background: #fff;
    border: 1px solid #dadada;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 0.85em;
}

.wzrp-field {
    width: 100%;
    max-width: 420px;
}

/*
 * Self-contained status pill — deliberately not Bootstrap/BS-version-
 * specific classes, since this plugin has to render identically regardless
 * of the active theme.
 */
.wzrp-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background: #767676;
    white-space: nowrap;
}

.wzrp-badge--default { background: #767676; }
.wzrp-badge--info { background: #5bc0de; }
.wzrp-badge--warning { background: #f0ad4e; }
.wzrp-badge--success { background: #4cae4c; }
.wzrp-badge--danger { background: #d9534f; }

/*
 * Self-contained button styling for the withdrawal flow (step 1 "Continue",
 * step 2 "Confirm Withdrawal" / "Back", and every "Resend email" button).
 * These sit on a shop's own theme, and plenty of themes leave a bare
 * <button class="button"> completely unstyled outside of their own
 * checkout/cart markup — so rather than depend on that, every button in the
 * flow also carries one of these classes for a guaranteed baseline look,
 * regardless of the active theme.
 */
.wzrp-button {
    display: inline-block;
    box-sizing: border-box;
    margin: 0 8px 8px 0;
    padding: 10px 20px;
    border: 1px solid #c8ccd0;
    border-radius: 4px;
    background: #f0f0f1;
    color: #2c3338;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.wzrp-button:hover,
.wzrp-button:focus {
    background: #e2e4e7;
    border-color: #b7bbc0;
    color: #2c3338;
}

.wzrp-button--primary {
    background: #4a4f54;
    border-color: #4a4f54;
    color: #fff;
}

.wzrp-button--primary:hover,
.wzrp-button--primary:focus {
    background: #32373c;
    border-color: #32373c;
    color: #fff;
}

/*
 * Space our "Cancel / Return" row action out from WooCommerce's own row
 * actions (e.g. "View") on My Account > Orders — some themes zero out the
 * default WooCommerce spacing between sibling .button elements.
 */
a.woo_zo_returnpolicy_withdraw {
    margin: 0 0 4px 6px;
}
