/*
 * PR Rentals — checkout (presentation only).
 * Styles the Guesty Direct Booking plugin's Guesty + Stripe checkout to match Final Design / Checkout.
 * No payment logic. The card field is a Stripe Elements mount (.prr-stripe-field
 * / .StripeElement); Stripe's iframe renders the PAN/expiry/CVC. Brand values are
 * theme.json tokens via var(--wp--preset|custom--*); payment-brand marks use
 * their literal brand colors.
 */

.prr-checkout {
	background: var(--wp--preset--color--sand);
}

/* ============================================================
   MINIMAL HEADER
   ============================================================ */
.prr-co-header {
	background: var(--wp--preset--color--white);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.prr-co-header__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 16px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.prr-co-header__logo img {
	height: 34px;
	width: auto;
	display: block;
}
.prr-co-header__secure {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--slate);
}
.prr-co-header__secure svg {
	width: 15px;
	height: 15px;
	stroke: var(--wp--preset--color--success);
}

/* ============================================================
   FORM STATE
   ============================================================ */
.prr-co-form {
	max-width: 1120px;
	margin: 0 auto;
	padding: 34px 28px 72px;
}
.prr-co-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 22px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wp--preset--color--slate);
	text-decoration: none;
	transition: color 0.15s ease;
}
.prr-co-back:hover {
	color: var(--wp--preset--color--ocean);
}
.prr-co-back svg {
	width: 15px;
	height: 15px;
	stroke: currentColor;
}
.prr-co-h1 {
	margin: 0 0 30px;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 34px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ocean);
}
.prr-co-grid {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 48px;
	align-items: start;
}
.prr-co-main {
	min-width: 0;
}

/* Cards + steps */
.prr-co-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
	padding: 28px;
	margin-bottom: 20px;
}
.prr-co-step {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 22px;
}
.prr-co-step--split {
	justify-content: space-between;
}
.prr-co-step__lead {
	display: flex;
	align-items: center;
	gap: 11px;
}
.prr-co-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--wp--preset--color--ocean);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13px;
	font-weight: 700;
}
.prr-co-step__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 19px;
	font-weight: 600;
	color: var(--wp--preset--color--ocean);
}

/* Fields */
.prr-co-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.prr-co-fields--card {
	grid-template-columns: 1fr 150px;
	gap: 14px;
	margin-top: 14px;
}
.prr-co-field {
	min-width: 0;
}
.prr-co-field label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 12px;
	font-weight: 600;
	color: var(--wp--preset--color--slate-dark);
}
.prr-co-field input {
	width: 100%;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 15px;
	color: var(--wp--preset--color--charcoal);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border-warm);
	border-radius: 10px;
	padding: 13px 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.prr-co-field input:focus {
	outline: none;
	border-color: var(--wp--preset--color--ocean);
	box-shadow: 0 0 0 3px rgba(12, 58, 91, 0.12);
}

/* Card brand marks (card only — no PayPal / wallets) */
.prr-co-cardrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.prr-co-cardrow__label {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 12px;
	font-weight: 600;
	color: var(--wp--preset--color--slate-dark);
}
.prr-co-brands {
	display: flex;
	align-items: center;
	gap: 6px;
}
.prr-cardbrand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 22px;
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #fff;
}
.prr-cardbrand--visa {
	background: linear-gradient(135deg, #1a1f71, #2230a0);
}
.prr-cardbrand--mc {
	background: #fff;
	border: 1px solid #e6dece;
	gap: 0;
}
.prr-cardbrand--mc span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}
.prr-cardbrand--mc span:first-child {
	background: #eb001b;
	opacity: 0.9;
}
.prr-cardbrand--mc span:last-child {
	background: #f79e1b;
	opacity: 0.9;
	margin-left: -4px;
}
.prr-cardbrand--amex {
	background: #016fd0;
	font-size: 6.5px;
}
.prr-cardbrand--disc {
	background: #ff6000;
	font-size: 6px;
}

