/*============================================================================
   26-my-booking.css — stránka „Moje rezervace" ([tr_my_booking])
   Plugin Toret Rooms nedodává CSS. Stylujeme samoobslužnou kartu hosta:
   stav objednávky, souhrn (termín / hosté / ceny), platební tlačítka,
   check-in odkaz a iCal. Scope: .nj-mybooking-section.
   Třídy z pluginu: .tr-mb-wrap/-title/-status/-ok/-wait/-actions/-checkin/-error,
   .tr-booking-table, .tr-pay-btn, .tr-pay-status(--paid)/.tr-pay-icon, .tr-btn-submit.
============================================================================*/

.nj-mybooking-section { background: var(--sand-1); padding: 40px 0 84px; }
.nj-mybooking-section > .et_pb_row {
	max-width: var(--container) !important;
	width: 92% !important;
	margin: 0 auto !important;
	padding: 0 !important;
}

/* ---- bílá karta rezervace ---- */
.nj-mybooking-section .tr-mb-wrap {
	max-width: 720px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	box-shadow: var(--shadow);
	padding: 30px 32px 34px;
}

/* ---- hlavička: číslo rezervace + stavový odznak ---- */
.nj-mybooking-section .tr-mb-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 1.3rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-serif);
	font-size: 1.7rem;
	color: var(--navy);
}
.nj-mybooking-section .tr-mb-status {
	display: inline-flex;
	align-items: center;
	padding: 5px 13px;
	border-radius: 999px;
	font-family: var(--font-sans, inherit);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1;
}
.nj-mybooking-section .tr-mb-status--paid      { background: #e7f5ec; color: var(--green); }
.nj-mybooking-section .tr-mb-status--confirmed { background: #e6f1f3; color: var(--accent-deep); }
.nj-mybooking-section .tr-mb-status--pending   { background: #fff4ee; color: var(--coral); }
.nj-mybooking-section .tr-mb-status--trash     { background: var(--sand-3, #efe9e1); color: var(--muted); }

/* ---- souhrnná tabulka (termín / hosté / ceny) ---- */
.nj-mybooking-section .tr-booking-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}
.nj-mybooking-section .tr-booking-table th,
.nj-mybooking-section .tr-booking-table td {
	padding: 13px 4px;
	text-align: left;
	font-size: .96rem;
	color: var(--navy);
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
.nj-mybooking-section .tr-booking-table th {
	width: 40%;
	color: var(--muted);
	font-weight: 600;
}
.nj-mybooking-section .tr-booking-table td { text-align: right; }
.nj-mybooking-section .tr-booking-table tr:last-child th,
.nj-mybooking-section .tr-booking-table tr:last-child td { border-bottom: none; }
.nj-mybooking-section .tr-booking-table td strong {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--navy);
}

/* stavové štítky u plateb v tabulce */
.nj-mybooking-section .tr-mb-ok {
	color: var(--green);
	font-weight: 600;
	white-space: nowrap;
}
.nj-mybooking-section .tr-mb-wait {
	color: var(--coral);
	font-weight: 600;
	white-space: nowrap;
}

/* ---- akce: platby, check-in, kalendář ---- */
.nj-mybooking-section .tr-mb-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}
.nj-mybooking-section .tr-mb-actions p { margin: 0; }

/* platební tlačítko (záloha / doplatek) + check-in = accent CTA */
.nj-mybooking-section .tr-pay-btn,
.nj-mybooking-section .tr-btn-submit,
.nj-mybooking-section .tr-mb-checkin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 240px;
	height: 50px;
	padding: 0 1.8rem;
	background: var(--accent) !important;
	color: #fff !important;
	border: none;
	border-radius: var(--r-btn);
	font-family: inherit;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: .03em;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(251, 173, 36, .4);
	transition: background .2s, transform .2s;
}
.nj-mybooking-section .tr-pay-btn:hover,
.nj-mybooking-section .tr-btn-submit:hover,
.nj-mybooking-section .tr-mb-checkin:hover {
	background: var(--accent-2) !important;
	transform: translateY(-1px);
}
/* doplatek = decentnější (ghost), ať nekonkuruje zálohové CTA */
.nj-mybooking-section .tr-pay-btn + .tr-pay-btn {
	background: #fff !important;
	color: var(--accent-deep) !important;
	border: 1.5px solid var(--accent);
	box-shadow: none;
}
.nj-mybooking-section .tr-pay-btn + .tr-pay-btn:hover {
	background: var(--sand-2) !important;
}

/* potvrzení zaplaceno (místo tlačítka) */
.nj-mybooking-section .tr-pay-status {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	background: #e7f5ec;
	border: 1px solid #bfe3cc;
	border-radius: var(--r-btn);
	padding: 12px 16px;
	font-size: .95rem;
	font-weight: 600;
	color: var(--green);
}
.nj-mybooking-section .tr-pay-icon {
	font-size: 1.05rem;
	line-height: 1;
}

/* hotový check-in (text místo tlačítka) */
.nj-mybooking-section p.tr-mb-ok {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--green);
}

/* odkaz na .ics kalendář — decentní */
.nj-mybooking-section .tr-mb-actions p a {
	color: var(--accent-deep);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
}
.nj-mybooking-section .tr-mb-actions p a:hover { color: var(--navy); }

/* chybová hláška (neplatný odkaz / nenalezeno) */
.nj-mybooking-section .tr-mb-error {
	max-width: 720px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--line);
	border-left: 4px solid var(--coral);
	border-radius: var(--r-card);
	box-shadow: var(--shadow);
	padding: 22px 26px;
	color: var(--coral);
	font-size: 1rem;
}

/* ---- responsive ---- */
@media (max-width: 600px) {
	.nj-mybooking-section .tr-mb-wrap { padding: 24px 20px 26px; }
	.nj-mybooking-section .tr-booking-table th { width: 46%; }
	.nj-mybooking-section .tr-pay-btn,
	.nj-mybooking-section .tr-btn-submit,
	.nj-mybooking-section .tr-mb-checkin { width: 100%; min-width: 0; }
}
