/* =========================================================================
   GRAND THEFT PLANET – CONVERSION

   Versandkostenschwelle, Größentabelle, Produkt-Infos.
   Nutzt ausschließlich bestehende Bauteile: Signal-Punkt, Eyebrow-Pille,
   Pricedown-Überschrift, Ziel-Klammern.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. VERSANDKOSTENSCHWELLE
   ---------------------------------------------------------------------- */

.gtp-ship {
	padding: 14px 0 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 4px;
}

.gtp-ship__text {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72) !important;
}

.gtp-ship.is-reached .gtp-ship__text {
	color: var(--gtp-green, #94be72) !important;
}

.gtp-ship__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--gtp-blue, #1684dd) !important;
	flex-shrink: 0;
	transition: background-color 0.3s ease;
}

.gtp-ship.is-reached .gtp-ship__dot {
	background: var(--gtp-green, #94be72) !important;
	box-shadow: 0 0 7px rgba(148, 190, 114, 0.9);
}

.gtp-ship__track {
	position: relative;
	height: 3px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	overflow: hidden;
}

.gtp-ship__fill {
	display: block;
	height: 100%;
	background: var(--gtp-blue, #1684dd);
	border-radius: 2px;
	/* width-Animation ist hier vertretbar: der Balken ändert sich nur beim
	   Hinzufügen eines Artikels, nicht während des Scrollens. */
	transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.gtp-ship.is-reached .gtp-ship__fill {
	background: var(--gtp-green, #94be72);
}

/* Auf der Warenkorb-Seite und in der Kasse mittig begrenzen */
body.gtp-cart-page .gtp-ship,
body.gtp-checkout-page .gtp-ship {
	max-width: 1320px;
	margin: 0 auto 20px;
	padding-left: 28px;
	padding-right: 28px;
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   2. GRÖSSENTABELLE
   ---------------------------------------------------------------------- */

.gtp-sizelink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 22px !important;
	padding: 0 !important;
	background: none !important;
	border: none !important;
	color: rgba(255, 255, 255, 0.72) !important;
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.gtp-sizelink:hover,
.gtp-sizelink:focus-visible {
	color: #ffffff !important;
	text-decoration-color: var(--gtp-blue, #1684dd);
}

.gtp-size {
	position: fixed;
	inset: 0;
	z-index: 310;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gtp-size.is-open {
	opacity: 1;
	visibility: visible;
}

.gtp-size__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 6, 6, 0.82);
	cursor: pointer;
}

.gtp-size__panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 86vh;
	overflow-y: auto;
	padding: 36px 32px 30px;
	box-sizing: border-box;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(22, 132, 221, 0.14) 0%, rgba(22, 132, 221, 0) 55%),
		#0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
	transform: translateY(14px);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gtp-size.is-open .gtp-size__panel {
	transform: translateY(0);
}

.gtp-size__panel::before,
.gtp-size__panel::after {
	content: '';
	position: absolute;
	width: 22px;
	height: 22px;
	border-color: var(--gtp-blue, #1684dd);
	border-style: solid;
	pointer-events: none;
}

.gtp-size__panel::before {
	top: -1px;
	left: -1px;
	border-width: 2px 0 0 2px;
}

.gtp-size__panel::after {
	right: -1px;
	bottom: -1px;
	border-width: 0 2px 2px 0;
}

.gtp-size__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	border: none !important;
	color: rgba(255, 255, 255, 0.65) !important;
	font-size: 1.5rem;
	line-height: 1;
	padding: 0 !important;
	cursor: pointer;
	border-radius: 4px !important;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.gtp-size__close:hover,
.gtp-size__close:focus-visible {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.07) !important;
}

.gtp-size__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 16px;
	padding: 6px 16px;
	background: rgba(22, 132, 221, 0.14) !important;
	border: 1px solid rgba(22, 132, 221, 0.55) !important;
	border-radius: 999px;
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gtp-blue-light, #d0e6f8) !important;
}

.gtp-size__signal {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gtp-green, #94be72) !important;
	box-shadow: 0 0 7px rgba(148, 190, 114, 0.9);
	flex-shrink: 0;
}

.gtp-size__title {
	font-family: 'Pricedown', 'Anton', sans-serif;
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #ffffff !important;
	margin: 0 0 14px !important;
}

.gtp-size__intro,
.gtp-size__note {
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.85rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.72) !important;
	margin: 0 0 22px !important;
}

.gtp-size__note {
	margin: 20px 0 0 !important;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.8rem;
}

.gtp-size__scroll {
	overflow-x: auto;
}

.gtp-size__table {
	width: 100%;
	border-collapse: collapse;
	font-family: 'Archivo', Arial, sans-serif;
}

.gtp-size__table th,
.gtp-size__table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.8) !important;
	white-space: nowrap;
}

.gtp-size__table thead th {
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.58) !important;
	border-bottom-color: rgba(255, 255, 255, 0.14);
}

.gtp-size__table tbody th {
	font-weight: 600;
	color: #ffffff !important;
}

.gtp-size__table tbody tr:last-child th,
.gtp-size__table tbody tr:last-child td {
	border-bottom: none;
}

/* -------------------------------------------------------------------------
   3. AUFKLAPPBARE PRODUKT-INFOS
   ---------------------------------------------------------------------- */

.gtp-acc {
	margin-top: 26px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gtp-acc__item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gtp-acc__head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 0 !important;
	background: none !important;
	border: none !important;
	cursor: pointer;
	text-align: left;
}

.gtp-acc__label {
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8) !important;
	transition: color 0.2s ease;
}

.gtp-acc__head:hover .gtp-acc__label,
.gtp-acc__head:focus-visible .gtp-acc__label {
	color: #ffffff !important;
}

/* Plus/Minus aus zwei Strichen – kein Icon-Font nötig */
.gtp-acc__icon {
	position: relative;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

.gtp-acc__icon::before,
.gtp-acc__icon::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 12px;
	height: 1.5px;
	background: var(--gtp-blue, #1684dd);
	transform: translateY(-50%);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.gtp-acc__icon::after {
	transform: translateY(-50%) rotate(90deg);
}

.gtp-acc__head[aria-expanded="true"] .gtp-acc__icon::after {
	transform: translateY(-50%) rotate(0deg);
	opacity: 0;
}

.gtp-acc__body {
	padding: 0 0 18px;
}

.gtp-acc__body[hidden] {
	display: none;
}

.gtp-acc__body p {
	margin: 0 !important;
	font-family: 'Archivo', Arial, sans-serif;
	font-size: 0.86rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.72) !important;
}

/* -------------------------------------------------------------------------
   RESPONSIVE + BEWEGUNGSREDUZIERUNG
   ---------------------------------------------------------------------- */

@media (max-width: 900px) {
	body.gtp-cart-page .gtp-ship,
	body.gtp-checkout-page .gtp-ship {
		padding-left: 18px;
		padding-right: 18px;
	}
}

@media (max-width: 520px) {
	.gtp-size {
		padding: 16px;
	}
	.gtp-size__panel {
		padding: 30px 20px 24px;
	}
	.gtp-size__table th,
	.gtp-size__table td {
		padding: 10px;
		font-size: 0.82rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gtp-ship__fill,
	.gtp-ship__dot,
	.gtp-size,
	.gtp-size__panel,
	.gtp-size__close,
	.gtp-sizelink,
	.gtp-acc__label,
	.gtp-acc__icon::before,
	.gtp-acc__icon::after {
		transition: none !important;
	}
	.gtp-size__panel {
		transform: none;
	}
}
