.wcbb-app {
	--wcbb-primary: #111111;
	max-width: 640px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
	direction: rtl;
	text-align: right;
	color: #222;
	overflow-x: hidden;
}

/* ---------- Floor plan image ---------- */

.wcbb-floor-plan {
	margin-bottom: 24px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.wcbb-floor-plan img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Booking blocks ---------- */

.wcbb-bookings-wrap {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.wcbb-booking-block {
	background: #fff;
	padding: 20px 22px 22px;
}

.wcbb-booking-block + .wcbb-booking-block {
	border-top: 1px solid #eee;
}

.wcbb-block-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.wcbb-block-title-row .wcbb-block-title {
	margin: 0;
}

.wcbb-block-remove {
	background: none;
	border: none;
	color: #b00020;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	padding: 4px 0;
}

.wcbb-block-remove:hover {
	text-decoration: underline;
}

.wcbb-panel-title,
.wcbb-block-title {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
	color: #222;
}

.wcbb-field {
	margin-top: 14px;
}

.wcbb-field label,
.wcbb-field-label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #333;
	margin-bottom: 6px;
}

.wcbb-month-select,
.wcbb-booth-select {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #e5e5e5;
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
	color: #222;
	direction: rtl;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9'><path d='M1 1l6 6 6-6' stroke='%23666' stroke-width='2' fill='none' fill-rule='evenodd'/></svg>");
	background-repeat: no-repeat;
	background-position: left 14px center;
}

.wcbb-month-select:focus,
.wcbb-booth-select:focus {
	border-color: var(--wcbb-primary, #111111);
	outline: none;
}

.wcbb-rent-value {
	margin-top: 16px;
	font-size: 15px;
	font-weight: 700;
	color: #222;
}

.wcbb-rent-value .wcbb-rent-label {
	font-weight: 700;
}

.wcbb-rent-value .wcbb-rent-amount {
	font-weight: 800;
	color: var(--wcbb-primary, #111111);
}

/* ---------- Payment method (checkbox-style rows) ---------- */

.wcbb-payment-panel {
	margin-top: 18px;
}

.wcbb-payment-options {
	display: flex;
	flex-direction: column;
}

.wcbb-payment-options.wcbb-busy {
	opacity: .55;
	pointer-events: none;
}

.wcbb-field-label {
	display: flex;
	align-items: center;
	gap: 4px;
}

.wcbb-required {
	color: #e53935;
	font-weight: 700;
}

.wcbb-payment-placeholder {
	font-size: 13px;
	color: #999;
	margin: 4px 0;
}

.wcbb-payment-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	direction: rtl;
	padding: 12px 0;
	cursor: pointer;
	border-bottom: 1px solid #eee;
}

.wcbb-payment-row:last-child {
	border-bottom: none;
}

.wcbb-payment-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wcbb-payment-text {
	font-size: 15px;
	color: #222;
}

.wcbb-payment-price {
	font-size: 14px;
	color: #888;
}

.wcbb-radio {
	width: 20px;
	height: 20px;
	min-width: 20px;
	border-radius: 50%;
	border: 2px solid #99a2ad;
	position: relative;
	transition: border-color .15s ease;
}

.wcbb-payment-row.selected .wcbb-radio::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	right: 3px;
	bottom: 3px;
	border-radius: 50%;
}

.wcbb-payment-row-full.selected .wcbb-radio::after {
	background: #111111;
}

.wcbb-payment-row-deposit.selected .wcbb-radio::after {
	background: #9a9a9a;
}

.wcbb-payment-row.wcbb-disabled {
	cursor: not-allowed;
	opacity: .5;
}

.wcbb-payment-row.wcbb-disabled .wcbb-payment-text,
.wcbb-payment-row.wcbb-disabled .wcbb-payment-price {
	color: #b3b3b3;
}

.wcbb-payment-row.wcbb-disabled .wcbb-radio {
	border-color: #cfd3d8;
}

.wcbb-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wcbb-note {
	font-size: 13px;
	color: #777;
	margin: 10px 0 0;
}

/* ---------- Add another booking ---------- */

.wcbb-add-another-row {
	margin-bottom: 24px;
}

/* ---------- Cart / summary cards ---------- */

.wcbb-cart-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 24px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	padding: 24px;
}

.wcbb-cart-card h3 {
	margin-top: 0;
	font-size: 18px;
}

.wcbb-btn {
	display: inline-block;
	padding: 12px 26px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 700;
	letter-spacing: .3px;
	background: #eee;
	font-size: 14px;
	transition: opacity .15s ease;
	text-decoration: none;
	text-align: center;
}

.wcbb-btn-primary {
	background: var(--wcbb-primary, #111111);
	color: #fff;
}

.wcbb-btn-primary:hover {
	opacity: 0.88;
	color: #fff;
}

#wcbb-pay-btn.wcbb-btn-primary {
	background: #000;
}

