/* MRM checkout — payment methods & Arabic checkout polish */

.mrm-payment-info {
	margin-top: 12px;
	padding: 16px;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	background: #fafafa;
}

.mrm-payment-info__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
}

.mrm-payment-info__body {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}

.mrm-payment-info__details {
	flex: 1 1 220px;
	font-size: 14px;
	line-height: 1.7;
	color: #333;
}

.mrm-payment-info__details ul,
.mrm-payment-info__details ol {
	margin: 8px 0;
	padding-right: 18px;
	padding-left: 0;
}

.mrm-payment-info__details li {
	margin-bottom: 6px;
}

.mrm-payment-info__details em {
	color: #777;
	font-size: 0.92em;
}

/* Wallet-style account cards (bank transfer / wallets) */
.mrm-pay-accounts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

.mrm-pay-account {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.mrm-pay-account__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(135deg, #152033 0%, #1f2d44 100%);
	color: #fff;
}

.mrm-pay-account__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(248, 137, 12, 0.95);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.mrm-pay-account__bank {
	font-size: 14px;
	font-weight: 700;
}

.mrm-pay-account__rows {
	padding: 4px 0;
}

.mrm-pay-row {
	display: grid;
	grid-template-columns: 88px 1fr auto;
	gap: 8px;
	align-items: center;
	padding: 10px 14px;
	border-top: 1px solid #f1f3f5;
}

.mrm-pay-row:first-child {
	border-top: 0;
}

.mrm-pay-row__label {
	font-size: 12px;
	color: #6b7280;
	font-weight: 600;
}

.mrm-pay-row__value {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	word-break: break-word;
}

.mrm-pay-row--number .mrm-pay-row__value {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 15px;
	letter-spacing: 0.03em;
	color: #0f172a;
}

.mrm-pay-copy {
	appearance: none;
	border: 1px solid #e5e7eb;
	background: #f8fafc;
	color: #334155;
	border-radius: 8px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1.2;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mrm-pay-copy:hover {
	background: #fff6eb;
	border-color: #fcd9a8;
	color: #a35a08;
}

.mrm-pay-copy.is-copied {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #047857;
}

.mrm-payment-info__notes {
	margin-top: 4px;
	font-size: 13.5px;
	line-height: 1.7;
	color: #374151;
}

.mrm-payment-info__notes p,
.mrm-payment-info__notes ol,
.mrm-payment-info__notes ul {
	margin: 8px 0;
}

.mrm-payment-info__notes ol,
.mrm-payment-info__notes ul {
	padding-right: 18px;
	padding-left: 0;
}

/* E-wallet / gateway logos at checkout */
.st-checkout-page .payment-item img[src*="payment-ewallet"],
.st-checkout-page .gateway-item img[src*="payment-ewallet"],
.payment-select img[src*="payment-ewallet"] {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 8px;
	background: #f3f3f3;
}

.mrm-payment-info__qr {
	flex: 0 0 auto;
	text-align: center;
}

.mrm-payment-info__qr img {
	display: block;
	width: 140px;
	height: 140px;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #eee;
	padding: 6px;
}

.mrm-payment-info__qr-hint {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	color: #777;
}

/* Checkout titles RTL */
.st-checkout-page .title,
.st-checkout-page .info-heading,
.st-checkout-page .payment-form .title {
	font-weight: 700;
}

.st-checkout-page .payment-select .payment-title,
.st-checkout-page .gateway-name {
	font-size: 14px;
}

/* Payment select — selected value RTL (list is already fine; closed button was LTR) */
html[dir="rtl"] .payment-select .btn-select,
body.rtl .payment-select .btn-select,
.rtl .payment-select .btn-select {
	direction: rtl;
	text-align: right;
	padding-left: 40px;
	padding-right: 16px;
}

html[dir="rtl"] .payment-select .btn-select::after,
body.rtl .payment-select .btn-select::after,
.rtl .payment-select .btn-select::after {
	right: auto;
	left: 16px;
}

html[dir="rtl"] .payment-select .btn-select li,
body.rtl .payment-select .btn-select li,
.rtl .payment-select .btn-select li,
html[dir="rtl"] .payment-select #input-payment li,
body.rtl .payment-select #input-payment li,
.rtl .payment-select #input-payment li {
	float: right;
	justify-content: flex-start;
	width: 100%;
	box-sizing: border-box;
}

html[dir="rtl"] .payment-select .btn-select .img_pay,
body.rtl .payment-select .btn-select .img_pay,
.rtl .payment-select .btn-select .img_pay {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
}

html[dir="rtl"] .payment-select .btn-select span,
body.rtl .payment-select .btn-select span,
.rtl .payment-select .btn-select span,
html[dir="rtl"] .payment-select #input-payment span,
body.rtl .payment-select #input-payment span,
.rtl .payment-select #input-payment span {
	margin-left: 0;
	margin-right: 10px;
}

