/* ============================================================================
   נעים בעוטף — booking island. Brand palette (cream/raspberry/olive/terracotta),
   Assistant, RTL. Warm editorial-luxury.
   ========================================================================== */
.atr-booking {
	--cream: #f7f1e6;
	--paper: #fffdf8;
	--ink: #2b2e22;
	--olive: #3f4a2f;
	--olive-2: #586845;
	--rasp: #cc3366;
	--rasp-deep: #b22a57;
	--terra: #c96f32;
	--wheat: #e4d7bd;
	--line: #ece2cf;
	--muted: #8c8472;
	--ok: #3f7d4f;
	--ease: cubic-bezier(0.32, 0.72, 0, 1);

	direction: rtl; text-align: right;
	max-width: 480px; margin: 0 auto;
	font-family: "Assistant", -apple-system, "Segoe UI", sans-serif;
	color: var(--ink);
}
.atr-booking *, .atr-booking *::before, .atr-booking *::after { box-sizing: border-box; }
.atr-loading { padding: 30px; text-align: center; color: var(--muted); }
.atr-booking-error { color: var(--rasp-deep); padding: 14px; }

/* tour picker */
.atr-tourpick { display: flex; gap: 6px; padding: 6px; margin-bottom: 14px; background: rgba(63,74,47,.05); border: 1px solid var(--line); border-radius: 999px; }
.atr-tp { flex: 1; border: 0; background: transparent; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14.5px; color: var(--olive-2); padding: 11px 14px; border-radius: 999px; transition: all .4s var(--ease); }
.atr-tp:hover { color: var(--olive); }
.atr-tp.on { background: var(--paper); color: var(--olive); box-shadow: 0 8px 20px -12px rgba(63,74,47,.5); }

