/* Değiş Tokuş kartı — Hizmetler kartlarıyla (pt-ueh) aynı görsel dil.
   Bölüm başlığı ve kartlar arası boşluk yuva sahibinde (.pt-us-services). */
.pt-dt { margin: 0; }

.pt-dt-card {
	/* XD kart dili: gri zemin, 20px radius, açık gri çerçeve */
	border: 1px solid var(--ptus-card-line, #d9d9d9);
	border-radius: var(--ptus-radius-card, 20px);
	background: var(--ptus-card-bg, #f5f5f7);
	overflow: hidden;
}

.pt-dt-head {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 15px 18px; /* pt-ueh kart başlıklarıyla EŞİT yükseklik */
	margin: 0; /* Flatsome button'a 1em alt margin basıyor — kapalı kartta ölü boşluk yapar */
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
}
.pt-dt-head:hover { background: #efeff2; }
.pt-dt-head-title { font-size: 15px; font-weight: 700; color: var(--ptus-ink, #000); white-space: nowrap; line-height: 1.25; }
.pt-dt-head-hint {
	margin-left: auto;
	font-size: 12px;
	color: var(--ptus-ink-soft, #6e6e73);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
	line-height: 1.2;
}
.pt-dt-card:not(.is-collapsed) .pt-dt-head-hint { visibility: hidden; }
.pt-dt-chev { color: var(--ptus-ink-soft, #6e6e73); transition: transform .2s; flex: 0 0 auto; }
.pt-dt-card.is-collapsed .pt-dt-chev { transform: rotate(180deg); }

.pt-dt-body {
	padding: 0 18px 18px;
	max-height: 1800px; /* akış adımları + talep formu */
	overflow: hidden;
	opacity: 1;
	transition: max-height .28s ease, padding .28s ease, opacity .2s ease;
}
.pt-dt-card.is-collapsed .pt-dt-body {
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	opacity: 0;
}

.pt-dt-desc { font-size: 13px; color: var(--ptus-ink-soft, #6e6e73); margin: 0 0 8px; line-height: 1.5; }
.pt-dt-details-link {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ptus-accent, #0071e3);
	text-decoration: none;
	margin-bottom: 14px;
}
.pt-dt-details-link:hover { text-decoration: underline; }

/* Form */
.pt-dt-form { margin: 0; }
.pt-dt-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 12px;
	margin-bottom: 10px;
}
@media ( max-width: 640px ) {
	.pt-dt-grid { grid-template-columns: 1fr; }
}

.pt-dt-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.pt-dt-field > span { font-size: 12px; font-weight: 600; color: var(--ptus-ink, #1d1d1f); }
.pt-dt-field > span em { color: #d63638; font-style: normal; }
.pt-dt-field input,
.pt-dt-field select,
.pt-dt-field textarea {
	width: 100%;
	height: auto; /* Flatsome'un 2.507em sabit yüksekliği padding'le çakışıp metni kırpıyor */
	padding: 9px 12px;
	font-size: 13px;
	line-height: 1.4;
	border: 1px solid #d2d2d7;
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
}
.pt-dt-field select {
	/* background shorthand Flatsome'un ok ikonunu sildi — kendi chevron'umuz */
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}
.pt-dt-field input:focus,
.pt-dt-field select:focus,
.pt-dt-field textarea:focus {
	outline: none;
	border-color: var(--ptus-accent, #0071e3);
	box-shadow: 0 0 0 3px rgba(0, 113, 227, .12);
}
.pt-dt-field textarea { resize: vertical; }

.pt-dt-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.pt-dt-actions { margin-top: 12px; }
.pt-dt-submit {
	display: inline-block;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: var(--ptus-accent, #0071e3);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s;
}
.pt-dt-submit:hover { background: #0077ed; }
.pt-dt-submit[disabled] { opacity: .6; cursor: default; }

.pt-dt-msg { font-size: 13px; margin: 10px 0 0; }
.pt-dt-msg.is-success { color: #00a32a; font-weight: 600; }
.pt-dt-msg.is-error { color: #d63638; font-weight: 600; }

/* ================= Takas akışı (Eskiyi Yenile) ================= */

/* Uygulanmış takas: başlıkta seçim + tutar, ipucu gizli */
.pt-dt-head-sel {
	display: none;
	margin-left: auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--ptus-ink, #1d1d1f);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}
.pt-dt-card.is-applied .pt-dt-head-sel { display: block; }
.pt-dt-card.is-applied .pt-dt-head-hint { display: none; }
.pt-dt-sel-amt { color: #1d8a3f; }

.pt-dt-flow { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.pt-dt-flow[hidden], .pt-dt-step[hidden], .pt-dt-form[hidden], .pt-dt-applied[hidden] { display: none !important; }
.pt-dt-step { display: flex; flex-direction: column; gap: 8px; }
.pt-dt-step-label { font-size: 12px; font-weight: 600; color: var(--ptus-ink, #1d1d1f); }

.pt-dt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-dt-chip {
	appearance: none;
	margin: 0;
	padding: 8px 14px;
	min-height: 0;
	font: inherit;
	font-size: 13px;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ptus-ink, #000);
	background: #fff;
	border: 2px solid #fff;
	border-radius: 999px;
	cursor: pointer;
	transition: border-color .15s;
}
.pt-dt-chip:hover { border-color: #c9d8f0; }
.pt-dt-chip.is-selected { border-color: var(--ptus-accent, #165EC9); font-weight: 600; }

/* Durum seçenekleri — pt-ueh seçenek satırlarıyla aynı dil */
.pt-dt-conds { display: flex; flex-direction: column; gap: 8px; }
.pt-dt-cond {
	appearance: none;
	width: 100%;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 15px;
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ptus-ink, #000);
	background: #fff;
	border: 2px solid #fff;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s;
}
.pt-dt-cond:hover { border-color: #c9d8f0; }
.pt-dt-cond.is-selected { border-color: var(--ptus-accent, #165EC9); }
.pt-dt-cond-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-dt-cond-label { font-size: 14px; font-weight: 500; line-height: 1.3; }
.pt-dt-cond-desc { font-size: 12px; color: var(--ptus-ink-soft, #6e6e73); line-height: 1.4; }
.pt-dt-cond-price { font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.pt-dt-hint { font-size: 11.5px; color: var(--ptus-ink-soft, #6e6e73); font-weight: 400; line-height: 1.4; }
.pt-dt-field > span small { font-weight: 400; color: var(--ptus-ink-soft, #6e6e73); }

/* Teklif özeti — Trendyol "Kazancın" kutusu */
.pt-dt-quote {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 15px;
	background: #eaf6ee;
	border-radius: 12px;
	font-size: 13px;
	color: #1d1d1f;
}
.pt-dt-quote-row { display: flex; justify-content: space-between; gap: 12px; }
.pt-dt-quote-row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-dt-quote-total { padding-top: 6px; border-top: 1px solid rgba(29, 138, 63, .18); font-size: 14px; }
.pt-dt-quote-total strong { color: #1d8a3f; }

.pt-dt-terms { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12px; line-height: 1.45; color: var(--ptus-ink-soft, #6e6e73); cursor: pointer; }
.pt-dt-terms input { margin: 2px 0 0; flex: 0 0 auto; }
.pt-dt-flow .pt-dt-actions { margin-top: 0; }
.pt-dt-note { margin: 0; font-size: 12px; color: var(--ptus-ink-soft, #6e6e73); line-height: 1.45; }

.pt-dt-applied { display: flex; flex-direction: column; gap: 6px; padding: 12px 15px; background: #fff; border-radius: 12px; }
.pt-dt-applied-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pt-dt-applied-row strong { color: #1d8a3f; white-space: nowrap; }

.pt-dt-link {
	appearance: none;
	align-self: flex-start;
	margin: 0;
	padding: 0;
	min-height: 0;
	background: none;
	border: 0;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ptus-accent, #0071e3);
	cursor: pointer;
}
.pt-dt-link:hover { text-decoration: underline; }
.pt-dt-notlisted-toggle { margin-top: 12px; }
.pt-dt-form:not([hidden]) { margin-top: 12px; }

/* Özet listesindeki takas satırı — eksi tutar yeşil */
.pt-us-line.pt-dt-line .pt-us-line-price { color: #1d8a3f; }
