/* The7 — sözleşme metni, ödeme sayfası onayı ve pencere */
.t7-sz-metin,
.t7-sz-modal,
.t7-sz-onay,
.t7-sz-ozet {
	--t7sz-ana: #505C32;
	--t7sz-ana-koyu: #3f4927;
	--t7sz-cizgi: #E9DEC9;
	--t7sz-zemin: #FBF8F2;
	--t7sz-yazi: #2b2b2b;
	--t7sz-soluk: #6b6b6b;
	--t7sz-hata: #C0392B;
}

/* ---------- Metin (pencere, genel sayfa, görüntüleme sayfası) ---------- */
.t7-sz-metin {
	color: var(--t7sz-yazi);
	font-size: 16px; /* Yönetmelik: en az 12 punto */
	line-height: 1.6;
	overflow-wrap: anywhere;
}
.t7-sz-metin h2 { font-size: 22px; line-height: 1.3; margin: 0 0 12px; }
.t7-sz-metin h3 { font-size: 18px; line-height: 1.35; margin: 26px 0 8px; }
.t7-sz-metin h4 { font-size: 16px; line-height: 1.4; margin: 18px 0 6px; }
.t7-sz-metin p,
.t7-sz-metin ul { margin: 0 0 12px; }
.t7-sz-metin ul { padding-left: 20px; }
.t7-sz-metin li { margin-bottom: 6px; }
.t7-sz-metin .t7-sz-not { color: var(--t7sz-soluk); font-size: 15px; }
.t7-sz-metin .t7-sz-bos { color: var(--t7sz-soluk); font-style: italic; }
.t7-sz-kaydir { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.t7-sz-metin table.t7-sz-tablo {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0 14px;
	font-size: 15px;
	border: 0;
}
.t7-sz-metin .t7-sz-tablo th,
.t7-sz-metin .t7-sz-tablo td {
	padding: 8px 10px;
	border: 0;
	border-bottom: 1px solid var(--t7sz-cizgi);
	text-align: left;
	vertical-align: top;
	background: transparent;
}
.t7-sz-metin .t7-sz-kisi th { width: 34%; font-weight: 600; color: var(--t7sz-soluk); }
.t7-sz-metin .t7-sz-urunler thead th { font-weight: 600; border-bottom-color: #d8ccb4; white-space: nowrap; }
.t7-sz-metin .t7-sz-urunler tfoot th { font-weight: 500; text-align: right; }
.t7-sz-metin .t7-sz-sag { text-align: right; white-space: nowrap; }
.t7-sz-metin .t7-sz-toplam th,
.t7-sz-metin .t7-sz-toplam td { font-weight: 700; color: var(--t7sz-yazi); border-bottom: 0; }
.t7-sz-metin .t7-sz-form {
	margin-top: 24px;
	padding: 14px 16px;
	border: 1px dashed #d8ccb4;
	border-radius: 14px;
	background: var(--t7sz-zemin);
	font-size: 15px;
}
.t7-sz-metin .t7-sz-form p:last-child { margin-bottom: 0; }

/* ---------- Ödeme sayfası: özet + onay kutusu ---------- */
.woocommerce-checkout .t7-sz-ozet {
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--t7sz-zemin);
	border: 1px solid var(--t7sz-cizgi);
	font-size: 14px;
	line-height: 1.5;
	color: var(--t7sz-yazi);
}
.woocommerce-checkout .t7-sz-ozet p { margin: 0 !important; }

.woocommerce-checkout .form-row.t7-sz-onay {
	margin: 0 0 16px !important;
	padding: 0;
}
.woocommerce-checkout .t7-sz-onay label.checkbox {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 400;
	color: var(--t7sz-yazi);
	cursor: pointer;
}
.woocommerce-checkout .t7-sz-onay input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 3px 0 0 !important;
	cursor: pointer;
}
.woocommerce-checkout .t7-sz-onay a.t7-sz-ac {
	color: var(--t7sz-ana);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.woocommerce-checkout .t7-sz-onay a.t7-sz-ac:hover { color: var(--t7sz-ana-koyu); text-decoration-thickness: 2px; }
.woocommerce-checkout .t7-sz-onay a.t7-sz-ac:focus-visible { outline: 2px solid var(--t7sz-ana); outline-offset: 2px; border-radius: 3px; }
.woocommerce-checkout .t7-sz-onay abbr.required { color: var(--t7sz-hata); text-decoration: none; border: 0; }
.woocommerce-checkout .t7-sz-onay .t7-sz-hata {
	display: block;
	margin: 6px 0 0 32px;
	color: var(--t7sz-hata);
	font-size: 14px;
	line-height: 1.4;
}
.woocommerce-checkout .t7-sz-onay .t7-sz-hata[hidden] { display: none; }

/* ---------- Pencere ---------- */
html.t7-sz-kilit,
html.t7-sz-kilit body { overflow: hidden !important; }
.t7-sz-modal[hidden] { display: none !important; }
.t7-sz-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.t7-sz-perde {
	position: absolute;
	inset: 0;
	background: rgba(30, 28, 22, .55);
	opacity: 0;
	transition: opacity .2s ease;
}
.t7-sz-pencere {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 780px;
	max-height: min(88vh, 900px);
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	outline: none;
	transform: translateY(12px);
	opacity: 0;
	transition: transform .2s ease, opacity .2s ease;
}
.t7-sz-modal.is-acik .t7-sz-perde { opacity: 1; }
.t7-sz-modal.is-acik .t7-sz-pencere { transform: none; opacity: 1; }
.t7-sz-gizli {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.t7-sz-ust-satir {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 14px 12px 20px;
	border-bottom: 1px solid var(--t7sz-cizgi);
}
.t7-sz-sekmeler {
	display: flex;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 4px;
	background: var(--t7sz-zemin);
	border: 1px solid var(--t7sz-cizgi);
	border-radius: 30px;
}
.t7-sz-modal .t7-sz-sekme {
	flex: 1 1 0;
	min-width: 0;
	min-height: 40px;
	padding: 8px 14px;
	border: 0;
	border-radius: 30px;
	background: transparent;
	background-image: none !important;
	box-shadow: none;
	color: var(--t7sz-yazi);
	font: inherit;
	font-size: 15px;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 500;
	line-height: 1.25;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.t7-sz-modal .t7-sz-sekme:hover { background: rgba(80, 92, 50, .08); }
.t7-sz-modal .t7-sz-sekme.is-aktif,
.t7-sz-modal .t7-sz-sekme.is-aktif:hover { background: var(--t7sz-ana); color: #fff; }
.t7-sz-modal .t7-sz-sekme:focus-visible,
.t7-sz-modal .t7-sz-kapat:focus-visible,
.t7-sz-modal .t7-sz-dugme:focus-visible { outline: 2px solid var(--t7sz-ana); outline-offset: 2px; }
.t7-sz-modal .t7-sz-kapat {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--t7sz-cizgi);
	border-radius: 50%;
	background: #fff;
	color: var(--t7sz-yazi);
	cursor: pointer;
}
.t7-sz-modal .t7-sz-kapat:hover { border-color: var(--t7sz-ana); color: var(--t7sz-ana); }
.t7-sz-govde {
	flex: 1 1 auto;
	min-height: 200px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 20px 24px 8px;
	outline: none;
}
.t7-sz-govde:focus-visible { box-shadow: inset 0 0 0 2px rgba(80, 92, 50, .35); }
.t7-sz-alt {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 20px;
	border-top: 1px solid var(--t7sz-cizgi);
}
.t7-sz-modal .t7-sz-dugme {
	min-height: 48px;
	padding: 0 24px;
	border-radius: 30px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	background-image: none !important;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.t7-sz-modal .t7-sz-ikincil { background: #fff; color: var(--t7sz-yazi); border: 1px solid var(--t7sz-cizgi); }
.t7-sz-modal .t7-sz-ikincil:hover { border-color: var(--t7sz-ana); color: var(--t7sz-ana); }
.t7-sz-modal .t7-sz-birincil { background: var(--t7sz-ana); color: #fff; border: 1px solid var(--t7sz-ana); }
.t7-sz-modal .t7-sz-birincil:hover { background: var(--t7sz-ana-koyu); border-color: var(--t7sz-ana-koyu); }
.t7-sz-yukleniyor {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 56px 12px;
	text-align: center;
	color: var(--t7sz-soluk);
}
.t7-sz-donen {
	width: 28px;
	height: 28px;
	border: 3px solid var(--t7sz-cizgi);
	border-top-color: var(--t7sz-ana);
	border-radius: 50%;
	animation: t7-sz-don .8s linear infinite;
}
@keyframes t7-sz-don { to { transform: rotate(360deg); } }

/* Telefon: alttan açılan tam yükseklikte sayfa */
@media (max-width: 640px) {
	.t7-sz-modal { padding: 0; align-items: flex-end; }
	.t7-sz-pencere {
		max-width: none;
		height: 94vh;
		height: 94dvh;
		max-height: none;
		border-radius: 20px 20px 0 0;
		transform: translateY(24px);
	}
	.t7-sz-ust-satir { padding: 10px 10px 10px 12px; gap: 8px; }
	.t7-sz-modal .t7-sz-sekme { font-size: 14px; padding: 8px 10px; }
	.t7-sz-govde { padding: 16px 16px 8px; }
	.t7-sz-alt { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
	.t7-sz-modal .t7-sz-dugme { padding: 0 18px; font-size: 15px; }
	.t7-sz-modal .t7-sz-birincil { flex: 1 1 auto; }
	.t7-sz-metin .t7-sz-kisi th { width: 38%; }
	.t7-sz-metin .t7-sz-tablo th,
	.t7-sz-metin .t7-sz-tablo td { padding: 7px 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.t7-sz-perde, .t7-sz-pencere { transition: none; }
	.t7-sz-donen { animation-duration: 2s; }
}

/* Sipariş detayındaki bağlantılar */
.t7-sz-baglantilar { margin: 16px 0; }