html[dir="rtl"] .payment-select .btn-select:hover li,
body.rtl .payment-select .btn-select:hover li,
.rtl .payment-select .btn-select:hover li {
	margin-left: 0;
	margin-right: 0;
}

@media (min-width: 700px) {
	.mrm-pay-accounts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.mrm-payment-info__body {
		flex-direction: column;
		align-items: stretch;
	}

	.mrm-payment-info__qr {
		align-self: center;
	}

	.mrm-pay-row {
		grid-template-columns: 1fr auto;
		grid-template-rows: auto auto;
	}

	.mrm-pay-row__label {
		grid-column: 1 / -1;
	}
}

/*
 * Checkout name fields: Form Builder floats col-6 left → First name LEFT, Last RIGHT.
 * Arabic users read right→left and fill the right field first. Force visual order:
 * Last name LEFT, First name RIGHT (reading start).
 */
.billing_information .wb_row {
	display: flex !important;
	flex-wrap: wrap;
	/* Lock physical order so flex `order` is predictable even if page is dir=rtl. */
	direction: ltr;
	margin-left: -15px;
	margin-right: -15px;
}

.billing_information .wb_row > div {
	float: none !important;
	width: 100%;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
	direction: rtl;
	text-align: right;
}

.billing_information .wb_row > .col-6 {
	width: 50% !important;
	max-width: 50%;
	flex: 0 0 50%;
}

.billing_information .wb_row > div:has(input[name="st_last_name"]) {
	order: 1;
}

.billing_information .wb_row > div:has(input[name="st_first_name"]) {
	order: 2;
}

.billing_information .wb_row > div:has(input[name="st_email"]) {
	order: 3;
}

.billing_information .wb_row > div:has(input[name="st_phone"]) {
	order: 4;
}

.billing_information .wb_row > div:has([name="st_note"]) {
	order: 20;
	flex: 0 0 100%;
	width: 100% !important;
	max-width: 100%;
}

@media (max-width: 575px) {
	.billing_information .wb_row > .col-6 {
		width: 100% !important;
		max-width: 100%;
		flex: 0 0 100%;
	}

	.billing_information .wb_row > div:has(input[name="st_first_name"]) {
		order: 1;
	}

	.billing_information .wb_row > div:has(input[name="st_last_name"]) {
		order: 2;
	}
}

/* Hide address / apt / postal on booking form (temporary product decision). */
.st-checkout-page .form-group:has([name="st_address"]),
.st-checkout-page .form-group:has([name="st_address2"]),
.st-checkout-page .form-group:has([name="st_zip_code"]),
.st-checkout-page .form-group:has([name="st_zip"]),
.billing_information .form-group:has([name="st_address"]),
.billing_information .form-group:has([name="st_address2"]),
.billing_information .form-group:has([name="st_zip_code"]),
.billing_information .wb_col:has([name="st_address"]),
.billing_information .wb_col:has([name="st_address2"]),
.billing_information .wb_col:has([name="st_zip_code"]),
.billing_information .wb_col:has([name*="address"]),
.billing_information .wb_col:has([name*="zip"]),
.billing_information .wb_col:has([name*="postal"]) {
	display: none !important;
}

/* Transfer booking on shared /checkout/ — hide coupons; polish summary */
body.mrm-checkout-transfer .coupon-section {
	display: none !important;
}

body.mrm-checkout-transfer .mrm-tf-cart .title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 6px;
}

body.mrm-checkout-transfer .mrm-tf-cart .address {
	margin: 0;
	color: #5c6b7a;
	font-size: 13px;
}

body.mrm-checkout-transfer .total-section .payment-amount .value {
	color: #C9A24D;
	font-weight: 800;
	font-size: 1.15em;
}

/* Booking success page (checkout-modal-success) */
body.mrm-booking-success .booking-success-notice {
	background: #fff;
	border: 1px solid #e8edf3;
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	margin-bottom: 28px;
}

body.mrm-booking-success .booking-success-notice .success-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(34, 197, 94, 0.12);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #16a34a;
	font-size: 28px;
}

body.mrm-booking-success .booking-success-notice .notice-success .line1 {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0B1F3A;
	margin: 0 0 6px;
}

