/* VakıfBank Sanal POS – card form, checkout box and 3D Secure redirect page. */
.vbpos-pay,
.vbpos-checkout-box {
	--vbpos-ink: #0f172a;
	--vbpos-muted: #64748b;
	--vbpos-line: #e2e8f0;
	--vbpos-navy: #0f172a;
	--vbpos-gold: #f5b400;
	--vbpos-gold-soft: #fff8e1;
	--vbpos-ok: #15803d;
	--vbpos-danger: #b91c1c;
}

.vbpos-pay,
.vbpos-pay * {
	box-sizing: border-box;
}

.vbpos-pay {
	max-width: 540px;
	margin: 24px auto;
	background: #fff;
	border: 1px solid var(--vbpos-line);
	border-radius: 16px;
	box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
	color: var(--vbpos-ink);
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
}

.vbpos-pay p {
	margin: 0;
}

/* Header */
.vbpos-pay__header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 24px;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	border-bottom: 3px solid var(--vbpos-gold);
}

.vbpos-pay__lock {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	color: var(--vbpos-gold);
}

.vbpos-pay .vbpos-pay__title {
	margin: 0;
	padding: 0;
	font-size: 17px;
	line-height: 1.25;
	color: #fff;
}

.vbpos-pay__sub {
	margin-top: 2px;
	font-size: 12.5px;
	color: #cbd5e1;
}

/* Order summary */
.vbpos-pay__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 24px;
	background: #f8fafc;
	border-bottom: 1px solid var(--vbpos-line);
}

.vbpos-pay__store {
	font-size: 12.5px;
	color: var(--vbpos-muted);
}

.vbpos-pay__order {
	font-weight: 600;
}

.vbpos-pay__amount {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.vbpos-pay__amount .woocommerce-Price-amount,
.vbpos-pay__amount bdi {
	color: inherit;
}

/* Test mode */
.vbpos-pay__test {
	padding: 10px 24px;
	background: var(--vbpos-gold-soft);
	border-bottom: 1px solid #ffe08a;
	color: #7a5b00;
	font-size: 13px;
}

.vbpos-testcards {
	margin-top: 6px;
}

.vbpos-testcards summary {
	cursor: pointer;
	font-weight: 600;
}

.vbpos-testcards__note {
	margin: 6px 0 !important;
	font-size: 12.5px;
}

.vbpos-testcards ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vbpos-testcards__fill {
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 7px 12px;
	border: 1px dashed #e0b84a;
	border-radius: 8px;
	background: #fff;
	color: var(--vbpos-ink);
	font: inherit;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}

.vbpos-testcards__fill:hover {
	border-style: solid;
	background: #fffdf5;
}

/* Alert (declined / cancelled / verifying) */
.vbpos-alert {
	display: flex;
	gap: 12px;
	margin: 18px 24px 0;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid;
}

.vbpos-alert__icon {
	flex: none;
	margin-top: 1px;
}

.vbpos-alert__title {
	font-weight: 700;
}

.vbpos-alert__text {
	margin-top: 2px;
	font-size: 14px;
}

.vbpos-alert__hint {
	margin-top: 6px;
	font-size: 13px;
	opacity: 0.85;
}

.vbpos-alert--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: var(--vbpos-danger);
}

.vbpos-alert--info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1d4ed8;
}

/* Form */
.vbpos-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 22px 24px 8px;
	margin: 0;
}

.vbpos-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.vbpos-field label,
.vbpos-installments legend {
	font-size: 13px;
	font-weight: 600;
	color: var(--vbpos-ink);
}

.vbpos-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 14px;
	align-items: start;
}

.vbpos-input-wrap {
	position: relative;
}

.vbpos-form input[type="text"],
.vbpos-form input[type="password"] {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 13px 14px;
	font-size: 16px;
	line-height: 1.3;
	letter-spacing: 0.04em;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: var(--vbpos-ink);
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.vbpos-form input[type="text"]:focus,
.vbpos-form input[type="password"]:focus {
	outline: none;
	border-color: var(--vbpos-navy);
	box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.35);
}