/* card — double-bezel: outer tray + inner paper */
.atr-card {
	position: relative;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 28px;
	padding: 26px 26px 20px;
	box-shadow: 0 1px 0 #fff inset, 30px 34px 70px -34px rgba(63,74,47,.30);
	animation: atr-in .6s var(--ease) both;
}
.atr-card::before { content: ""; position: absolute; inset: 0; border-radius: 28px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.atr-fatal { color: var(--rasp-deep); text-align: center; padding: 34px; }
.atr-skeleton { height: 360px; border-radius: 18px; background: linear-gradient(90deg,#f1e9d9 25%,#f8f2e7 37%,#f1e9d9 63%); background-size: 400% 100%; animation: atr-shimmer 1.4s infinite; }

/* head */
.atr-head { margin-bottom: 18px; }
/* developer credit — a tiny mark at the very bottom of the form only */
.atr-credit { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px auto 2px; color: #b3a890; font-size: 12px; font-weight: 700; text-decoration: none; opacity: .8; transition: opacity .2s var(--ease); }
.atr-credit:hover { opacity: 1; }
.atr-credit-logo { height: 20px; width: auto; }
.atr-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rasp); background: rgba(204,51,102,.08); border: 1px solid rgba(204,51,102,.16); padding: 5px 12px; border-radius: 999px; }
.atr-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rasp); }
.atr-title { margin: 12px 0 5px; font-size: 27px; font-weight: 800; letter-spacing: -0.02em; color: var(--olive); line-height: 1.05; }
.atr-dur { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.atr-dur svg { color: var(--terra); }

/* fields */
.atr-field { margin-bottom: 16px; }
.atr-flabel { display: block; font-size: 13px; font-weight: 700; color: var(--olive-2); margin-bottom: 8px; }

/* date button + calendar */
.atr-datebtn {
	width: 100%; display: flex; align-items: center; gap: 11px; cursor: pointer;
	font-family: inherit; font-size: 16px; font-weight: 700; color: var(--olive);
	background: var(--cream); border: 1.5px solid var(--line); border-radius: 16px;
	padding: 13px 15px; transition: all .3s var(--ease);
}
.atr-datebtn:hover { border-color: var(--wheat); }
.atr-datebtn.open { border-color: var(--rasp); box-shadow: 0 0 0 3px rgba(204,51,102,.12); }
.atr-datebtn .ic { color: var(--terra); display: inline-flex; }
.atr-datebtn .tx { flex: 1; text-align: start; }
.atr-datebtn .chev { color: var(--muted); transition: transform .3s var(--ease); }
.atr-datebtn .chev.up { transform: rotate(180deg); color: var(--rasp); }

.atr-cal { margin-top: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: 0 22px 44px -28px rgba(63,74,47,.4); animation: atr-pop .3s var(--ease) both; }
.atr-cal-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.atr-cal-mo { font-weight: 800; color: var(--olive); font-size: 16px; }
.atr-cal-nav { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); color: var(--olive); cursor: pointer; display: grid; place-items: center; transition: all .25s var(--ease); }
.atr-cal-nav:hover:not(:disabled) { border-color: var(--wheat); }
.atr-cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.atr-cal-dow { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 4px; }
.atr-cal-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.atr-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.atr-cd { aspect-ratio: 1; border: 0; background: transparent; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--olive); border-radius: 11px; transition: all .2s var(--ease); }
.atr-cd:hover:not(:disabled) { background: var(--cream); }
.atr-cd.out { visibility: hidden; }
.atr-cd.off { color: #cbc3b2; cursor: not-allowed; font-weight: 500; }
.atr-cd.off:hover { background: transparent; }
.atr-cd.sel { background: var(--rasp); color: #fff; box-shadow: 0 8px 18px -8px rgba(204,51,102,.6); }

/* on-request */
.atr-onreq { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.atr-time { font-family: inherit; font-size: 16px; font-weight: 700; color: var(--olive); background: var(--cream); border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; }
.atr-time:focus { outline: none; border-color: var(--rasp); box-shadow: 0 0 0 3px rgba(204,51,102,.12); }
.atr-onreq-note { font-size: 13px; color: var(--terra); font-weight: 600; }

/* slots */
.atr-slots { display: flex; flex-wrap: wrap; gap: 9px; }
.atr-slot { flex: 1 1 28%; min-width: 92px; border: 1.5px solid var(--line); background: var(--cream); border-radius: 14px; padding: 12px 6px; cursor: pointer; transition: all .25s var(--ease); }
.atr-slot .hh { display: block; font-size: 17px; font-weight: 800; color: var(--olive); font-variant-numeric: tabular-nums; }
.atr-slot:hover:not(:disabled) { border-color: var(--wheat); transform: translateY(-1px); }
.atr-slot.on { background: var(--olive); border-color: var(--olive); }
.atr-slot.on .hh { color: #fdfaf2; }
.atr-slot.full { opacity: .45; cursor: not-allowed; }
.atr-slot .fl { display: block; font-size: 11px; font-weight: 700; color: var(--rasp-deep); }
.atr-note-empty { color: var(--muted); font-size: 14px; padding: 8px 2px; }

/* stepper rows */
.atr-rows { margin: 8px 0 4px; border-top: 1px solid var(--line); }
.atr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.atr-row.is-dim { opacity: .5; }
.atr-row-l { display: flex; flex-direction: column; gap: 4px; }
.atr-row-t { font-size: 16px; font-weight: 700; color: var(--olive); }
.atr-row-sub { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.atr-row-price { font-size: 13.5px; font-weight: 800; color: var(--terra); font-variant-numeric: tabular-nums; }
.atr-row-price.free { color: var(--ok); }
.atr-row-sep { color: var(--wheat); font-weight: 700; }
.atr-row-h { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.atr-stp { display: flex; align-items: center; gap: 12px; }
.atr-stpb { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--olive); font-size: 22px; line-height: 1; cursor: pointer; transition: all .22s var(--ease); display: grid; place-items: center; }
.atr-stpb:hover:not(:disabled) { border-color: var(--rasp); color: var(--rasp); transform: translateY(-1px); }
.atr-stpb:active:not(:disabled) { transform: scale(.92); }
.atr-stpb:disabled { opacity: .32; cursor: not-allowed; }
.atr-stpv { min-width: 24px; text-align: center; font-size: 18px; font-weight: 800; color: var(--olive); font-variant-numeric: tabular-nums; }

/* license checkbox */
.atr-lic { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-top: 12px; background: #fdf6e6; border: 1px solid #f0e2bd; border-radius: 14px; font-size: 13.5px; color: #6b5d2f; cursor: pointer; }
.atr-lic input { position: absolute; opacity: 0; width: 0; height: 0; }
.atr-lic .box { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--terra); background: #fff; display: grid; place-items: center; color: #fff; margin-top: 1px; transition: all .2s var(--ease); }
.atr-lic input:checked + .box { background: var(--terra); border-color: var(--terra); }

/* footer: price + CTA */
.atr-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.atr-price { display: flex; flex-direction: column; }
.atr-price .big { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--olive); line-height: 1; font-variant-numeric: tabular-nums; }
.atr-price .vat { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.atr-cta {
	display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-family: inherit;
	font-size: 16px; font-weight: 800; color: #fff; background: var(--rasp);
	border: 0; border-radius: 999px; padding: 13px 14px 13px 22px;
	box-shadow: 0 16px 30px -14px rgba(204,51,102,.65);
	transition: transform .25s var(--ease), background .25s var(--ease);
}
.atr-cta:hover:not(:disabled) { background: var(--rasp-deep); transform: translateY(-1px); }
.atr-cta:active:not(:disabled) { transform: scale(.97); }
.atr-cta:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.atr-cta .ic { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; transition: transform .25s var(--ease); }
.atr-cta:hover:not(:disabled) .ic { transform: translateX(-3px); }

.atr-msg { margin-top: 13px; padding: 11px 14px; background: #fdecea; border: 1px solid #f5c6c0; border-radius: 12px; color: var(--rasp-deep); font-size: 13.5px; font-weight: 600; }
.atr-secure { margin: 13px 0 0; font-size: 12px; color: #a99f8b; text-align: center; font-weight: 600; }

@keyframes atr-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes atr-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes atr-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (max-width: 520px) {
	.atr-card { padding: 20px 16px 16px; border-radius: 22px; }
	.atr-title { font-size: 23px; }
	.atr-foot { flex-direction: column; align-items: stretch; }
	.atr-cta { justify-content: center; }
}

/* ── theme-proofing ──────────────────────────────────────────────────────────
   Neutralise host-theme global rules (img{width:100%}, button{background:…},
   uppercase/letter-spacing, native appearance) that bleed into the widget.
   Scoped under .atr-booking + !important so an arbitrary theme can't override
   the widget's sizing or brand palette. */
.atr-booking img { max-width: 100%; height: auto; }
.atr-credit-logo { height: 20px !important; width: auto !important; max-width: 100% !important; }
/* Neutralise the host theme's global <button> styling (background + forced white
   text, which made the +/- glyphs and brand colours disappear), then re-assert
   each control's brand colour. Component selectors (0,2,0) outrank the reset. */
.atr-booking button { -webkit-appearance: none; appearance: none; text-transform: none; letter-spacing: normal; min-height: 0; background: transparent !important; color: var(--olive) !important; box-shadow: none !important; }
.atr-booking .atr-datebtn { background: var(--cream) !important; }
.atr-booking .atr-cal-nav { background: var(--cream) !important; display: grid !important; place-items: center !important; padding: 0 !important; }
.atr-booking .atr-cd { color: var(--olive) !important; }
.atr-booking .atr-cd.off { color: #cbc3b2 !important; }
.atr-booking .atr-cd.sel { background: var(--rasp) !important; color: #fff !important; }
.atr-booking .atr-slot { background: var(--cream) !important; }
.atr-booking .atr-slot.on { background: var(--olive) !important; }
.atr-booking .atr-slot.on .hh { color: #fdfaf2 !important; }
.atr-booking .atr-stpb { background: var(--paper) !important; display: grid !important; place-items: center !important; padding: 0 !important; line-height: 1 !important; font-size: 22px !important; }
.atr-booking .atr-stpb:hover:not(:disabled) { color: var(--rasp) !important; }
.atr-booking .atr-tp.on { background: var(--paper) !important; }
.atr-booking .atr-cta { background: var(--rasp) !important; color: #fff !important; box-shadow: 0 16px 30px -14px rgba(204,51,102,.65) !important; }
.atr-booking .atr-cta:hover:not(:disabled) { background: var(--rasp-deep) !important; }

/* Hide the gallery, tabs (description/reviews), upsells and related products on
   tour single-product pages (block-theme fallback; classic themes drop these via
   remove_action). Keeps the tour page to just the booking widget. */
body.atr-tour-single .woocommerce-product-gallery,
body.atr-tour-single .wp-block-woocommerce-product-image-gallery,
body.atr-tour-single .wc-block-components-product-image,
body.atr-tour-single .woocommerce-tabs,
body.atr-tour-single .wp-block-woocommerce-product-details,
body.atr-tour-single .wp-block-woocommerce-product-reviews,
body.atr-tour-single .up-sells,
body.atr-tour-single .related.products,
body.atr-tour-single .wp-block-woocommerce-related-products,
body.atr-tour-single .product_meta,
body.atr-tour-single .wp-block-woocommerce-product-meta { display: none !important; }