body.mrm-booking-success .booking-success-notice .notice-success .line2 {
	margin: 0;
	color: #5c6b7a;
}

body.mrm-booking-success .booking-success-notice .booking-info-detail {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.mrm-booking-success .booking-success-notice .booking-info-detail li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #eef2f7;
	font-size: 14px;
	color: #152033;
}

body.mrm-booking-success .booking-success-notice .booking-info-detail li span {
	color: #5c6b7a;
	font-weight: 600;
}

body.mrm-booking-success .cart-info.st-border-radius {
	background: #fff;
	border: 1px solid #e8edf3;
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.mrm-booking-success .mrm-tf-cart--success .title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 6px;
}

body.mrm-booking-success .total-section .payment-amount .value {
	color: #C9A24D;
	font-weight: 800;
	font-size: 1.15em;
}

body.mrm-booking-success.stt-menu-transparent #st-content-wrapper {
	padding-top: 0 !important;
}

/* ------------------------------------------------------------------
 * Booking summary card — Arabic RTL layout
 * Traveler uses float:left/right on labels which breaks in RTL
 * (Email/Phone look like ": Emailvalue", date label on the wrong side).
 * ------------------------------------------------------------------ */
body.rtl .st-checkout-page .cart-info,
body.rtl.mrm-booking-success .cart-info {
	direction: rtl;
	text-align: right;
}

body.rtl .st-checkout-page .cart-info .service-section,
body.rtl.mrm-booking-success .cart-info .service-section {
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-start;
	gap: 16px;
}

body.rtl .st-checkout-page .cart-info .service-section .service-left,
body.rtl.mrm-booking-success .cart-info .service-section .service-left {
	float: none !important;
	margin: 0 !important;
	flex: 0 0 110px;
}

body.rtl .st-checkout-page .cart-info .service-section .service-right,
body.rtl.mrm-booking-success .cart-info .service-section .service-right {
	float: none !important;
	flex: 1 1 auto;
	max-width: none;
	text-align: right;
}

body.rtl .st-checkout-page .cart-info .room-type,
body.rtl.mrm-booking-success .cart-info .room-type {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	text-align: right;
}

body.rtl .st-checkout-page .cart-info .info-section ul li,
body.rtl.mrm-booking-success .cart-info .info-section ul li,
body.rtl .st-checkout-page .cart-info .total-section ul li,
body.rtl.mrm-booking-success .cart-info .total-section ul li,
body.rtl .st-checkout-page .cart-info .price-details .item,
body.rtl.mrm-booking-success .cart-info .price-details .item,
body.rtl .st-checkout-page .cart-info .info-form ul li,
body.rtl.mrm-booking-success .info-form ul li {
	display: flex !important;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	overflow: visible !important;
	float: none !important;
	text-align: right;
}

/* ------------------------------------------------------------------
 * Booking summary — label : value (adjacent, RTL-safe)
 * Avoid space-between + float which glued LTR values onto Arabic labels.
 * ------------------------------------------------------------------ */
html[dir="rtl"] .st-checkout-page .cart-info .info-section ul li.mrm-kv-row,
body.rtl .st-checkout-page .cart-info .info-section ul li.mrm-kv-row,
html[dir="rtl"].mrm-booking-success .cart-info .info-section ul li.mrm-kv-row,
body.rtl.mrm-booking-success .cart-info .info-section ul li.mrm-kv-row {
	display: block !important;
	float: none !important;
	overflow: visible !important;
	text-align: right !important;
	justify-content: unset !important;
}

html[dir="rtl"] .st-checkout-page .cart-info .info-section ul li.mrm-kv-row .mrm-kv,
body.rtl .st-checkout-page .cart-info .info-section ul li.mrm-kv-row .mrm-kv,
html[dir="rtl"].mrm-booking-success .cart-info .info-section ul li.mrm-kv-row .mrm-kv,
body.rtl.mrm-booking-success .cart-info .info-section ul li.mrm-kv-row .mrm-kv {
	display: inline-flex !important;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-start;
	gap: 0.45em;
	max-width: 100%;
	direction: rtl;
}

html[dir="rtl"] .st-checkout-page .cart-info .info-section ul li.mrm-kv-row .label,
body.rtl .st-checkout-page .cart-info .info-section ul li.mrm-kv-row .label,
html[dir="rtl"].mrm-booking-success .cart-info .info-section ul li.mrm-kv-row .label,
body.rtl.mrm-booking-success .cart-info .info-section ul li.mrm-kv-row .label {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	flex: 0 0 auto;
	padding: 0 !important;
	margin: 0 !important;
	text-align: right !important;
	white-space: nowrap;
	direction: rtl;
	unicode-bidi: isolate;
}