.vbpos-form input.is-invalid {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.vbpos-brand {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	padding: 3px 8px;
	border-radius: 6px;
	background: #f1f5f9;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--vbpos-muted);
	pointer-events: none;
}

.vbpos-brand:empty {
	display: none;
}

.vbpos-brand[data-brand="VISA"] { background: #e8eefc; color: #1a3d9c; }
.vbpos-brand[data-brand="Mastercard"] { background: #fdeceb; color: #b3261e; }
.vbpos-brand[data-brand="AMEX"] { background: #e3f4f8; color: #0a6c85; }
.vbpos-brand[data-brand="Troy"] { background: #e7f6ef; color: #0a7a4b; }

.vbpos-field__error {
	min-height: 0;
	font-size: 12.5px;
	color: #dc2626;
}

.vbpos-field__error:empty {
	display: none;
}

.vbpos-hintbox {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-top: 22px !important;
	padding: 9px 11px;
	border-radius: 10px;
	background: #f0fdf4;
	color: #166534;
	font-size: 12.5px;
	line-height: 1.4;
}

.vbpos-hintbox svg {
	flex: none;
	margin-top: 1px;
}

/* Installments */
.vbpos-installments {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.vbpos-installments legend {
	padding: 0 0 8px;
}

.vbpos-installments__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.vbpos-installment {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin: 0;
	padding: 10px 12px 10px 40px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.vbpos-installment.is-single {
	grid-column: 1 / -1;
}

.vbpos-installment:hover {
	border-color: var(--vbpos-navy);
}

.vbpos-installment.is-selected {
	border-color: var(--vbpos-navy);
	background: var(--vbpos-gold-soft);
	box-shadow: 0 0 0 1px var(--vbpos-navy);
}

.vbpos-installment input {
	position: absolute;
	left: 13px;
	top: 14px;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--vbpos-navy);
}

.vbpos-installment__count {
	font-weight: 700;
	font-size: 15px;
}

.vbpos-installment__amount {
	color: var(--vbpos-ink);
}

.vbpos-installment__sub {
	font-size: 12px;
	color: var(--vbpos-muted);
}

/* The pay button stays in view while the installment list is scrolled. */
.vbpos-paybar {
	position: sticky;
	bottom: 0;
	z-index: 5;
	margin: 0 -24px;
	padding: 14px 24px 12px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 16px);
}

.vbpos-selection {
	margin-bottom: 8px !important;
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--vbpos-gold-soft);
	font-size: 13.5px;
	font-weight: 600;
	text-align: center;
}

.vbpos-selection[hidden] {
	display: none;
}

.vbpos-pay .vbpos-submit,
.vbpos-pay .vbpos-submit.button.alt {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 16px 18px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	border: 0;
	border-radius: 12px;
	background: var(--vbpos-gold);
	color: var(--vbpos-navy);
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(245, 180, 0, 0.35);
	transition: filter 0.15s, transform 0.05s;
}

.vbpos-pay .vbpos-submit:hover,
.vbpos-pay .vbpos-submit.button.alt:hover {
	background: var(--vbpos-gold);
	color: var(--vbpos-navy);
	filter: brightness(1.05);
}

.vbpos-pay .vbpos-submit:focus-visible {
	outline: 3px solid var(--vbpos-navy);
	outline-offset: 2px;
}

.vbpos-pay .vbpos-submit:active {
	transform: translateY(1px);
}

.vbpos-pay .vbpos-submit:disabled {
	opacity: 0.75;
	cursor: progress;
}

.vbpos-submit .woocommerce-Price-amount,
.vbpos-submit bdi {
	color: inherit;
}

/* Trust row and footer */
.vbpos-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 12.5px;
	color: var(--vbpos-muted);
}

.vbpos-trust li {
	margin: 0;
	padding-left: 18px;
	position: relative;
}

.vbpos-trust li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.45em;
	width: 5px;
	height: 9px;
	border: solid var(--vbpos-ok);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.vbpos-pay__note {
	font-size: 12px;
	line-height: 1.5;
	color: var(--vbpos-muted);
	text-align: center;
}

.vbpos-pay__back {
	display: block;
	padding: 14px 24px 20px;
	text-align: center;
	font-size: 13.5px;
	color: var(--vbpos-muted);
	text-decoration: none;
}

.vbpos-pay__back:hover {
	color: var(--vbpos-ink);
	text-decoration: underline;
}

@media (max-width: 480px) {
	.vbpos-pay {
		margin: 12px auto;
		border-radius: 12px;
	}

	.vbpos-pay__header,
	.vbpos-pay__summary,
	.vbpos-pay__test {
		padding-left: 18px;
		padding-right: 18px;
	}

	.vbpos-alert {
		margin: 16px 18px 0;
	}

	.vbpos-form {
		padding: 18px 18px 8px;
	}

	.vbpos-paybar {
		margin: 0 -18px;
		padding: 14px 18px 12px;
	}

	.vbpos-row {
		grid-template-columns: 1fr;
	}

	.vbpos-hintbox {
		margin-top: 0 !important;
	}
}

/* Payment method box on the checkout page */
.vbpos-checkout-box p {
	margin: 0 0 8px;
}

.vbpos-points {
	display: grid;
	gap: 6px;
	margin: 10px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	font-size: 13.5px;
}

.vbpos-points li {
	position: relative;
	margin: 0;
	padding-left: 24px;
	color: inherit;
}

.vbpos-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #dcfce7;
}

.vbpos-points li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 0.42em;
	width: 4px;
	height: 7px;
	border: solid var(--vbpos-ok);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.vbpos-test-note {
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--vbpos-gold-soft);
	color: #7a5b00;
	font-size: 13px;
}

/* 3D Secure redirect page */
body.vbpos-redirect {
	margin: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #0f172a;
}

.vbpos-redirect__box {
	width: 100%;
	max-width: 440px;
	margin: 24px;
	padding: 0 0 28px;
	text-align: center;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
	overflow: hidden;
}

.vbpos-redirect__top {
	padding: 14px 20px;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	border-bottom: 3px solid #f5b400;
	color: #cbd5e1;
	font-size: 13px;
}

.vbpos-redirect__top strong {
	color: #fff;
}

.vbpos-steps {
	display: flex;
	justify-content: center;
	gap: 0;
	margin: 24px 24px 4px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.vbpos-steps li {
	position: relative;
	flex: 1;
	padding-top: 34px;
	font-size: 12px;
	color: #94a3b8;
	counter-increment: step;
}

.vbpos-steps li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 26px;
	height: 26px;
	line-height: 26px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #64748b;
	font-size: 13px;
	font-weight: 700;
}

.vbpos-steps li::after {
	content: "";
	position: absolute;
	top: 12px;
	left: calc(50% + 18px);
	right: calc(-50% + 18px);
	height: 2px;
	background: #e2e8f0;
}

.vbpos-steps li:last-child::after {
	display: none;
}

.vbpos-steps li.is-done {
	color: #15803d;
}

.vbpos-steps li.is-done::before {
	content: "\2713";
	background: #dcfce7;
	color: #15803d;
}

.vbpos-steps li.is-active {
	color: #0f172a;
	font-weight: 700;
}

.vbpos-steps li.is-active::before {
	background: #f5b400;
	color: #0f172a;
}

.vbpos-redirect__spinner {
	display: inline-block;
	width: 44px;
	height: 44px;
	margin-top: 22px;
	border: 4px solid #e2e8f0;
	border-top-color: #f5b400;
	border-radius: 50%;
	animation: vbpos-spin 0.9s linear infinite;
}

.vbpos-redirect__box h1 {
	margin: 16px 24px 8px;
	font-size: 20px;
}

.vbpos-redirect__box p {
	margin: 0 28px;
	color: #64748b;
	line-height: 1.55;
	font-size: 14.5px;
}

.vbpos-redirect__fallback {
	margin-top: 18px !important;
}

.vbpos-redirect__fallback[hidden] {
	display: none;
}

.vbpos-redirect__box .vbpos-submit {
	margin-top: 10px;
	padding: 12px 22px;
	border: 0;
	border-radius: 10px;
	background: #f5b400;
	color: #0f172a;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
}

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

@media (prefers-reduced-motion: reduce) {
	.vbpos-redirect__spinner {
		animation-duration: 3s;
	}
}

@media (prefers-color-scheme: dark) {
	body.vbpos-redirect {
		background: #0b1220;
		color: #e2e8f0;
	}

	.vbpos-redirect__box {
		background: #162033;
		box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
	}

	.vbpos-redirect__box h1 {
		color: #f1f5f9;
	}

	.vbpos-redirect__box p {
		color: #94a3b8;
	}

	.vbpos-steps li.is-active {
		color: #f1f5f9;
	}

	.vbpos-steps li::before,
	.vbpos-steps li::after {
		background: #2b3a55;
	}

	.vbpos-steps li.is-active::before {
		background: #f5b400;
	}

	.vbpos-redirect__spinner {
		border-color: #2b3a55;
		border-top-color: #f5b400;
	}
}

/* Standalone payment page */
body.vbpos-page {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(900px 400px at 85% -10%, rgba(245, 180, 0, 0.16), transparent 60%),
		linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #0f172a;
	-webkit-font-smoothing: antialiased;
}

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

.vbpos-topbar {
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
}

.vbpos-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1040px;
	margin: 0 auto;
	padding: 14px 24px;
}

