.tp-details-btn {
	display: block;
	margin: 10px auto 0;
	background: transparent;
	color: #ffffff;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	border-radius: 8px;
	padding: 7px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tp-details-btn:hover {
	background: #ffffff;
	color: #091057;
	border-color: #ffffff;
}

/* The price badge is typically on a dark/photo background — keep the button
   readable there, but also cover the case where it renders on light backgrounds. */
.tp-price-badge[style*="background"] ~ .tp-details-btn,
.wp-block-group .tp-details-btn {
	border-color: rgba(9, 16, 87, 0.35);
	color: #091057;
}

.wp-block-group .tp-details-btn:hover {
	background: #091057;
	color: #ffffff;
	border-color: #091057;
}

.tp-details-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.tp-details-modal.is-open {
	display: flex;
}

.tp-details-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(9, 16, 87, 0.55);
	backdrop-filter: blur(2px);
}

.tp-details-modal__panel {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	max-width: 720px;
	width: 100%;
	max-height: min(85vh, 800px);
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(9, 16, 87, 0.35);
	animation: tp-modal-in 0.2s ease;
}

@keyframes tp-modal-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.tp-details-modal__close {
	position: sticky;
	top: 0;
	float: right;
	margin: 14px 14px 0 0;
	background: rgba(9, 16, 87, 0.06);
	border: none;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	font-size: 20px;
	line-height: 1;
	color: #091057;
	cursor: pointer;
	z-index: 2;
	transition: background 0.15s ease;
}

.tp-details-modal__close:hover {
	background: #e63329;
	color: #ffffff;
}

.tp-details-modal__body {
	padding: 0 32px 32px;
}

.tp-details-modal__loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 80px 20px;
	color: #6b6f7d;
	font-size: 14px;
}

.tp-details-modal__spinner {
	width: 28px;
	height: 28px;
	border: 3px solid #e1e1e1;
	border-top-color: #091057;
	border-radius: 50%;
	animation: tp-spin 0.7s linear infinite;
}

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

.tp-details-modal__error {
	padding: 60px 20px;
	text-align: center;
	color: #e63329;
	font-size: 14px;
}

.tp-details-hero {
	margin: -1px -1px 0;
	border-radius: 16px 16px 0 0;
	overflow: hidden;
	position: relative;
	height: 220px;
}

.tp-details-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tp-details-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(9, 16, 87, 0.85), rgba(9, 16, 87, 0.1));
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px 32px;
}

.tp-details-hero__overlay h2 {
	color: #ffffff;
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 700;
}

.tp-details-hero__price {
	display: inline-block;
	background: #e63329;
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	padding: 6px 14px;
	border-radius: 8px;
	width: fit-content;
}

.tp-details-modal__content {
	padding-top: 24px;
	font-size: 14.5px;
	line-height: 1.6;
	color: #2b2b2b;
}

.tp-details-modal__content h3 {
	color: #091057;
	font-size: 17px;
	margin: 24px 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid #f3f4f6;
}

.tp-details-modal__content h3:first-child {
	margin-top: 0;
}

.tp-details-modal__content pre {
	background: #f3f4f6;
	border-radius: 10px;
	padding: 16px;
	font-family: inherit;
	font-size: 13.5px;
	white-space: pre-wrap;
	overflow-x: auto;
	color: #2b2b2b;
}

.tp-details-modal__content p {
	margin: 0 0 12px;
}

.tp-details-duration {
	display: inline-block;
	background: #f3f4f6;
	color: #091057;
	font-weight: 600;
	font-size: 13px;
	padding: 5px 14px;
	border-radius: 20px;
	margin-bottom: 4px;
}

.tp-details-includes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 20px;
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

.tp-details-includes li {
	position: relative;
	padding-left: 26px;
	font-size: 14px;
	color: #2b2b2b;
	line-height: 1.4;
}

.tp-details-includes li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	background: #e63329;
	color: #ffffff;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
}

@media (max-width: 480px) {
	.tp-details-includes {
		grid-template-columns: 1fr;
	}
}

.tp-details-modal__footer {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e1e1e1;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.tp-details-modal__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #25D366;
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	padding: 11px 20px;
	border-radius: 10px;
	text-decoration: none;
}

.tp-details-modal__cta:hover {
	background: #1ebe5a;
	color: #ffffff;
}

.tp-details-modal__cta--outline {
	background: transparent;
	border: 1.5px solid #091057;
	color: #091057;
}

.tp-details-modal__cta--outline:hover {
	background: #091057;
	color: #ffffff;
}

body.tp-modal-open {
	overflow: hidden;
}
