/* Starium Online Ödeme — ürün sayfası, ödeme ekranı ve sözleşme penceresi.
   Yazı tipleri temadan (Elementor global fonts) gelir; burada yalnızca yerleşim ve renk var. */

:root {
	--sto-red: #d80a2d;
	--sto-red-dark: #a8061f;
	--sto-red-tint: #fff5f6;
	--sto-ink: #141414;
	--sto-muted: #5c5a57;
	--sto-line: #e2ded8;
	--sto-field: #cfcac3;
	--sto-ground: #f5f3f0;
	--sto-radius: 8px;
}

/* ---------- Ürün sayfası: paket kartları ---------- */
.sto-packages {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 0 0 20px;
}
.sto-package {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 18px;
	background: #fff;
	color: var(--sto-ink);
	border: 2px solid var(--sto-line);
	border-radius: 10px;
	text-align: left;
	cursor: pointer;
	font: inherit;
	transition: border-color .15s ease;
}
.sto-package:hover { border-color: #bdb7af; }
.sto-package.is-active { border-color: var(--sto-red); background: var(--sto-red-tint); }
.sto-package:focus-visible { outline: 3px solid var(--sto-red); outline-offset: 2px; }
.sto-package__label { font-size: 1.5em; font-weight: 800; line-height: 1; }
.sto-package__badge {
	position: absolute; top: 12px; right: 12px;
	font-size: 11px; font-weight: 800; letter-spacing: .5px;
	background: var(--sto-ink); color: #fff; padding: 4px 8px; border-radius: 4px;
}
.sto-package__price { font-size: 1.25em; font-weight: 800; }
.sto-package__month { font-size: 13px; color: var(--sto-muted); }

.sto-start { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.sto-start label { font-weight: 700; font-size: 14px; }
.sto-start input {
	height: 50px; padding: 0 14px; max-width: 260px;
	border: 1px solid var(--sto-field); border-radius: 6px; font: inherit;
}

/* ---------- Ödeme ekranı ---------- */
.woocommerce-checkout .woocommerce-billing-fields input.input-text,
.woocommerce-checkout .woocommerce-billing-fields select,
.sto-card input[type="text"],
.sto-card input[type="password"] {
	min-height: 50px;
	padding: 0 14px;
	border: 1px solid var(--sto-field);
	border-radius: 6px;
	font: inherit;
	background: #fff;
	box-sizing: border-box;
	width: 100%;
}
.woocommerce-checkout input:focus-visible,
.woocommerce-checkout select:focus-visible { outline: 2px solid var(--sto-red); outline-offset: 1px; border-color: var(--sto-red); }

.sto-fatura-tipi .woocommerce-input-wrapper { display: flex; gap: 24px; }
.sto-fatura-tipi input[type="radio"] { accent-color: var(--sto-red); width: 18px; height: 18px; }
.sto-fatura-tipi label.radio { display: inline-flex; align-items: center; gap: 8px; margin: 0 16px 0 6px; font-weight: 600; }
.sto-kurumsal { display: none; }

/* Kart formu */
.sto-card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.sto-card p { margin: 0; }
.sto-field { display: flex; flex-direction: column; gap: 6px; }
.sto-field label { font-weight: 700; font-size: 14px; }
.sto-field--full, .sto-installments, .sto-card__secure, .sto-card__error, .sto-card__brands { grid-column: 1 / -1; }
#sto-card-number { font-size: 17px; letter-spacing: 1px; }
.sto-card__brands { display: flex; gap: 6px; justify-content: flex-end; }
.sto-card__brands span { font-size: 11px; font-weight: 800; padding: 5px 9px; border: 1px solid var(--sto-line); border-radius: 4px; background: #fff; }

.sto-installments { border: 0; padding: 0; margin: 4px 0 0; }
.sto-installments legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.sto-installment {
	display: flex; align-items: center; gap: 12px;
	padding: 14px 16px; background: #fff;
	border: 1px solid var(--sto-line); border-top-width: 0; cursor: pointer;
}
.sto-installment:first-of-type { border-top-width: 1px; border-radius: var(--sto-radius) var(--sto-radius) 0 0; }
.sto-installment:last-of-type { border-radius: 0 0 var(--sto-radius) var(--sto-radius); }
.sto-installment:only-of-type { border-radius: var(--sto-radius); }
.sto-installment:has(input:checked) { background: var(--sto-red-tint); }
.sto-installment input { accent-color: var(--sto-red); width: 18px; height: 18px; margin: 0; }
.sto-installment__label { flex: 1; font-weight: 700; }
.sto-installment__sum { color: var(--sto-muted); }

.sto-card__secure { font-size: 13px; line-height: 1.5; color: #33312e; background: var(--sto-ground); border-radius: var(--sto-radius); padding: 12px 14px; }
.sto-card__error { color: var(--sto-red-dark); font-weight: 700; font-size: 14px; }

/* Onaylar */
.sto-consents { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.sto-consents h3 { margin: 0 0 4px; }
.sto-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; cursor: pointer; }
.sto-consent input { accent-color: var(--sto-red); width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; }
.sto-consent a, .sto-consents__kvkk a { color: var(--sto-red); font-weight: 700; }
.sto-consent--optional { color: var(--sto-muted); }
.sto-consents__kvkk { margin: 0; font-size: 13px; color: var(--sto-muted); }

#place_order {
	background: var(--sto-red) !important; color: #fff !important;
	min-height: 58px; width: 100%; border-radius: 6px; border: 0;
	font-size: 17px; font-weight: 800;
}
#place_order:hover { background: var(--sto-red-dark) !important; }

/* ---------- Sözleşme penceresi ---------- */
body.sto-modal-open { overflow: hidden; }
.sto-modal[hidden] { display: none; }
.sto-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sto-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .72); }
.sto-modal__dialog {
	position: relative; width: 100%; max-width: 900px; max-height: calc(100vh - 32px);
	display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; outline: none;
}
.sto-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px 12px; }
.sto-modal__head h2 { margin: 0; font-size: 24px; }
.sto-modal__x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sto-ground); font-size: 24px; line-height: 1; cursor: pointer; color: var(--sto-ink); }
.sto-modal__tabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--sto-line); overflow-x: auto; }
.sto-modal__tabs button {
	flex-shrink: 0; padding: 12px 12px; background: none; border: 0; border-bottom: 3px solid transparent;
	font: inherit; font-weight: 700; font-size: 14px; color: var(--sto-muted); cursor: pointer;
}
.sto-modal__tabs button.is-active { color: var(--sto-ink); border-bottom-color: var(--sto-red); }
.sto-modal__body { padding: 24px 28px; overflow-y: auto; font-size: 15px; line-height: 1.7; color: #26241f; }
.sto-modal__body h3 { font-size: 15px; margin: 18px 0 6px; }
.sto-fill { background: #fde7ea; color: #8f0620; padding: 1px 5px; border-radius: 4px; font-weight: 700; }
.sto-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--sto-line); background: #faf9f7; }
.sto-btn { min-height: 48px; padding: 0 24px; border-radius: 6px; border: 0; background: var(--sto-red); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.sto-btn:hover { background: var(--sto-red-dark); }
.sto-btn--ghost { background: #fff; color: var(--sto-ink); border: 1px solid var(--sto-field); }
.sto-btn--ghost:hover { background: var(--sto-ground); }

@media (max-width: 600px) {
	.sto-card { grid-template-columns: 1fr 1fr; }
	.sto-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sto-modal { padding: 0; align-items: stretch; }
	.sto-modal__dialog { max-height: 100vh; border-radius: 0; }
	.sto-modal__foot { flex-direction: column-reverse; }
	.sto-modal__foot .sto-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.sto-package { transition: none; }
}
