.wuxnl-revocation { 
    --primary: #0066A5;
    --primary-hover: #00588f;
    --border: 1px solid #ddd;
    --bg: #f9f9f9;
    --radius: 6px;
    --tsd: 200ms;
    --tsf: ease-in-out;

    max-width: 600px; margin: 4.8rem auto; font-family: inherit;

    h2 { font-size: 24px; margin: 0 0 8px 0; }
    p { color: #666; margin: 0 0 24px 0; font-size: 15px; }
    h4 { margin: 0 0 12px 0; font-size: 16px; }

    /* Form */
    .wuxnl-revocation__field { margin-bottom: 16px;
        label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
        input { width: 100%; padding: 10px 14px; font-size: 15px; border: var(--border); border-radius: var(--radius); outline: none; box-sizing: border-box; transition: border-color var(--tsd) var(--tsf);
            &:focus { border-color: var(--primary); }
        }
        .wuxnl-revocation__field-info { font-size: 12px; opacity: .7; }   
    }

    .wuxnl-revocation__actions { margin-top: 20px; }

    .wuxnl-revocation__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 28px; font-size: 15px; font-weight: 600; color: #fff; background-color: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius); cursor: pointer; transition-property: color, background-color, border-color; transition-duration: var(--tsd); transition-timing-function: var(--tsf);
        &:hover { background-color: var(--primary-hover); }
        &:disabled { opacity: 0.7; cursor: not-allowed; }

        /* Variations */
        &.wuxnl-revocation__btn--small { padding: 6px 16px; font-size: 13px; }
        &.wuxnl-revocation__btn--outline { background-color: transparent; color: var(--primary); border: 1px solid var(--primary);
            &:hover { background-color: var(--primary); color: #fff; }
        }
    }

    .wuxnl-revocation__btn-loader { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: wuxnl-spin 0.6s linear infinite; }

    .wuxnl-revocation__error { margin-top: 16px; padding: 12px 16px; background-color: #fce4e4; color: #c00; border-radius: var(--radius); font-size: 14px; }

    /* Result */
    .wuxnl-revocation__order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
        h3 { margin: 0; font-size: 20px; }
    }

    .wuxnl-revocation__back { background: none; border: none; color: var(--primary); font-weight: 600; font-size: 14px; cursor: pointer; padding: 0;
        &:hover { text-decoration: underline; }
    }

    /* Details table */
    .wuxnl-revocation__details-table { width: 100%; border-collapse: collapse; margin-bottom: 24px;
        th, td { text-align: left; padding: 8px 12px; font-size: 14px; border-bottom: var(--border); }
        th { width: 35%; font-weight: 600; color: #333; }
    }

    /* Status badge */
    .wuxnl-revocation__status { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 13px; font-weight: 500; background-color: #e0e0e0;
        &--processing { background-color: #c6e1f5; color: #0066A5; }
        &--completed { background-color: #cceeca; color: #1a6e1a; }
        &--on-hold { background-color: #f2eec8; color: #6e5e1a; }
        &--cancelled, &--failed { background-color: #f4cdcd; color: #c10000; }
        &--refunded { background-color: #e0e0e0; color: #555; }
        &--pending { background-color: #f2eec8; color: #6e5e1a; }
    }

    /* Items table */
    .wuxnl-revocation__items-table { width: 100%; border-collapse: collapse;
        th, td { text-align: left; padding: 10px 12px; font-size: 14px; border-bottom: var(--border); }
        thead th { background-color: var(--bg); font-weight: 600; }
        tbody tr td { vertical-align: middle; }
    }

    .wuxnl-revocation__item-select { width: 30px; text-align: center;
        .wuxnl-revocation__item-check-button { cursor: pointer; 
            .unchecked { display: inline; }
            .checked { display: none; }
        }
        .wuxnl-revocation__item-check { opacity: 0; position: absolute; 
            &:checked + .wuxnl-revocation__item-check-button { color: #fff; background-color: var(--primary); border: 1px solid var(--primary);
                .unchecked { display: none; }
                .checked { display: inline; }
                &:hover { background-color: var(--primary); color: #fff; }
            }
        }
    }

    .wuxnl-revocation__item-info { display: flex; align-items: center; gap: 10px; }
    .wuxnl-revocation__item-img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }

    .wuxnl-revocation__item--disabled { opacity: 0.5; }
    .wuxnl-revocation__item--disabled td { color: #999; }

    .wuxnl-revocation__item-expired { display: block; font-size: 12px; color: #c00; margin-top: 2px; }
    .wuxnl-revocation__item-period { display: block; font-size: 12px; color: #888; margin-top: 2px; }

    .wuxnl-revocation__item-qty { width: 64px; font-size: 14px; text-align: center; box-sizing: border-box;
        &:disabled { opacity: 0.4; cursor: not-allowed; background-color: var(--bg); }
    }

    /* Textarea */
    textarea { width: 100%; padding: 10px 14px; font-size: 15px; font-family: inherit; border: var(--border); border-radius: var(--radius); outline: none; box-sizing: border-box; resize: vertical; transition: border-color var(--tsd) var(--tsf);
        &:focus { border-color: var(--primary); }
    }

    /* Success */
    .wuxnl-revocation__success { text-align: center; padding: 32px 0;
        h3 { font-size: 22px; margin: 16px 0 8px; }
        p { color: #666; font-size: 15px; margin: 0 0 8px; }
    }

    .wuxnl-revocation__success-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background-color: #cceeca; color: #1a6e1a; font-size: 28px; font-weight: bold; }

    .wuxnl-revocation__rma { font-size: 16px; color: #333; }
}

@keyframes wuxnl-spin {
    to { transform: rotate(360deg); }
}
