/* Appiform EU Withdrawal – Frontend */

.apw-wrap { max-width: 680px; margin: 0 auto; padding: 8px 0 32px; }

.apw-intro {
    background: #f0f4ff;
    border-left: 4px solid #2271b1;
    padding: 14px 18px;
    margin-bottom: 28px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Form fields */
.apw-form .apw-field { margin-bottom: 20px; }
.apw-form label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.apw-form input[type="text"],
.apw-form input[type="email"],
.apw-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color .15s;
}
.apw-form input:focus,
.apw-form textarea:focus { border-color: #2271b1; outline: none; box-shadow: 0 0 0 2px rgba(34,113,177,.15); }

.apw-radio { display: flex; align-items: center; gap: 8px; font-weight: normal; margin-bottom: 6px; cursor: pointer; }
.apw-radio input { margin: 0; width: auto; }

.apw-hint { font-size: 12px; color: #666; margin-top: 4px; }
.apw-req { color: #c00; }

.apw-checkbox label { font-weight: normal; display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.apw-checkbox input { margin: 3px 0 0; flex-shrink: 0; width: auto; }

/* Buttons */
.apw-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1;
    transition: opacity .15s;
}
.apw-btn:hover { opacity: .85; }
.apw-btn-primary { background: #2271b1; color: #fff; }
.apw-btn-secondary { background: #f0f0f1; color: #1d2327; border: 1px solid #ccc; }
.apw-btn-confirm { background: #00a32a; color: #fff; }

/* Review box */
.apw-review-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 28px 32px; }
.apw-review-title { margin-top: 0; font-size: 20px; }

.apw-review-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.apw-review-table th, .apw-review-table td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px; text-align: left; }
.apw-review-table th { width: 40%; color: #555; font-weight: 600; }

/* Items */
.apw-items-list { margin: 8px 0 16px; }
.apw-item-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; cursor: pointer; }
.apw-item-row input { width: auto; margin: 0; }

/* Confirm actions */
.apw-confirm-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }

/* Success */
.apw-success-box { text-align: center; background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 40px 32px; }
.apw-success-icon { font-size: 48px; margin-bottom: 12px; }
.apw-success-box h2 { color: #15803d; margin-top: 0; }
.apw-receipt { text-align: left; background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 20px 24px; margin: 24px auto; max-width: 540px; }
.apw-receipt h3 { margin-top: 0; font-size: 15px; }

/* Notices */
.apw-notice { padding: 14px 18px; border-radius: 4px; margin: 16px 0; font-size: 14px; }
.apw-notice-error { background: #fef2f2; border-left: 4px solid #dc2626; }
.apw-notice-warning { background: #fffbeb; border-left: 4px solid #d97706; }
.apw-notice ul { margin: 6px 0 0 16px; padding: 0; }
.apw-notice p { margin: 6px 0 0; }

/* Footer link */
.apw-footer-link { font-size: 13px; }

/* Single order page */
.apw-order-withdrawal {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.apw-order-withdrawal__notice {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}
.apw-order-withdrawal__btn {
    flex-shrink: 0;
    font-size: 13px !important;
    padding: 8px 16px !important;
    background: transparent !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: border-color .15s, color .15s !important;
}
.apw-order-withdrawal__btn:hover {
    border-color: #2271b1 !important;
    color: #2271b1 !important;
}