/* ---- Stripe Elements mount (theme renders no card input) ---- */
.prr-stripe-field {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 14px 15px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border-warm);
	border-radius: 11px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.prr-stripe-field__icon svg {
	width: 20px;
	height: 20px;
	stroke: var(--wp--preset--color--slate);
}
.prr-stripe-field__hint {
	flex: 1;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 15px;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--slate-faint);
}
.prr-stripe-field__brand {
	flex-shrink: 0;
}
/* Stripe applies these classes to the mounted element. */
.prr-stripe-field:focus-within,
.prr-stripe-field.StripeElement--focus {
	border-color: var(--wp--preset--color--ocean);
	box-shadow: 0 0 0 3px rgba(12, 58, 91, 0.12);
}
.prr-stripe-field.StripeElement--invalid {
	border-color: #b42318;
}

.prr-co-stripe-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 18px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--wp--preset--color--divider);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--wp--preset--color--slate-faint);
}
.prr-co-stripe-note svg {
	width: 20px;
	height: 20px;
	stroke: var(--wp--preset--color--slate-faint);
	flex-shrink: 0;
}

/* Pay button + trust */
.prr-co-pay {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 18px;
	border: none;
	border-radius: 13px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ocean);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 16.5px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--wp--preset--shadow--button);
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.prr-co-pay svg {
	width: 18px;
	height: 18px;
	stroke: var(--wp--preset--color--ocean);
}
.prr-co-pay:hover {
	background: var(--wp--preset--color--gold-hover);
	transform: translateY(-1px);
	box-shadow: var(--wp--preset--shadow--button-hover);
}
.prr-co-pay:active {
	background: var(--wp--preset--color--gold-active);
	transform: translateY(0);
}
.prr-co-trustrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 18px;
	flex-wrap: wrap;
}
.prr-co-trust {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 12.5px;
	font-weight: 500;
	color: var(--wp--preset--color--slate);
}
.prr-co-trust svg {
	width: 14px;
	height: 14px;
	stroke: var(--wp--preset--color--success);
}

/* ============================================================
   ORDER SUMMARY
   ============================================================ */
.prr-co-rail {
	position: sticky;
	top: 28px;
}
.prr-co-summary {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border-warm);
	border-radius: 18px;
	padding: 22px;
	box-shadow: 0 14px 36px rgba(12, 58, 91, 0.1);
}
.prr-co-summary__listing {
	display: flex;
	gap: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--wp--preset--color--divider);
}
.prr-co-summary__thumb {
	width: 96px;
	height: 80px;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
}
.prr-co-summary__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.prr-co-summary__hood {
	margin-bottom: 6px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}
.prr-co-summary__title {
	margin-bottom: 6px;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 16px;
	font-weight: 600;
	color: var(--wp--preset--color--ocean);
}
.prr-co-summary__rating {
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 12px;
	font-weight: 600;
	color: var(--wp--preset--color--charcoal);
}
.prr-co-summary__rating svg {
	width: 12px;
	height: 12px;
	fill: var(--wp--preset--color--gold);
}
.prr-co-summary__rating span {
	color: var(--wp--preset--color--slate-faint);
	font-weight: 500;
}
.prr-co-summary__facts {
	display: flex;
	flex-direction: column;
	gap: 13px;
	padding: 18px 0;
	border-bottom: 1px solid var(--wp--preset--color--divider);
}
.prr-co-summary__fact {
	display: flex;
	align-items: center;
	gap: 11px;
}
.prr-co-summary__fact svg {
	width: 17px;
	height: 17px;
	stroke: var(--wp--preset--color--slate);
	flex-shrink: 0;
}
.prr-co-summary__faclabel {
	display: block;
	margin-bottom: 4px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}
.prr-co-summary__facvalue {
	display: block;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14px;
	font-weight: 500;
	color: var(--wp--preset--color--charcoal);
}
.prr-co-summary__lines {
	display: flex;
	flex-direction: column;
	gap: 11px;
	padding: 18px 0;
	border-bottom: 1px solid var(--wp--preset--color--divider);
}
.prr-co-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14px;
	color: var(--wp--preset--color--slate-dark);
}
.prr-co-line__amt {
	font-weight: 500;
	color: var(--wp--preset--color--charcoal);
}
.prr-co-line__fee {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.prr-co-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0 4px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 17px;
	font-weight: 700;
	color: var(--wp--preset--color--ocean);
}

