/* ---------- "Proceed to Checkout" button inside the cart panel ---------- */

.rmm-checkout-btn {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 13px 18px;
	background: #E4650A;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.12s;
}

.rmm-checkout-btn:hover {
	background: #B84B04;
}

.rmm-checkout-btn:active {
	transform: scale(0.98);
}

/* ---------- Checkout modal ---------- */

.rmm-checkout-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(20, 10, 8, 0.5);
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.rmm-checkout-backdrop.rmm-open {
	display: flex;
}

.rmm-checkout-modal {
	background: #fff;
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.rmm-checkout-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid #eee;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;
}

.rmm-checkout-head h3 {
	margin: 0;
	font-size: 17px;
	color: #222;
}

.rmm-checkout-close,
.rmm-checkout-back {
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: #555;
	padding: 4px;
	line-height: 1;
}

.rmm-checkout-body {
	padding: 18px;
}

.rmm-co-field {
	margin-bottom: 16px;
}

.rmm-co-field label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	color: #777;
	margin-bottom: 6px;
}

.rmm-co-field input[type="text"],
.rmm-co-field input[type="tel"],
.rmm-co-field input[type="date"],
.rmm-co-field textarea {
	width: 100%;
	border: 1.5px solid #e2e2e2;
	border-radius: 10px;
	padding: 11px 12px;
	font-size: 14px;
	font-family: inherit;
	color: #222;
	box-sizing: border-box;
}

.rmm-co-field input:focus,
.rmm-co-field textarea:focus {
	outline: none;
	border-color: #E4650A;
}

.rmm-co-toggle {
	display: flex;
	gap: 8px;
}

.rmm-co-toggle-btn {
	flex: 1;
	padding: 11px 0;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	border: 1.5px solid #e2e2e2;
	background: #fff;
	color: #222;
	cursor: pointer;
}

.rmm-co-toggle-btn.active {
	border-color: #E4650A;
	background: #E4650A;
	color: #fff;
}

.rmm-co-asap-note {
	margin-top: 8px;
	font-size: 12.5px;
	color: #777;
}

.rmm-co-schedule {
	margin-top: 10px;
	display: grid;
	gap: 8px;
}

.rmm-co-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rmm-co-slot-chip {
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	border: 1.5px solid #e2e2e2;
	background: #fff;
	color: #222;
	cursor: pointer;
}

.rmm-co-slot-chip.active {
	border-color: #E4650A;
	background: #E4650A;
	color: #fff;
}

.rmm-co-error {
	color: #E4650A;
	font-size: 12.5px;
	font-weight: 600;
	min-height: 1px;
}

.rmm-checkout-foot {
	padding: 14px 18px 18px;
	border-top: 1px solid #eee;
}

.rmm-co-primary-btn {
	width: 100%;
	background: #E4650A;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 14px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.rmm-co-primary-btn:disabled {
	background: #e2c4bf;
	cursor: not-allowed;
}

/* review + pay step */

.rmm-co-summary-list {
	display: grid;
	gap: 10px;
	margin-bottom: 14px;
}

.rmm-co-summary-row {
	display: flex;
	justify-content: space-between;
	font-size: 13.5px;
	color: #333;
}

.rmm-co-summary-row .rmm-co-si-name {
	font-weight: 600;
}

.rmm-co-summary-row .rmm-co-si-meta {
	font-size: 11.5px;
	color: #999;
	display: block;
}

.rmm-co-totals {
	border-top: 1px dashed #eee;
	padding-top: 10px;
	display: grid;
	gap: 6px;
}

.rmm-co-totals .rmm-co-total-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #777;
}

.rmm-co-totals .rmm-co-total-row.rmm-co-grand {
	font-size: 15px;
	font-weight: 800;
	color: #222;
	border-top: 1px dashed #eee;
	padding-top: 8px;
	margin-top: 2px;
}

.rmm-co-totals .rmm-co-total-row.rmm-co-grand span:last-child {
	color: #E4650A;
}

.rmm-co-lock-note {
	margin-top: 14px;
	display: flex;
	gap: 8px;
	font-size: 11.5px;
	color: #7a5300;
	background: #fff8e6;
	border: 1px solid #ffe4a3;
	border-radius: 10px;
	padding: 10px 12px;
	line-height: 1.4;
}

/* confirmation step */

.rmm-co-confirm-body {
	text-align: center;
	padding-top: 30px;
}

.rmm-co-confirm-tick {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #3F6B3D;
	color: #fff;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
}

.rmm-co-confirm-body h3 {
	margin: 0 0 6px;
	font-size: 19px;
	color: #222;
}

.rmm-co-confirm-number {
	font-size: 13px;
	color: #999;
	margin-bottom: 18px;
}

.rmm-co-confirm-card {
	text-align: left;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 14px 16px;
}

.rmm-co-confirm-card .rmm-co-total-row {
	display: flex;
	justify-content: space-between;
	font-size: 13.5px;
	color: #444;
	margin-bottom: 8px;
}

.rmm-co-confirm-card .rmm-co-total-row:last-child {
	margin-bottom: 0;
}

@media (max-width: 500px) {
	.rmm-checkout-modal {
		max-height: 94vh;
	}
}