#wcbb-pay-btn.wcbb-btn-primary:hover {
	background: #000;
	opacity: 0.88;
}

.wcbb-btn-secondary {
	background: #000;
	border: 2px solid var(--wcbb-primary, #111111);
	color: #fff;
}

.wcbb-btn-secondary:hover {
	background: #f5f5f5;
}

.wcbb-btn-large {
	width: 100%;
	padding: 15px;
	font-size: 15px;
}

/* Always solid black, regardless of the configured widget color — used for
   the "استكمال الدفع" (Complete payment) button/link. */
.wcbb-btn-black {
	background: #000;
	color: #fff;
}

.wcbb-btn-black:hover {
	background: #000;
	opacity: 0.85;
	color: #fff;
}

/* ---------- "استكمال الدفع" button (top of the booking page) ---------- */
/* Same size/shape as the other full-width buttons on the page (e.g. "+
   إضافة حجز آخر") — just solid black — so it doesn't stand out as an
   oversized separate block. */

.wcbb-complete-payment-top {
	margin-bottom: 24px;
}

/* ---------- Landing page (page 1): "استكمال الدفع" + "حجز جديد" ---------- */

.wcbb-landing-app {
	max-width: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50vh;
}

.wcbb-landing-buttons {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ---------- "استكمال الدفع" page (order-number lookup form) ---------- */

.wcbb-complete-payment-app {
	max-width: 480px;
}

.wcbb-complete-payment-box {
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.wcbb-complete-payment-box h3 {
	margin-top: 0;
}

.wcbb-complete-payment-desc {
	color: #555;
	font-size: 14px;
	line-height: 1.6;
}

.wcbb-complete-payment-form .wcbb-field {
	margin-bottom: 16px;
}

.wcbb-complete-payment-form button {
	width: 100%;
}

.wcbb-cart-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.wcbb-cart-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.wcbb-total {
	font-size: 19px;
	font-weight: 800;
	margin-top: 12px;
}

.wcbb-summary-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #eee;
}

.wcbb-summary-month {
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 4px;
}

.wcbb-summary-line {
	font-size: 13px;
	color: #555;
	line-height: 1.5;
}

.wcbb-summary-remove {
	background: none;
	border: 2px solid #e5e5e5;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	min-width: 28px;
	line-height: 1;
	font-size: 16px;
	color: #b00020;
	cursor: pointer;
	transition: all .15s ease;
}

.wcbb-summary-remove:hover {
	border-color: #b00020;
	background: #fdf1f2;
}

/* ---------- "العقد الإلكتروني" (electronic contract) page ---------- */

.wcbb-contract-search-box,
.wcbb-contract-agreement,
.wcbb-contract-signed-box,
.wcbb-contract-sign-box {
	margin-bottom: 24px;
}

.wcbb-contract-agreement .wcbb-agreement-items {
	max-height: none;
	overflow-y: visible;
}

.wcbb-contract-agree-all {
	margin-bottom: 4px;
	font-weight: 700;
}

.wcbb-contract-sign-form .wcbb-btn {
	margin-top: 18px;
}

/* ---------- Agreement page ---------- */

.wcbb-agreement-items {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-height: 480px;
	overflow-y: auto;
	padding-right: 4px;
	margin-top: 8px;
}

/* ---------- Agreement step: full "separate page" look ---------- */

.wcbb-page {
	background: #f2f2ef;
	min-height: 100vh;
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
	padding: 40px 20px 60px;
}

.wcbb-page-inner {
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	padding: 28px 24px;
}

.wcbb-page-inner h3 {
	margin-top: 0;
	font-size: 19px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--wcbb-primary, #111111);
}

.wcbb-page .wcbb-agreement-items {
	max-height: none;
	overflow-y: visible;
	padding-right: 0;
}

.wcbb-agreement-item {
	padding-bottom: 16px;
	border-bottom: 1px solid #eee;
}

.wcbb-agreement-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.wcbb-agreement-item h4 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: #222;
}

.wcbb-agreement-item p {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.7;
	color: #555;
}

.wcbb-agreement-list {
	margin: 0 0 10px;
	padding-right: 20px;
	font-size: 13px;
	line-height: 1.7;
	color: #555;
}

.wcbb-agreement-list li {
	margin-bottom: 4px;
}

.wcbb-agreement-check {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	color: #222;
	width: fit-content;
}

.wcbb-agreement-check input[type="checkbox"] {
	width: 20px;
	height: 20px;
	min-width: 20px;
	accent-color: var(--wcbb-primary, #111111);
	cursor: pointer;
}

.wcbb-contact-info {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.wcbb-embedded-checkout {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

/* Strip the embedded WooCommerce checkout down to just the fields and,
   below them, the list of available payment method names — no coupon
   box, no repeated order-review table, no gateway descriptions, and no
   native "Place order" button (we use our own wcbb-pay-btn for that).
   Coupon markup varies a lot between themes/versions (classic checkout
   form, cart-page style "coupon" div, WooCommerce Blocks totals-coupon,
   etc.), so we hide it several different ways and scope the rule to the
   whole app (not just .wcbb-embedded-checkout) in case it renders
   outside that wrapper. */
#wcbb-booking-app .woocommerce-form-coupon-toggle,
#wcbb-booking-app .checkout_coupon,
#wcbb-booking-app .woocommerce-form-coupon,
#wcbb-booking-app form.coupon,
#wcbb-booking-app .cart .coupon,
#wcbb-booking-app [class*="coupon" i],
#wcbb-booking-app [id*="coupon" i],
#wcbb-booking-app input[name="coupon_code"],
#wcbb-booking-app button[name="apply_coupon"],
.wcbb-embedded-checkout .woocommerce-additional-fields,
.wcbb-embedded-checkout #order_review_heading,
.wcbb-embedded-checkout .woocommerce-checkout-review-order-table,
.wcbb-embedded-checkout .payment_box,
.wcbb-embedded-checkout #place_order {
	display: none !important;
}

/* Hide the Hesabe gateway's logo/icon in the payment methods list — the
   gateway name text is enough, we don't need the brand image next to it. */
.wcbb-embedded-checkout .payment_methods img[alt*="HESABE" i],
.wcbb-embedded-checkout .payment_methods img[alt*="hesabe" i],
.wcbb-embedded-checkout .payment_methods img[src*="hesabe" i],
.wcbb-embedded-checkout .payment_methods li.payment_method_hesabe img,
.wcbb-embedded-checkout .payment_methods li[class*="hesabe"] img {
	display: none !important;
}

/* Line up each payment gateway's radio button and its name on the same
   row (instead of the radios stacking on their own line above the
   names) — radio first since it's the flex row's leading item in RTL. */
.wcbb-embedded-checkout ul.wc_payment_methods,
.wcbb-embedded-checkout ul.payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcbb-embedded-checkout ul.wc_payment_methods > li,
.wcbb-embedded-checkout ul.payment_methods > li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.wcbb-embedded-checkout ul.wc_payment_methods > li:last-child,
.wcbb-embedded-checkout ul.payment_methods > li:last-child {
	border-bottom: none;
}

.wcbb-embedded-checkout ul.wc_payment_methods > li input[type="radio"],
.wcbb-embedded-checkout ul.payment_methods > li input[type="radio"] {
	margin: 0;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: var(--wcbb-primary, #111111);
	cursor: pointer;
}

.wcbb-embedded-checkout ul.wc_payment_methods > li label,
.wcbb-embedded-checkout ul.payment_methods > li label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-weight: 600;
	color: #222;
	cursor: pointer;
}

/* Make sure the pay button's text is always white, regardless of any
   theme styles that might otherwise override it. */
#wcbb-pay-btn.wcbb-btn-primary,
#wcbb-pay-btn.wcbb-btn-primary:hover,
#wcbb-pay-btn.wcbb-btn-primary:focus,
#wcbb-pay-btn.wcbb-btn-primary:active {
	color: #fff !important;
}

.wcbb-contact-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	font-size: 14px;
}

.wcbb-contact-label {
	color: #777;
	font-weight: 600;
}

.wcbb-contact-value {
	font-weight: 700;
	text-align: left;
}

.wcbb-message {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
}

.wcbb-message.error {
	background: #f8d7da;
	color: #721c24;
}

.wcbb-message.success {
	background: #d4edda;
	color: #155724;
}

/* ---------- Agreement modal (shown when the client tries to continue without checking every clause) ---------- */

.wcbb-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 9999;
	animation: wcbb-modal-fade .18s ease;
}

@keyframes wcbb-modal-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.wcbb-modal-box {
	background: #fff;
	width: 100%;
	max-width: 360px;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	padding: 28px 24px 24px;
	text-align: center;
	direction: rtl;
	animation: wcbb-modal-pop .18s ease;
}

@keyframes wcbb-modal-pop {
	from { transform: scale(.92); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.wcbb-modal-icon {
	width: 44px;
	height: 44px;
	line-height: 44px;
	border-radius: 50%;
	background: #fdecea;
	color: #d93025;
	font-size: 22px;
	font-weight: 800;
	margin: 0 auto 14px;
}

.wcbb-modal-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: #222;
}

.wcbb-modal-text {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
}

.wcbb-modal-box .wcbb-btn {
	width: 100%;
}

.wcbb-agreement-item.wcbb-agreement-flag {
	border: 1px solid #f1b5b5;
	background: #fff7f7;
	border-radius: 8px;
}
