/* EU Withdrawal Button — Frontend Styles */

.ew-withdrawal-form-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}
.ew-withdrawal-form-wrap h2 {
    color: #1a1a2e;
    margin: 0 0 8px;
}
.ew-form-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Steps */
.ew-step { margin-bottom: 24px; }

/* Form elements */
.ew-form-group {
    margin-bottom: 16px;
}
.ew-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    font-size: 14px;
}
.ew-input,
.ew-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.ew-input:focus,
.ew-textarea:focus {
    border-color: #0f9189;
    box-shadow: 0 0 0 3px rgba(15, 145, 137, 0.1);
}

/* Buttons */
.ew-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-decoration: none;
}
.ew-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ew-btn-primary {
    background: #0f9189;
    color: #fff;
}
.ew-btn-primary:hover { background: #0d7d76; }
.ew-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}
.ew-btn-secondary:hover { background: #e5e7eb; }

/* Error / success messages */
.ew-error {
    padding: 10px 14px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 12px;
}
.ew-success-message {
    text-align: center;
    padding: 32px 20px;
}
.ew-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #d1fae5;
    color: #065f46;
    font-size: 28px;
    line-height: 60px;
    margin: 0 auto 16px;
}
.ew-success-message p {
    color: #374151;
    font-size: 16px;
    margin: 0 0 16px;
}

/* Order summary */
.ew-order-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Items list */
.ew-select-items-label {
    font-weight: 600;
    margin-bottom: 8px;
}
.ew-select-all {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6b7280;
}
.ew-items-list {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}
.ew-item-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}
.ew-item-row:last-child { border-bottom: none; }
.ew-item-row.ew-item-exception {
    background: #fef3c7;
    opacity: 0.7;
}
.ew-item-row input[type="checkbox"] {
    margin-right: 10px;
}
.ew-item-name { flex: 1; }
.ew-item-price {
    font-weight: 600;
    color: #1a1a2e;
    margin-left: 12px;
}
.ew-item-exception-badge {
    font-size: 11px;
    color: #92400e;
    background: #fef3c7;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* Refund estimate */
.ew-refund-estimate {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Step 2 actions */
.ew-step2-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* Annex text */
.ew-annex-text {
    background: #f0f9ff;
    border-left: 4px solid #0f9189;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 12px;
    color: #374151;
}
.ew-annex-text h4 {
    margin: 0 0 4px;
    font-size: 12px;
}

/* Status check */
.ew-status-check {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}
.ew-status-table {
    width: 100%;
    border-collapse: collapse;
}
.ew-status-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}
.ew-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.ew-status-pending { background: #f59e0b; }
.ew-status-approved { background: #10b981; }
.ew-status-rejected { background: #ef4444; }
.ew-status-refunded { background: #3b82f6; }
.ew-status-expired { background: #6b7280; }

/* Floating button */
.ew-floating-button {
    position: fixed;
    bottom: 20px;
    z-index: 99999;
}
.ew-floating-bottom-right { right: 20px; }
.ew-floating-bottom-left { left: 20px; }
.ew-floating-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #0f9189;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, transform 0.2s;
}
.ew-floating-link:hover {
    background: #0d7d76;
    transform: translateY(-2px);
    color: #fff !important;
}
.ew-floating-icon {
    font-size: 16px;
}

/* WooCommerce order button */
.ew-withdraw-btn {
    background: #0f9189 !important;
    color: #fff !important;
    border: none !important;
}
.ew-withdraw-btn:hover {
    background: #0d7d76 !important;
}

/* Checkout notice */
.ew-checkout-notice {
    margin: 12px 0;
    padding: 10px 14px;
    background: #f0f9ff;
    border-left: 3px solid #0f9189;
    font-size: 13px;
}

/* Digital consent */
.ew-digital-consent {
    margin: 12px 0;
    padding: 10px 14px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 4px;
}