.vbpos-topbar__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 16px;
	color: #0f172a;
	text-decoration: none;
}

.vbpos-topbar__brand img {
	width: 28px;
	height: 28px;
	border-radius: 6px;
}

.vbpos-topbar__secure {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #f0fdf4;
	color: #166534;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.vbpos-flow {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: #94a3b8;
}

.vbpos-flow li + li::before {
	content: "\203A";
	margin-right: 6px;
	color: #cbd5e1;
}

.vbpos-flow .is-done {
	color: #15803d;
}

.vbpos-flow .is-active {
	color: #0f172a;
	font-weight: 700;
}

.vbpos-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
	gap: 28px;
	align-items: start;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: 32px 24px 24px;
	flex: 1;
}

.vbpos-page .vbpos-pay {
	max-width: none;
	margin: 0;
}

/* Order summary */
.vbpos-layout__summary {
	position: sticky;
	top: 20px;
}

.vbpos-order {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.vbpos-order > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
}

.vbpos-order > summary::-webkit-details-marker {
	display: none;
}

.vbpos-order > summary small {
	display: block;
	font-weight: 500;
	font-size: 12.5px;
	color: #64748b;
}

.vbpos-order > summary strong {
	font-size: 18px;
}

.vbpos-order .woocommerce-Price-amount,
.vbpos-order bdi {
	color: inherit;
}