html[dir="rtl"] .st-checkout-page .cart-info .info-section ul li.mrm-kv-row .value,
body.rtl .st-checkout-page .cart-info .info-section ul li.mrm-kv-row .value,
html[dir="rtl"].mrm-booking-success .cart-info .info-section ul li.mrm-kv-row .value,
body.rtl.mrm-booking-success .cart-info .info-section ul li.mrm-kv-row .value {
	float: none !important;
	width: auto !important;
	max-width: 100% !important;
	flex: 0 1 auto;
	padding: 0 !important;
	margin: 0 !important;
	text-align: left !important;
	direction: ltr !important;
	unicode-bidi: isolate;
	word-break: break-word;
}

html[dir="rtl"] .st-checkout-page .cart-info .info-section ul li.mrm-kv-row .mrm-kv-edit,
body.rtl .st-checkout-page .cart-info .info-section ul li.mrm-kv-row .mrm-kv-edit {
	flex: 0 0 auto;
	margin-inline-start: 6px;
	font-size: 12px !important;
	white-space: nowrap;
}

html[dir="rtl"] .st-checkout-page .cart-info .info-section ul li.ad-info,
body.rtl .st-checkout-page .cart-info .info-section ul li.ad-info,
html[dir="rtl"].mrm-booking-success .cart-info .info-section ul li.ad-info,
body.rtl.mrm-booking-success .cart-info .info-section ul li.ad-info {
	display: block !important;
}

html[dir="rtl"] .st-checkout-page .cart-info .info-section ul li.ad-info > ul,
body.rtl .st-checkout-page .cart-info .info-section ul li.ad-info > ul,
html[dir="rtl"].mrm-booking-success .cart-info .info-section ul li.ad-info > ul,
body.rtl.mrm-booking-success .cart-info .info-section ul li.ad-info > ul {
	background: #f5f7fa;
	border-radius: 10px;
	padding: 12px 14px;
	width: 100%;
}

html[dir="rtl"] .st-checkout-page .cart-info .info-section ul li.ad-info > ul > li.mrm-kv-row,
body.rtl .st-checkout-page .cart-info .info-section ul li.ad-info > ul > li.mrm-kv-row,
html[dir="rtl"].mrm-booking-success .cart-info .info-section ul li.ad-info > ul > li.mrm-kv-row,
body.rtl.mrm-booking-success .cart-info .info-section ul li.ad-info > ul > li.mrm-kv-row {
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eaeef3;
}

html[dir="rtl"] .st-checkout-page .cart-info .info-section ul li.ad-info > ul > li.mrm-kv-row:last-child,
body.rtl .st-checkout-page .cart-info .info-section ul li.ad-info > ul > li.mrm-kv-row:last-child,
html[dir="rtl"].mrm-booking-success .cart-info .info-section ul li.ad-info > ul > li.mrm-kv-row:last-child,
body.rtl.mrm-booking-success .cart-info .info-section ul li.ad-info > ul > li.mrm-kv-row:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

body.rtl .st-checkout-page .cart-info .info-section ul li.ad-info ul,
body.rtl.mrm-booking-success .cart-info .info-section ul li.ad-info ul {
	width: 100%;
}

body.rtl .st-checkout-page .cart-info .info-section ul li.ad-info > ul > li,
body.rtl.mrm-booking-success .cart-info .info-section ul li.ad-info > ul > li {
	display: flex !important;
	justify-content: space-between;
	align-items: center;
}

body.rtl .st-checkout-page .cart-info .info-section ul li.guest-value,
body.rtl.mrm-booking-success .cart-info .info-section ul li.guest-value {
	display: block !important;
	text-align: right;
}

body.rtl .st-checkout-page .cart-info .info-heading,
body.rtl .st-checkout-page .cart-info .price-details h5,
body.rtl .st-checkout-page .cart-info .coupon-section h5,
body.rtl.mrm-booking-success .cart-info .info-heading,
body.rtl.mrm-booking-success .cart-info .price-details h5,
body.rtl .st-checkout-page h3.title,
body.rtl.mrm-booking-success h3.title {
	text-align: right;
}

body.rtl .st-checkout-page .cart-info .info-section ul li .detail .btn {
	margin-left: 0 !important;
	margin-right: 0;
}
