/* AIAC Woo Simple Withdrawal — frontend styles */

.aiac-wsw-wrap {
	max-width: 680px;
	margin: 0 auto;
	font-size: 16px;
}

.aiac-wsw-title {
	margin-bottom: 8px;
}

.aiac-wsw-intro {
	color: #555;
	margin-bottom: 24px;
}

/* ── Notices ── */
.aiac-wsw-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	line-height: 1.5;
}

.aiac-wsw-notice--success {
	background: #f0fdf4;
	border: 1px solid #86efac;
	color: #166534;
}

.aiac-wsw-notice--error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
}

.aiac-wsw-notice--info {
	background: #f0f9ff;
	border: 1px solid #7dd3fc;
	color: #075985;
}

/* ── Form ── */
.aiac-wsw-form .form-row {
	margin-bottom: 16px;
}

.aiac-wsw-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.aiac-wsw-form label abbr {
	color: #e53e3e;
	text-decoration: none;
	margin-left: 2px;
}

.aiac-wsw-form .input-text,
.aiac-wsw-form input[type="number"],
.aiac-wsw-form input[type="email"],
.aiac-wsw-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
}

.aiac-wsw-form textarea {
	resize: vertical;
	font-family: inherit;
}

/* ── Buttons ── */
.aiac-wsw-btn {
	display: inline-block;
	padding: 12px 28px;
	border: none;
	border-radius: 10px;
	background: #000;
	color: #fff !important;
	font-family: inherit;
	font-size: 18px;
	font-weight: 450;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s;
}

.aiac-wsw-btn:hover {
	opacity: 0.82;
	color: #fff !important;
}

.aiac-wsw-btn:disabled,
.aiac-wsw-btn[disabled] {
	opacity: 0.45;
	cursor: default;
}

/* ── Products table ── */
.aiac-wsw-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.aiac-wsw-table th,
.aiac-wsw-table td {
	padding: 10px 12px;
	border: 1px solid #e5e5e5;
	vertical-align: middle;
}

.aiac-wsw-table thead th {
	background: #f8f8f8;
	font-weight: 600;
	text-align: left;
}

.aiac-wsw-table .aiac-wsw-col-check {
	width: 40px;
	text-align: center;
}

.aiac-wsw-table .aiac-wsw-col-ordered {
	width: 90px;
	text-align: center;
}

.aiac-wsw-table .aiac-wsw-col-qty {
	width: 120px;
}

.aiac-wsw-item-row.is-inactive {
	opacity: 0.45;
}

.aiac-wsw-product-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 400 !important;
	cursor: pointer;
}

.aiac-wsw-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 3px;
	flex-shrink: 0;
}

.aiac-wsw-qty {
	width: 72px;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	text-align: center;
}

.aiac-wsw-check {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* ── Success ── */
.aiac-wsw-summary {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.aiac-wsw-summary th,
.aiac-wsw-summary td {
	padding: 8px 12px;
	border: 1px solid #e5e5e5;
}

.aiac-wsw-summary th {
	background: #f8f8f8;
	width: 40%;
	text-align: left;
}

.aiac-wsw-items-list {
	padding-left: 20px;
	margin-bottom: 20px;
}

.aiac-wsw-return-address address {
	font-style: normal;
	line-height: 1.8;
	background: #f8f8f8;
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.aiac-wsw-instructions {
	background: #f9f5f7;
	border-left: 4px solid #7f54b3;
	padding: 12px 16px;
	margin-bottom: 20px;
	border-radius: 0 4px 4px 0;
}

.aiac-wsw-info {
	font-size: 14px;
	color: #666;
}

/* ── Spinner ── */
.aiac-wsw-btn .aiac-wsw-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255,255,255,0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: aiac-wsw-spin 0.6s linear infinite;
	vertical-align: middle;
	margin-right: 6px;
}

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

/* ── Responsive ── */
@media (max-width: 480px) {
	.aiac-wsw-table .aiac-wsw-col-ordered {
		display: none;
	}
	.aiac-wsw-qty {
		width: 60px;
	}
}