.vbpos-order__items {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 18px 20px;
	list-style: none;
}

.vbpos-order__items li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 14px;
}

.vbpos-order__thumb {
	position: relative;
	flex: none;
	width: 52px;
	height: 52px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f1f5f9;
}

.vbpos-order__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 9px;
}

.vbpos-order__thumb em {
	position: absolute;
	top: -7px;
	right: -7px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #0f172a;
	color: #fff;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.vbpos-order__name {
	flex: 1;
	min-width: 0;
	line-height: 1.35;
}

.vbpos-order__price {
	font-weight: 600;
	white-space: nowrap;
}

.vbpos-order__totals {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 12px;
	margin: 0;
	padding: 16px 20px 18px;
	border-top: 1px dashed #e2e8f0;
	font-size: 14px;
}

.vbpos-order__totals dt {
	color: #64748b;
}

.vbpos-order__totals dd {
	margin: 0;
	text-align: right;
}

.vbpos-order__totals .is-total {
	padding-top: 10px;
	border-top: 1px solid #e2e8f0;
	color: #0f172a;
	font-size: 17px;
	font-weight: 800;
}

.vbpos-assure {
	display: grid;
	gap: 8px;
	margin: 16px 4px 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: #475569;
}

.vbpos-assure li {
	position: relative;
	margin: 0;
	padding-left: 24px;
}

.vbpos-assure li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #dcfce7;
}

.vbpos-assure li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 4px;
	width: 4px;
	height: 7px;
	border: solid #15803d;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.vbpos-footer {
	padding: 20px 24px 28px;
	text-align: center;
	font-size: 12.5px;
	color: #94a3b8;
}

/* The card form on its own page does not need the duplicate trust row. */
.vbpos-page .vbpos-trust {
	display: none;
}

@media (max-width: 860px) {
	.vbpos-layout {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 16px 14px 8px;
	}

	.vbpos-layout__summary {
		order: -1;
		position: static;
	}

	.vbpos-flow {
		display: none;
	}

	.vbpos-topbar__inner {
		padding: 12px 14px;
	}
}
