/* StickDecor 2027: skin for the page types without a layer of their own (cart, checkout, content pages, 404).
   Scoped to body.s27. Tokens follow the homepage / category / product layers. */
.s27 { --s-brand: #4DAAD5; --s-ink-blue: #256E8E; --s-soft-blue: #EAF5FB; --s-ink: #0F0F10; --s-muted: #5B616B; --s-line: #E5E7EB; --s-cream: #F5F3EF; }

/* ───────── Checkout ───────── */
/* nothing to browse on the way to the pay button: the add-on products, the newsletter box and the second coupon prompt */
.s27.woocommerce-checkout .woocommerce-form-coupon-toggle,
.s27.woocommerce-checkout .tools-sec.sd-xsell-tools,
.s27.woocommerce-checkout #sd-signup { display: none !important; }
.s27.woocommerce-checkout .trust-micro__item:last-child { display: none; } /* "ייצור בישראל" was listed twice */
/* contact first, then the address under its own heading; first and last name share a row */
.s27.woocommerce-checkout .woocommerce-billing-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 0 12px; }
.s27.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row { flex: 1 1 100%; float: none; width: auto; min-width: 0; }
.s27.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > #billing_first_name_field,
.s27.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > #billing_last_name_field { flex: 1 1 calc(50% - 6px); }
.s27.woocommerce-checkout #billing_country_field { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--s-line); }
.s27.woocommerce-checkout #billing_country_field::before { content: "לאן שולחים?"; display: block; margin-bottom: 10px; font-size: 15.5px; font-weight: 800; color: var(--s-ink); }
/* why the phone and the e-mail are asked: always visible (a one-line reason removes most of the reluctance to give a
   phone number, Baymard) */
.s27.woocommerce-checkout .form-row .description { display: block !important; position: static !important; margin: 4px 0 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; font-size: 12.5px !important; line-height: 1.4 !important; color: var(--s-muted) !important; }
.s27.woocommerce-checkout .form-row .description::before, .s27.woocommerce-checkout .form-row .description::after { display: none !important; }
.s27.woocommerce-checkout .form-row .required { color: #B42318; text-decoration: none; }
/* on a phone the floating buttons sat on the form fields: the back-to-top button goes, WhatsApp shrinks into the corner
   where lines end (help by phone / WhatsApp stays in the checkout footer) */
@media (max-width: 760px) {
	.s27.woocommerce-checkout .back-to-top-btn, .s27.woocommerce-cart .back-to-top-btn { display: none !important; }
	.s27.woocommerce-checkout .whatsapp-btn { inset-inline-start: auto !important; inset-inline-end: 10px !important; bottom: 10px !important; width: 46px; height: 46px; }
}

/* ───────── Cart ───────── */
.s27-cartbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 95; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--s-line); box-shadow: 0 -6px 20px rgba(15, 15, 16, .08); }
.s27-cartbar.is-on { display: flex; }
.s27-cartbar__sum { display: flex; flex-direction: column; line-height: 1.2; }
.s27-cartbar__sum span { font-size: 12.5px; color: var(--s-muted); }
.s27-cartbar__sum b { font-size: 20px; font-weight: 900; color: var(--s-ink); font-variant-numeric: tabular-nums; }
.s27-cartbar__go { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--s-ink); color: #fff !important; font-size: 15.5px; font-weight: 800; text-decoration: none; }
@media (max-width: 760px) {
	.s27.woocommerce-cart .page-head { padding-block: 14px 10px; }
	.s27.woocommerce-cart.s27-bar-on .whatsapp-btn { bottom: 84px !important; }
	/* "recommended for you": one swipe row with a third card peeking, instead of a tall grid */
	.s27.woocommerce-cart .recos-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
	.s27.woocommerce-cart .recos-grid::-webkit-scrollbar { display: none; }
	.s27.woocommerce-cart .recos-grid > * { flex: 0 0 40%; min-width: 0; scroll-snap-align: start; }
}

