﻿/**
 * Snillrik Smart Withdrawal for WooCommerce – frontend styles
 */

/* ── Wrapper ───────────────────────────────────────────────── */
#swr-wrapper {
	/* max-width: 720px; */
	margin: 0 auto;
	font-family: inherit;
}

/* ── Notice ────────────────────────────────────────────────── */
.swr-notice {
	padding: 12px 16px;
	margin-bottom: 20px;
	border-radius: 4px;
	border-left: 4px solid currentColor;
}

.swr-notice-error {
	background: #fff4f4;
	color: #cc0000;
}

.swr-notice-success {
	background: #f0fff0;
	color: #1a7a1a;
}

.swr-notice-info {
	background: #f0f6ff;
	color: #0056b3;
}

/* ── Form rows ─────────────────────────────────────────────── */
.swr-form-row {
	margin-bottom: 18px;
}

.swr-form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.swr-form-row input[type="text"],
.swr-form-row input[type="email"] {
	width: 100%;
	max-width: 400px;
	padding: 9px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1em;
	box-sizing: border-box;
}

.swr-form-row textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1em;
	resize: vertical;
	box-sizing: border-box;
}

.swr-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

/* ── Order info ────────────────────────────────────────────── */
.swr-order-info {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 4px;
	padding: 10px 14px;
	margin-bottom: 20px;
}

.swr-order-info p {
	margin: 0;
}

/* ── Products table ────────────────────────────────────────── */
.swr-products-table,
.swr-summary-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}

.swr-products-table th,
.swr-products-table td,
.swr-summary-table th,
.swr-summary-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #eeeeee;
	text-align: left;
	vertical-align: middle;
}

.swr-products-table thead th,
.swr-summary-table thead th {
	background: #f5f5f5;
	font-weight: 700;
}

.swr-col-check {
	width: 40px;
}

.swr-col-qty {
	width: 100px;
}

/* Qty number input */
.swr-product-qty {
	width: 70px;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
	font-size: 1em;
}

.swr-product-qty:disabled {
	background: #f0f0f0;
	color: #999;
	cursor: not-allowed;
}

/* ── Confirm button ────────────────────────────────────────── */
.swr-confirm-btn {
	background-color: #c0392b !important;
	color: #fff !important;
	border: none !important;
	border-radius: 4px !important;
	padding: 12px 28px !important;
	font-size: 1em !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.swr-confirm-btn:hover,
.swr-confirm-btn:focus {
	background-color: #922b21 !important;
	color: #fff !important;
}

.swr-confirm-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Success box ───────────────────────────────────────────── */
.swr-success-box {
	background: #eafaf1;
	border: 1px solid #27ae60;
	border-radius: 6px;
	padding: 28px 24px;
	text-align: center;
}

.swr-success-box h3 {
	color: #1a7a1a;
	margin-top: 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media ( max-width: 480px ) {
	.swr-form-row input[type="text"],
	.swr-form-row input[type="email"] {
		max-width: 100%;
	}

	.swr-btn-row {
		flex-direction: column;
		align-items: stretch;
	}
}
