/**
 * Theta Checkout — checkout & thank-you page.
 */

.theta-checkout-desc {
	margin: 0 0 1rem;
	color: #6b7280;
	font-size: 0.9375rem;
	line-height: 1.5;
	font-family: var(--theta-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

.theta-checkout-session-notice {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	border: 1px solid #bfdbfe;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 0.9375rem;
	line-height: 1.5;
	font-family: var(--theta-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

.theta-checkout-session-notice p {
	margin: 0;
}

.theta-checkout-methods {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-top: 0.25rem;
	font-family: var(--theta-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

.theta-method-card {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	cursor: default;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.theta-method-card:hover {
	border-color: #d1d5db;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.theta-method-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.theta-method-input:focus-visible + .theta-method-inner {
	box-shadow: 0 0 0 2px #6366f1;
}

.theta-method-input:checked + .theta-method-inner,
.theta-method-card.is-selected .theta-method-inner {
	border-color: transparent;
	box-shadow: 0 0 0 2px #111827, 0 8px 24px rgba(15, 23, 42, 0.08);
	background: linear-gradient(180deg, #fafafa 0%, #fff 40%);
}

.theta-method-inner {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 0.9rem 1rem 1rem;
	border-radius: 12px;
	border: 2px solid transparent;
}

.theta-method-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
}

.theta-method-icons {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}

.theta-brand-img {
	display: block;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.theta-chime-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2rem;
	padding: 0 0.5rem;
	border-radius: 8px;
	background: linear-gradient(135deg, #74c947 0%, #3fa652 100%);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.theta-chime-mark__text {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	text-transform: uppercase;
}

.theta-method-title-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.theta-method-title {
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
	letter-spacing: -0.01em;
}

.theta-method-sub {
	font-size: 0.8125rem;
	color: #6b7280;
	word-break: break-word;
}

/* Brand accents on selected rail */
.theta-rail-cashapp.is-selected {
	border-color: #00d63255;
}

.theta-rail-zelle.is-selected {
	border-color: #6d1ed455;
}

.theta-rail-chime.is-selected {
	border-color: #74c94766;
}

.theta-rail-crypto.is-selected {
	border-color: #f7931a55;
}

.theta-rail-card.is-selected {
	border-color: #1a1f3633;
}

.theta-method-card.is-selected {
	border-color: #111827;
}

.theta-crypto-pick {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding-top: 0.15rem;
}

.theta-crypto-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #9ca3af;
}

.theta-crypto-select {
	width: 100%;
	max-width: 100%;
	padding: 0.55rem 0.65rem;
	font-size: 0.9375rem;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	color: #111827;
	font-family: inherit;
}

.theta-crypto-select:focus {
	border-color: #6366f1;
	outline: none;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Stripe-style card form */
.theta-card-form {
	cursor: auto;
	margin-top: 0.15rem;
	border-radius: 10px;
	border: 1px solid #e6e8eb;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 24px -12px rgba(15, 23, 42, 0.12);
	padding: 0.85rem 0.95rem 0.95rem;
}

.theta-card-form__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid #eef2f7;
}

.theta-card-form__title {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
}

.theta-card-form__secure {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: #059669;
}

.theta-card-form__secure svg {
	flex-shrink: 0;
	opacity: 0.9;
}

.theta-card-row {
	margin-bottom: 0.65rem;
}

.theta-card-row:last-child {
	margin-bottom: 0;
}

.theta-card-row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
}

@media (max-width: 480px) {
	.theta-card-row--split {
		grid-template-columns: 1fr;
	}
}

.theta-card-label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #334155;
	margin-bottom: 0.3rem;
}

.theta-card-input-wrap {
	position: relative;
}

.theta-card-input {
	width: 100%;
	margin: 0;
	padding: 0.65rem 0.75rem;
	font-size: 1rem;
	letter-spacing: 0.02em;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #0f172a;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.theta-card-input:hover:not(:disabled) {
	border-color: #9ca3af;
}

.theta-card-input:focus {
	border-color: #6366f1;
	outline: none;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.theta-card-input:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	background: #f1f5f9;
}

.theta-card-input--number {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.theta-method-card.is-selected .theta-card-form {
	border-color: #c7d2fe;
	box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 12px 28px -14px rgba(15, 23, 42, 0.18);
}

/* Thank you */
.theta-thankyou-box {
	margin: 1.5rem 0 2rem;
	padding: 1.25rem 1.35rem;
	border-radius: 14px;
	border: 1px solid #e5e7eb;
	background: linear-gradient(180deg, #fafafa 0%, #fff 55%);
	font-family: var(--theta-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.theta-thankyou-title {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	font-weight: 600;
	color: #111827;
	letter-spacing: -0.02em;
}

.theta-thankyou-meta {
	margin-bottom: 1rem;
	font-size: 0.9375rem;
	color: #374151;
}

.theta-thankyou-meta p {
	margin: 0.25rem 0;
}

.theta-thankyou-card-instr {
	margin-bottom: 1rem;
	font-size: 0.9375rem;
	color: #4b5563;
	line-height: 1.55;
}

.theta-thankyou-instructions {
	margin: 0 0 1rem;
	padding: 1rem 1.1rem;
	background: #f3f4f6;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	font-size: 0.875rem;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
	color: #111827;
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.theta-thankyou-foot {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	color: #6b7280;
}

.theta-copy-instructions {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.1rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	background: #111827;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.theta-copy-instructions:hover {
	background: #000;
}

.theta-copy-instructions:active {
	transform: scale(0.98);
}

.theta-copy-instructions.is-copied {
	background: #059669;
}

/* Woo default payment box spacing */
.wc_payment_method.payment_method_theta_checkout .payment_box {
	padding-top: 0.35rem;
}
