.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-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: #fff;
	border: 2px solid var(--wcbb-primary, #111111);
	color: var(--wcbb-primary, #111111);
}

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

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

.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;
}

/* ---------- 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). */
.wcbb-embedded-checkout .woocommerce-form-coupon-toggle,
.wcbb-embedded-checkout .checkout_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;
}

/* 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;
}
