/* WC Checkout User Types */

.wcut {
	--wcut-primary: #2563eb;
	--wcut-primary-dark: #1d4ed8;
	--wcut-border: #d1d5db;
	--wcut-soft: #f3f4f6;
	--wcut-danger: #dc2626;
	--wcut-ok: #15803d;
	--wcut-text: #111827;
	--wcut-muted: #6b7280;

	margin: 0 0 28px;
	color: var(--wcut-text);
	font-family: inherit;
}

.wcut *,
.wcut *::before,
.wcut *::after {
	box-sizing: border-box;
}

.wcut [hidden] {
	display: none !important;
}

.wcut-title {
	margin: 0 0 4px;
	font-size: 1.25rem;
	line-height: 1.5;
}

.wcut-sub {
	margin: 0 0 16px;
	color: var(--wcut-muted);
	font-size: 0.95rem;
}

/* ---------- انتخاب نوع کاربر ---------- */

.wcut-choices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.wcut-choice {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.wcut-choice input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.wcut-choice-face {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 12px 16px;
	border: 2px solid var(--wcut-primary);
	border-radius: 12px;
	background: #fff;
	color: var(--wcut-primary);
	font-weight: 600;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wcut-choice:hover .wcut-choice-face {
	background: #eff6ff;
}

.wcut-choice input:checked + .wcut-choice-face {
	background: var(--wcut-primary);
	color: #fff;
}

.wcut-choice input:focus-visible + .wcut-choice-face {
	outline: 3px solid rgba(37, 99, 235, 0.4);
	outline-offset: 2px;
}

/* ---------- قفل بودن بقیه‌ی صفحه تا انتخاب نوع کاربر ---------- */

.wcut-locked #customer_details,
.wcut-locked #order_review_heading,
.wcut-locked #order_review {
	display: none !important;
}

/* ---------- پنل فرم ---------- */

.wcut-panel {
	margin-top: 22px;
	padding: 22px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
}

.wcut-panel-title {
	margin: 0 0 18px;
	font-size: 1.1rem;
}

.wcut-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px 20px;
}

.wcut-w-full {
	grid-column: 1 / -1;
}

@media (max-width: 900px) {
	.wcut-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.wcut-grid,
	.wcut-choices {
		grid-template-columns: minmax(0, 1fr);
	}

	.wcut-panel {
		padding: 16px;
	}
}

/* ---------- فیلدها ---------- */

.wcut-label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.9rem;
	font-weight: 500;
}

.wcut-label .required {
	color: var(--wcut-danger);
	text-decoration: none;
	border: 0;
}

.wcut-field input[type="text"],
.wcut-field input[type="tel"],
.wcut-field input[type="email"] {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--wcut-border);
	border-radius: 10px;
	background: #fff;
	color: var(--wcut-text);
	font: inherit;
	box-shadow: none;
}

.wcut-field input[type="text"]:focus,
.wcut-field input[type="tel"]:focus,
.wcut-field input[type="email"]:focus {
	border-color: var(--wcut-primary);
	outline: 3px solid rgba(37, 99, 235, 0.2);
	outline-offset: 0;
}

.wcut-field.is-invalid input[type="text"],
.wcut-field.is-invalid input[type="tel"],
.wcut-field.is-invalid input[type="email"] {
	border-color: var(--wcut-danger);
}

.wcut-field.is-invalid .wcut-file-btn {
	outline: 2px solid var(--wcut-danger);
}

.wcut-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.wcut-radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	cursor: pointer;
}

.wcut-radio input {
	margin: 0;
}

/* ---------- آپلود ---------- */

.wcut-file {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.wcut-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.wcut-file-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--wcut-border);
	border-radius: 10px;
	background: var(--wcut-soft);
	color: var(--wcut-text);
	font-size: 0.9rem;
	cursor: pointer;
	white-space: nowrap;
}

.wcut-file-btn:hover {
	background: #e5e7eb;
}

.wcut-file-input:focus-visible + .wcut-file-btn {
	outline: 3px solid rgba(37, 99, 235, 0.4);
	outline-offset: 2px;
}

.wcut-file-name {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	color: var(--wcut-muted);
	font-size: 0.85rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcut-file-remove {
	padding: 4px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--wcut-danger);
	font-size: 0.85rem;
	cursor: pointer;
}

.wcut-file-status {
	flex-basis: 100%;
	min-height: 1.2em;
	font-size: 0.85rem;
}

.wcut-file-status.is-loading {
	color: var(--wcut-muted);
}

.wcut-file-status.is-ok {
	color: var(--wcut-ok);
}

.wcut-file-status.is-error {
	color: var(--wcut-danger);
}

/* ---------- پیام کوتاه ---------- */

.wcut-flash {
	margin: 0 0 14px;
	padding: 10px 14px;
	border: 1px solid #fecaca;
	border-radius: 10px;
	background: #fef2f2;
	color: #991b1b;
	font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
	.wcut-choice-face {
		transition: none;
	}
}

/* ---------- حساب کاربری ---------- */

.wcut-account-card {
	margin: 0 0 24px;
	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
}

.wcut-account-title {
	margin: 0 0 4px;
	font-size: 1.15rem;
}

.wcut-account-updated {
	margin: 0 0 14px;
	color: var(--wcut-muted, #6b7280);
	font-size: 0.85rem;
}

.wcut-account-table {
	width: 100%;
	border-collapse: collapse;
}

.wcut-account-table th,
.wcut-account-table td {
	padding: 8px 4px;
	border-bottom: 1px solid #f0f1f3;
	text-align: start;
	vertical-align: top;
}

.wcut-account-table th {
	width: 35%;
	font-weight: 500;
	color: #4b5563;
}

.wcut-account-subtitle {
	margin: 16px 0 6px;
	font-size: 1rem;
}

.wcut-account-files {
	margin: 0;
	padding-inline-start: 20px;
}

.wcut-account-note {
	color: #6b7280;
	font-size: 0.85rem;
}