/* ============================================================
   CONFIRMATION STATE
   ============================================================ */
.prr-co-confirm {
	max-width: 600px;
	margin: 0 auto;
	padding: 64px 28px 80px;
}
.prr-co-confirm[hidden] {
	display: none;
}
.prr-co-confirm__card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 22px;
	padding: 44px 40px;
	text-align: center;
	box-shadow: 0 18px 44px rgba(12, 58, 91, 0.1);
}
.prr-co-confirm__check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: var(--wp--preset--color--success-soft);
}
.prr-co-confirm__check svg {
	width: 38px;
	height: 38px;
	stroke: var(--wp--preset--color--success);
}
.prr-co-confirm__eyebrow {
	margin: 0 0 14px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--success);
}
.prr-co-confirm__h1 {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ocean);
}
.prr-co-confirm__lead {
	max-width: 400px;
	margin: 0 auto 28px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--wp--preset--color--slate);
}
.prr-co-confirm__details {
	margin-bottom: 24px;
	padding: 22px;
	text-align: left;
	background: var(--wp--preset--color--sand);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
}
.prr-co-confirm__listing {
	display: flex;
	gap: 14px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.prr-co-confirm__thumb {
	width: 64px;
	height: 58px;
	border-radius: 11px;
	overflow: hidden;
	flex-shrink: 0;
}
.prr-co-confirm__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.prr-co-confirm__name {
	margin-bottom: 5px;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 16px;
	font-weight: 600;
	color: var(--wp--preset--color--ocean);
}
.prr-co-confirm__loc {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13px;
	color: var(--wp--preset--color--slate);
}
.prr-co-confirm__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 16px 0;
}
.prr-co-confirm__label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}
.prr-co-confirm__value {
	display: block;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--ocean);
}
.prr-co-confirm__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid var(--wp--preset--color--border);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--ocean);
}
.prr-co-confirm__actions {
	display: flex;
	gap: 12px;
}
.prr-co-confirm__btn {
	flex: 1;
	padding: 15px;
	border-radius: 11px;
	text-align: center;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}
.prr-co-confirm__btn--solid {
	color: var(--wp--preset--color--ocean);
	background: var(--wp--preset--color--gold);
	border: none;
	box-shadow: var(--wp--preset--shadow--button);
}
.prr-co-confirm__btn--solid:hover {
	background: var(--wp--preset--color--gold-hover);
}
.prr-co-confirm__btn--outline {
	color: var(--wp--preset--color--ocean);
	background: transparent;
	border: 1.5px solid var(--wp--preset--color--ocean);
}
.prr-co-confirm__btn--outline:hover {
	background: var(--wp--preset--color--ocean);
	color: var(--wp--preset--color--sand);
}
.prr-co-confirm__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 22px 0 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 12.5px;
	color: var(--wp--preset--color--slate-faint);
}
.prr-co-confirm__secure svg {
	width: 14px;
	height: 14px;
	stroke: var(--wp--preset--color--slate-faint);
}

/* ============================================================
   FOCUS STATES
   ============================================================ */
.prr-co-pay:focus-visible,
.prr-co-back:focus-visible,
.prr-co-confirm__btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
	.prr-co-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.prr-co-rail {
		position: static;
	}
}
@media (max-width: 520px) {
	.prr-co-fields,
	.prr-co-fields--card {
		grid-template-columns: 1fr;
	}
	.prr-co-confirm__card {
		padding: 32px 22px;
	}
	.prr-co-confirm__actions {
		flex-direction: column;
	}
}
@media (prefers-reduced-motion: reduce) {
	.prr-co-pay,
	.prr-co-field input,
	.prr-stripe-field {
		transition: none;
	}
}
