/* ==========================================================================
   WooCommerce Withdrawal Button - Frontend Styles
   ========================================================================== */

.wcwb-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 24px;
	margin: 24px 0;
}

.wcwb-account-button h3 {
	margin-top: 0;
	font-size: 1.15rem;
}

.wcwb-button {
	display: inline-block;
	padding: 12px 24px;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid currentColor;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
	text-decoration: none;
}

.wcwb-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wcwb-button-secondary {
	background: transparent !important;
	color: #374151 !important;
	border: 1px solid #d1d5db !important;
}

/* ===== Form ===== */

.wcwb-retract-page {
	max-width: 860px;
	margin: 0 auto;
}

.wcwb-page-header h2 {
	margin: 0 0 8px;
	font-size: 1.6rem;
}

.wcwb-legal {
	color: #6b7280;
	font-size: 0.9rem;
	line-height: 1.5;
	margin-bottom: 24px;
}

.wcwb-summary {
	background: #f9fafb;
}

.wcwb-summary-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

@media (max-width: 640px) {
	.wcwb-summary-grid {
		grid-template-columns: 1fr;
	}
}

.wcwb-summary-grid h4 {
	margin: 0 0 8px;
	color: #6b7280;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wcwb-summary-grid address {
	font-style: normal;
	line-height: 1.6;
}

.wcwb-deadline {
	margin-top: 16px;
	padding: 12px 16px;
	background: #fef3c7;
	border-left: 4px solid #f59e0b;
	border-radius: 4px;
	color: #92400e;
}

.wcwb-fieldset {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px 24px;
	margin: 24px 0;
}

.wcwb-fieldset legend {
	padding: 0 8px;
	font-weight: 600;
	color: #111827;
}

.wcwb-required {
	color: #dc2626;
}

.wcwb-legal-text {
	background: #f3f4f6;
	padding: 16px;
	border-radius: 8px;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 16px;
}

.wcwb-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 500;
}

.wcwb-form input[type="text"],
.wcwb-form input[type="email"],
.wcwb-form select,
.wcwb-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
}

.wcwb-form input:focus,
.wcwb-form select:focus,
.wcwb-form textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.wcwb-form .description {
	color: #6b7280;
	font-size: 0.85rem;
	margin-top: -8px;
	margin-bottom: 12px;
}

.wcwb-confirm-form,
.wcwb-confirm label {
	background: #fff7ed;
	border-left: 4px solid #f97316;
	padding: 12px 16px;
	border-radius: 4px;
	display: block;
}

.wcwb-gdpr {
	color: #6b7280;
	font-size: 0.8rem;
	font-style: italic;
	margin-top: 8px;
}

.wcwb-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 24px;
}

/* ===== Success ===== */

.wcwb-success {
	background: #fff;
	border: 1px solid #d1fae5;
	border-radius: 12px;
	padding: 32px;
	text-align: center;
	max-width: 640px;
	margin: 24px auto;
}

.wcwb-success.wcwb-inline {
	margin: 16px 0;
	text-align: left;
}

.wcwb-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #d1fae5;
	color: #047857;
	margin-bottom: 16px;
}

.wcwb-success.wcwb-inline .wcwb-success-icon {
	width: 48px;
	height: 48px;
}

.wcwb-success h3 {
	margin: 0 0 12px;
	color: #065f46;
}

.wcwb-ref {
	font-size: 1.05rem;
	color: #374151;
}

.wcwb-success-details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 24px;
	margin: 24px auto;
	max-width: 460px;
	text-align: left;
}

.wcwb-success.wcwb-inline .wcwb-success-details {
	margin: 16px 0;
}

.wcwb-success-details dt {
	color: #6b7280;
	font-weight: 500;
}

.wcwb-success-details dd {
	margin: 0;
	font-weight: 600;
	color: #111827;
}

/* ===== Badges ===== */

.wcwb-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	background: #e5e7eb;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.wcwb-badge-processing { background:#fef3c7; color:#92400e; }
.wcwb-badge-refunded   { background:#d1fae5; color:#065f46; }
.wcwb-badge-refund_failed { background:#fee2e2; color:#991b1b; }
.wcwb-badge-info       { background:#dbeafe; color:#1e40af; }
.wcwb-badge-success    { background:#d1fae5; color:#065f46; }
.wcwb-badge-warning    { background:#fef3c7; color:#92400e; }
.wcwb-badge-error      { background:#fee2e2; color:#991b1b; }

/* ===== Eligible list ===== */

.wcwb-eligible-list h3 {
	margin-top: 0;
}

.wcwb-eligible-list table {
	margin-top: 16px;
}
