/**
 * Cart, HOLD countdown and 4-step checkout styles (M2).
 *
 * Kept deliberately small: it extends the main abm-frontend design language.
 */

/* Cart chip (shortcode abm_cart). */
.abm-cart-chip {
	display: inline-block;
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 90;
	background: #1f6f5f;
	color: #fff;
	border-radius: 999px;
	padding: .5rem .9rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
}

.abm-cart-chip a {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.abm-cart-chip .abm-cart-count {
	display: inline-block;
	min-width: 1.3rem;
	margin-left: .35rem;
	padding: 0 .35rem;
	border-radius: 999px;
	background: #ffc857;
	color: #123;
	font-size: .78rem;
	text-align: center;
}

.abm-cart-chip .abm-cart-clear {
	margin-left: .5rem;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 1.05rem;
	line-height: 1;
	cursor: pointer;
}

/* Add-to-cart panel inside the property booking form. */
.abm-cart-field {
	display: flex;
	gap: .75rem;
	align-items: center;
	padding: .6rem 0;
}

.abm-cart-field[hidden] {
	display: none;
}

.abm-cart-add-note {
	font-size: .9rem;
	color: #1f6f5f;
}

/* Checkout wizard */
.abm-checkout {
	max-width: 860px;
	margin: 0 auto;
}

.abm-checkout-title {
	margin: 0 0 1rem;
	font-size: 1.4rem;
}

.abm-checkout-steps {
	margin-bottom: 1.4rem;
}

.abm-checkout-steps ol {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.abm-checkout-steps li {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .45rem .85rem;
	border-radius: 999px;
	background: #eef2f1;
	color: #68748a;
	font-size: .85rem;
	font-weight: 600;
}

.abm-checkout-steps li span {
	display: inline-grid;
	place-items: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: #cfd8d5;
	color: #fff;
	font-size: .78rem;
}

.abm-checkout-steps li.is-active,
.abm-checkout-steps li.is-active span {
	background: #1f6f5f;
	color: #fff;
}

.abm-checkout-pane {
	animation: abm-checkout-fade .2s ease-out;
}

@keyframes abm-checkout-fade {
	from { opacity: .35; transform: translateY(4px); }
	to   { opacity: 1; transform: none; }
}

.abm-checkout-summary-card {
	background: #f4f7f6;
	border: 1px solid #e2e9e7;
	border-radius: 10px;
	padding: .8rem 1rem;
	margin-bottom: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	align-items: center;
}

.abm-checkout-property {
	font-weight: 700;
}

.abm-checkout-dates,
.abm-checkout-expiry {
	color: #4c5866;
	font-size: .92rem;
}

.abm-checkout-expiry strong {
	color: #b45309;
	font-variant-numeric: tabular-nums;
}

.abm-checkout-rooms {
	border: 1px solid #e2e9e7;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 1rem;
}

.abm-checkout-room-row {
	display: grid;
	grid-template-columns: 1fr auto auto auto;
	gap: .75rem;
	align-items: center;
	padding: .8rem 1rem;
	border-bottom: 1px solid #eef2f1;
}

.abm-checkout-room-row:last-child {
	border-bottom: 0;
}

.abm-checkout-room-name {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	font-size: .85rem;
	color: #68748a;
}

.abm-checkout-qty {
	width: 4.4rem;
	padding: .35rem .45rem;
	border: 1px solid #cfd8d5;
	border-radius: 8px;
}

.abm-checkout-money {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.abm-checkout-remove {
	border: 0;
	background: transparent;
	color: #b45309;
	cursor: pointer;
	text-decoration: underline;
}

.abm-checkout-add-room {
	border: 1px dashed #cfd8d5;
	border-radius: 10px;
	padding: .6rem 1rem;
	margin-bottom: 1rem;
}

.abm-checkout-add-room summary {
	cursor: pointer;
	font-weight: 600;
	margin-bottom: .55rem;
}

.abm-checkout-add-room select,
.abm-checkout-add-layout input {
	padding: .4rem .5rem;
	border: 1px solid #cfd8d5;
	border-radius: 8px;
	margin-right: .6rem;
	margin-bottom: .5rem;
	max-width: 100%;
}

.abm-checkout-totals {
	border-top: 1px solid #e2e9e7;
	margin-top: .6rem;
	padding-top: .6rem;
}

.abm-checkout-total-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .25rem 0;
}

.abm-checkout-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .75rem;
	margin-top: 1.1rem;
}

.abm-checkout-link {
	border: 0;
	background: transparent;
	color: #68748a;
	text-decoration: underline;
	cursor: pointer;
}

.abm-checkout-guests {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: .9rem;
}

.abm-checkout-guest {
	display: flex;
	align-items: center;
	gap: .7rem;
	font-weight: 600;
}

.abm-checkout-stepper {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	border: 1px solid #cfd8d5;
	border-radius: 999px;
	padding: .2rem .4rem;
}

.abm-checkout-stepper button {
	border: 0;
	background: transparent;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	color: #1f6f5f;
	width: 1.6rem;
	height: 1.6rem;
}

.abm-checkout-stepper strong {
	min-width: 1.6rem;
	text-align: center;
}

.abm-checkout-participants .abm-participant-row {
	display: grid;
	grid-template-columns: auto 1fr 1fr;
	gap: .5rem;
	align-items: center;
	padding: .45rem 0;
}

.abm-checkout-participants .abm-participant-row input {
	padding: .4rem .5rem;
	border: 1px solid #cfd8d5;
	border-radius: 8px;
	width: 100%;
}

.abm-checkout-service-card input {
	accent-color: #1f6f5f;
}

.abm-checkout-payment {
	margin-bottom: .8rem;
}

.abm-checkout-success {
	text-align: center;
	padding: 1.25rem;
}

.abm-checkout-success h3 {
	color: #1f6f5f;
}

.abm-checkout-success ul {
	list-style: none;
	padding: 0;
	margin: .8rem 0;
}

.abm-checkout-success .abm-button {
	display: inline-block;
	margin-top: .6rem;
}

.abm-checkout-busy {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, .78);
	color: #1f2937;
	font-weight: 600;
}

.abm-checkout-empty {
	background: #f4f7f6;
	border: 1px dashed #cfd8d5;
	border-radius: 10px;
	padding: 2rem;
	text-align: center;
	color: #4c5866;
}

@media (max-width: 640px) {
	.abm-checkout-room-row {
		grid-template-columns: 1fr auto;
	}
}