/* ───────── Coupon behind a link (cart + checkout) ───────── */
.s27.woocommerce-checkout .ck-promo, .s27.woocommerce-cart .promo { display: none; }
.s27.s27-coupon-open.woocommerce-checkout .ck-promo, .s27.s27-coupon-open.woocommerce-cart .promo { display: flex; }
.s27-coupon-link { display: inline-block; margin: 4px 0 12px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--s-ink-blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.s27-coupon-open .s27-coupon-link { display: none; }
.s27-ckbar .s27-cartbar__go { border: 0; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
@media (max-width: 760px) {
	.s27.woocommerce-checkout.s27-bar-on .whatsapp-btn { bottom: 84px !important; }
}

/* ───────── Custom design page (/custom-design/) ─────────
   Measured on a 360x760 phone: the first of the four ways starts at 0.67 screens and the four fill 2.25 screens, one
   under the other, so a visitor sees one choice and has to scroll three screens to compare. Here the title is compact
   and the four are a 2x2 grid that fits the first screen. */
@media (max-width: 760px) {
	.s27.page-template-template-custom-design .cd-quad { padding-top: 18px; }
	.s27.page-template-template-custom-design .cd-sec-title { margin-bottom: 14px; }
	.s27.page-template-template-custom-design .cd-sec-title h1 { font-size: 24px; line-height: 1.2; }
	.s27.page-template-template-custom-design .cd-sec-title__sub { margin-top: 6px; font-size: 14.5px; line-height: 1.45; }
	.s27.page-template-template-custom-design .cd-quad__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.s27.page-template-template-custom-design .cd-quad__card { aspect-ratio: 4 / 5; border-radius: 14px; }
	.s27.page-template-template-custom-design .cd-quad__body { padding: 10px; }
	.s27.page-template-template-custom-design .cd-quad__tag { font-size: 10px; }
	.s27.page-template-template-custom-design .cd-quad__name { font-size: 16px; line-height: 1.2; }
	.s27.page-template-template-custom-design .cd-quad__price { margin-top: 2px; font-size: 12px; }
	.s27.page-template-template-custom-design .cd-quad__cta { margin-top: 4px; font-size: 12.5px; }
}

/* ═════════ The remaining pages: fixes from the phone audit of 34 pages (research/site-audit/summary.md, 2.12.2026) ═════════ */

/* Login ("החשבון שלי"): the form was squeezed into a 140px box (its wrapper is a flex row and the two fields float),
   the inputs were 40px wide and the label wrapped to five lines, on phone and desktop. */
.s27.woocommerce-account .acc-right .woocommerce { display: block; }
.s27.woocommerce-account form.woocommerce-form-login, .s27.woocommerce-account form.woocommerce-form-register, .s27 form.lost_reset_password { display: block; float: none !important; width: 100% !important; max-width: 440px !important; min-width: 0; margin: 0 auto !important; padding: 20px; border: 1px solid var(--s-line); border-radius: 16px; background: #fff; box-sizing: border-box; }
.s27.woocommerce-account form.woocommerce-form-login .form-row, .s27.woocommerce-account form.woocommerce-form-register .form-row, .s27 form.lost_reset_password .form-row { float: none !important; display: block; width: 100% !important; margin: 0 0 14px; padding: 0; }
.s27.woocommerce-account form.woocommerce-form-login label, .s27.woocommerce-account form.woocommerce-form-register label, .s27 form.lost_reset_password label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--s-ink); white-space: normal; }
.s27.woocommerce-account form.woocommerce-form-login .input-text, .s27.woocommerce-account form.woocommerce-form-register .input-text, .s27 form.lost_reset_password .input-text { width: 100%; height: 48px; padding: 0 12px; border: 1.5px solid var(--s-line); border-radius: 12px; background: #fff; font-size: 16px; box-sizing: border-box; }
.s27.woocommerce-account form.woocommerce-form-login .input-text:focus, .s27 form.lost_reset_password .input-text:focus { outline: 0; border-color: var(--s-ink-blue); box-shadow: 0 0 0 3px rgba(37, 110, 142, .15); }
.s27.woocommerce-account form.woocommerce-form-login button[type="submit"], .s27.woocommerce-account form.woocommerce-form-register button[type="submit"], .s27 form.lost_reset_password button[type="submit"] { width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: var(--s-ink-blue); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.s27.woocommerce-account form.woocommerce-form-login .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 500; }
.s27.woocommerce-account form.woocommerce-form-login .woocommerce-form-login__rememberme input { width: 20px; height: 20px; }
.s27.woocommerce-account form.woocommerce-form-login .lost_password { margin: 12px 0 0; text-align: center; }

/* Quote-request pages and "מרחבי למידה": the H1 was black on a dark photo (about 2:1 contrast). */
.s27 .sd-quote__hero .sd-quote__title { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.s27 .sd-quote__hero .sd-quote__sub { color: rgba(255, 255, 255, .9); }

/* 404: the big decorative number read "44" (its middle digit is an empty element). The line under it already says
   "404 · הדף לא נמצא", so the broken decoration goes and the message and the search move up. */
.s27.error404 .e404__number { display: none; }
.s27.error404 main.e404 { padding-top: 28px; }

/* Blog: every card showed an empty grey box where a picture should be (10 of 10), and every post is labelled
   "Uncategorized". Until the posts get pictures and categories, the empty box and the English label do not show. */
.s27.blog .bl-feat-card__media:not(:has(img)), .s27.blog .bl-card__media:not(:has(img)), .s27.archive .bl-card__media:not(:has(img)) { display: none; }
.s27.blog .bl-feat-card__cat, .s27.blog .bl-card__cat { display: none; }

@media (max-width: 760px) {
	/* The floating WhatsApp button sits on the right, where every Hebrew line starts (it covered text or controls on
	   33 of 34 pages). On a phone it moves to the left corner, where lines end; the back-to-top button gives up the spot. */
	.s27 .whatsapp-btn { inset-inline-start: auto !important; inset-inline-end: 12px !important; }
	.s27 .back-to-top-btn { display: none !important; }
	/* Header search: 19px were left for the typed words. Less padding gives the text more than twice that. */
	.s27 .nav form.search .search__wrapper input[type="search"], .s27 .nav form.search .search__wrapper input[name="s"] { padding-inline: 8px 4px; font-size: 15px; }
	/* Footer links were 19px-high lines (26 of 30 under the 40px a finger needs). */
	.s27 footer.footer ul a { display: inline-block; padding-block: 9px; }
	.s27 footer.footer ul li { margin: 0; }
}

/* Self-collection: no address rows (see site27.js) */
.s27.s27-pickup.woocommerce-checkout #billing_country_field,
.s27.s27-pickup.woocommerce-checkout #billing_address_1_field,
.s27.s27-pickup.woocommerce-checkout #billing_address_2_field,
.s27.s27-pickup.woocommerce-checkout #billing_city_field { display: none !important; }
