/* ===========================================================
   Homepage sections (Phase 5) — consolidated CSS for all the
   templates/index.json sections ported after Phase 1's initial 3
   (hero, category-grid, featured-products, which use theme.css directly).
   One file instead of 15+ tiny ones, enqueued only on the front page.
   =========================================================== */

/* --- Featured carousel --- */
.featured-carousel { padding: 2rem 0; background: #ffffff; position: relative; }
.carousel-container { position: relative; max-width: 100%; }
.carousel-wrapper { overflow: hidden; position: relative; }
.carousel-track { display: flex; gap: 1.5rem; padding: 0 1.5rem; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-track { background: transparent; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
.carousel-item { flex: 0 0 250px; min-width: 250px; scroll-snap-align: start; }
.carousel-card { display: block; text-decoration: none; color: inherit; height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.carousel-card:hover { transform: translateY(-8px); }
.carousel-image-wrapper { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; margin-bottom: 1rem; background: var(--color-surface); }
.carousel-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.carousel-card:hover .carousel-image { transform: scale(1.05); }
.carousel-badge { position: absolute; top: .75rem; right: .75rem; padding: .5rem 1rem; border-radius: 6px; font-size: .85rem; font-weight: 600; z-index: 2; }
.carousel-badge--sale { background: #FF6B6B; color: #fff; }
.carousel-badge--soldout { background: #6B5B8A; color: #fff; }
.carousel-content { padding: 0 .5rem; }
.carousel-title { font-size: .95rem; font-weight: 600; color: var(--color-fg); margin: 0 0 .5rem; line-height: 1.3; min-height: 2.6rem; }
.carousel-price { font-size: .95rem; }
.carousel-price ins { text-decoration: none; color: var(--color-accent); font-weight: 700; }
.carousel-price del { color: var(--color-muted); font-size: .85rem; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 10;
  transition: background-color .2s ease, transform .2s ease;
  box-shadow: 0 2px 8px rgba(74,50,103,.2);
}
.carousel-nav:hover { background-color: #3D2557; transform: translateY(-50%) scale(1.1); }
.carousel-nav svg { width: 20px; height: 20px; }
.carousel-nav--prev { left: 1rem; }
.carousel-nav--next { right: 1rem; }

/* Countdown timer + products-on-sale sections both moved to the
   spacivo-countdown-sale plugin's "Sale Hub" (self-contained CSS) — the
   old .product-timer/.product-card.sale-card/.carousel-dots rules that
   used to live here had no other consumer, so they're gone with it. */

/* Brands carousel moved to the spacivo-brands-carousel plugin
   (self-contained CSS) — no consumer left here. */

/* --- Shop by room --- */
.shop-by-room-section { padding: 3rem 0; }
.room-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; display: block; }
.room-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-card:hover img { transform: scale(1.05); }
.room-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: #fff; }
.room-card__overlay h3 { margin: 0 0 .25rem; font-size: 1.3rem; }
.room-card__overlay p { margin: 0 0 .75rem; opacity: .9; font-size: .9rem; }

/* --- Trust icons (already mostly in theme.css .trust-list/.trust-item, no extra needed) --- */

/* --- Meet designer --- */
.meet-designer {
  position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%);
  background-size: cover; background-position: center; background-attachment: fixed;
}
.meet-designer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 1; }
.meet-designer__container { position: relative; z-index: 2; display: flex; width: 100%; max-width: 1400px; margin: 0 auto; padding: 3rem 2rem; gap: 3rem; align-items: center; flex-wrap: wrap; }
.meet-designer__content { flex: 1; min-width: 280px; padding: 2rem; }
.meet-designer__heading { font-size: clamp(1.8rem, 7.7vw, 2.8rem); font-weight: 700; color: #fff; margin: 0 0 1.5rem; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.meet-designer__subheading { font-size: 1.1rem; color: rgba(255,255,255,.9); margin: 0; line-height: 1.6; max-width: 500px; text-shadow: 0 1px 4px rgba(0,0,0,.2); }
.meet-designer__modal { flex: 0 1 420px; min-width: 300px; background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.1); padding: 2.5rem; }
.meet-designer__modal-inner { display: flex; flex-direction: column; gap: 1.5rem; }
.meet-designer__modal-title { margin: 0; font-size: 1.4rem; font-weight: 700; color: #2A211D; }
.meet-designer__form { display: flex; flex-direction: column; gap: 1.25rem; }
.meet-designer__form-group { display: flex; flex-direction: column; gap: .5rem; }
.meet-designer__form-group--phone { flex-direction: row; }
.meet-designer__country-code { flex: 0 0 100px; }
.meet-designer__country-select, .meet-designer__input { width: 100%; padding: .875rem 1rem; border: 1px solid #ddd; border-radius: 6px; font-size: .95rem; font-family: inherit; background: #fff; }
.meet-designer__country-select:focus, .meet-designer__input:focus { outline: none; border-color: #72192D; box-shadow: 0 0 0 3px rgba(138,23,72,.1); }
.meet-designer__input--select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2372192D' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 20px; padding-right: 2.5rem; }
.meet-designer__toggle-group { flex-direction: row; align-items: center; }
.meet-designer__toggle-label { display: flex; align-items: center; gap: .75rem; cursor: pointer; }
.meet-designer__toggle-input { width: 20px; height: 20px; accent-color: #72192D; }
.meet-designer__toggle-text { font-size: .9rem; color: #2A211D; }
.meet-designer__button {
  padding: 1rem; background: #72192D; color: #fff; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .75rem; transition: all .3s ease;
}
.meet-designer__button:hover { background: #5A0F2F; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(138,23,72,.3); }
.meet-designer__button-icon { width: 18px; height: 18px; }
.meet-designer__disclaimer { font-size: .8rem; color: #999; margin: 0; line-height: 1.5; text-align: center; }
.meet-designer__disclaimer a { color: #72192D; }
@media (max-width: 750px) {
  /* align-items:center + overflow:hidden (desktop's vertical-centering trick
     for the two-column layout) clips the top of the stacked single-column
     content on mobile once it's taller than the section's own box — reset
     to a plain top-down flow instead. background-attachment:fixed is also
     dropped here: it's a known cause of extra height/repaint glitches on
     mobile browsers and buys nothing once the section is a single column. */
  .meet-designer { min-height: auto; padding: 2rem 0; align-items: flex-start; overflow: visible; background-attachment: scroll; }
  .meet-designer__container { padding: 0 1.25rem; align-items: stretch; gap: 1.5rem; }
  .meet-designer__content { min-width: 0; width: 100%; padding: 0; text-align: center; }
  .meet-designer__modal { min-width: 0; width: 100%; flex: 1 1 auto; padding: 1.5rem; }
  /* .meet-designer__heading font-size is fluid via clamp() above now. */
  .meet-designer__form-group--phone { flex-direction: column; }
  .meet-designer__country-code { flex: 1; }

  /* Hide the fixed WhatsApp/Ivo/scroll-to-top bubbles and the floating
     "Book a Free Consultation" bar while the Meet a Designer section is
     in view — see initMeetDesignerOverlapGuard() in homepage-sections.js.
     Without this they sit on top of the form's city field and submit
     button, visually cutting the form off. */
  body.has-meet-designer-in-view .whatsapp-chat,
  body.has-meet-designer-in-view .ivo-chat,
  body.has-meet-designer-in-view .scroll-to-top,
  body.has-meet-designer-in-view .hero-consultation-cta {
    display: none;
  }
}

/* --- FAQ accordion (reuses .accordion/.accordion__item from theme.css,
   restyled here rather than in the shared base rules — that same
   .accordion/data-accordion component is also reused in
   inc/woocommerce-archive-hooks.php, so changes need to be scoped under
   .faq-accordion-section to avoid altering that other instance). Numbered
   rows are done with a CSS counter rather than baking "1. "/"2. " into
   each translated question string in the template. --- */
.faq-accordion-section { padding: 3rem 0; }
.faq-accordion-section .section-heading { justify-content: flex-start; margin-bottom: 1.5rem; }
.faq-accordion-section .section-heading h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--color-fg); }

.faq-accordion-section .faq {
  max-width: none; margin-inline: 0;
  counter-reset: spacivo-faq;
}
.faq-accordion-section .accordion { border-top: none; }
.faq-accordion-section .accordion__item {
  counter-increment: spacivo-faq;
  border-bottom: none; background: var(--color-surface, #f2f2f2);
  border-radius: var(--radius-sm); margin-bottom: .75rem; overflow: hidden;
}
.faq-accordion-section .accordion__trigger { padding: 1rem 1.25rem; font-weight: 600; }
.faq-accordion-section .accordion__trigger > span:first-child::before { content: counter(spacivo-faq) ". "; }
.faq-accordion-section .accordion__icon { font-size: 1.4rem; font-weight: 300; }
.faq-accordion-section .accordion__panel { padding: 0 1.25rem 1.25rem; }

/* --- SEO richtext --- */
.seo-richtext-section { position: relative; padding: 5rem 2rem; text-align: center; overflow: hidden; min-height: 320px; display: flex; align-items: center; justify-content: center; background: #2A211D; }
.seo-richtext-section video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.seo-richtext-section__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); z-index: 1; }
.seo-richtext-section__content { position: relative; z-index: 2; max-width: 700px; }

/* --- Designs popup --- */
.designs-popup { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; }
.designs-popup.is-active { display: flex; }
.designs-popup__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
.designs-popup__modal { position: relative; background: #fff; border-radius: 16px; padding: 2.5rem; max-width: 520px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.designs-popup__close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; width: 24px; height: 24px; padding: 0; cursor: pointer; color: #999; display: flex; align-items: center; justify-content: center; }
.designs-popup__close:hover { color: #2A211D; }
.designs-popup__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.designs-popup__header h2 { margin: 0; font-size: 1.8rem; font-weight: 700; color: #2A211D; flex: 1; line-height: 1.3; }
.designs-popup__progress { flex-shrink: 0; margin-left: 1rem; }
.designs-popup__progress-text { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; border: 3px solid #72192D; color: #72192D; font-weight: 700; font-size: .9rem; }
.designs-popup__form-group { margin-bottom: 1.5rem; }
.designs-popup__input { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; font-family: inherit; }
.designs-popup__input:focus { outline: none; border-color: #72192D; }
.designs-popup__phone-wrapper { display: flex; gap: .75rem; align-items: center; }
.designs-popup__country-code { display: flex; align-items: center; gap: .5rem; padding: 1rem; background: #f5f5f5; border: 1px solid #ddd; border-radius: 8px; font-weight: 600; color: #2A211D; white-space: nowrap; }
.designs-popup__input--phone { flex: 1; }
.designs-popup__checkbox-group { margin-bottom: 2rem; }
.designs-popup__checkbox-label { display: flex; align-items: center; gap: .75rem; cursor: pointer; font-size: .95rem; color: #2A211D; }
.designs-popup__checkbox { width: 20px; height: 20px; accent-color: #72192D; }
.designs-popup__button { width: 100%; padding: 1rem; background: #72192D; color: #fff; border: none; border-radius: 50px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .3s; letter-spacing: .5px; }
.designs-popup__button:hover { background: #5A0F2F; }
.designs-popup__disclaimer { margin-top: 1.5rem; font-size: .85rem; color: #999; text-align: center; line-height: 1.6; }
.designs-popup__disclaimer a { color: #72192D; font-weight: 600; }
.designs-popup__success { text-align: center; padding: 2rem 0; }
.designs-popup__success-icon { width: 70px; height: 70px; margin: 0 auto 1.5rem; background: #72192D; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 700; }
.designs-popup__success h3 { margin: 0 0 .75rem; font-size: 1.5rem; color: #2A211D; font-weight: 700; }
.designs-popup__success p { margin: .5rem 0; color: #4A4640; font-size: .95rem; line-height: 1.6; }
.designs-popup__success-note { font-size: .85rem; color: #999; margin-top: 1rem; }

/* --- OTP step (step 2/2) --- */
.designs-popup__otp-intro { margin: 0 0 1.25rem; font-size: .9rem; color: #4A4640; line-height: 1.6; }
.designs-popup__otp-intro strong { color: #2A211D; }
.designs-popup__otp-change {
  background: none; border: none; padding: 0; margin-left: .4rem; color: #72192D; font-weight: 600;
  font-size: .85rem; text-decoration: underline; cursor: pointer;
}
.designs-popup__input--otp { text-align: center; letter-spacing: .5em; font-size: 1.2rem; font-weight: 600; }
.designs-popup__otp-error {
  margin: -.75rem 0 1rem; font-size: .85rem; color: #a22022; background: #fdecea; border-radius: 6px; padding: .6rem .8rem;
}
.designs-popup__otp-resend {
  display: block; width: 100%; text-align: center; margin-top: 1rem; padding: 0; background: none; border: none;
  color: #72192D; font-weight: 600; font-size: .88rem; cursor: pointer;
}
.designs-popup__otp-resend:disabled { color: #999; cursor: default; }
.designs-popup__button:disabled { opacity: .6; cursor: default; }

@media (max-width: 750px) {
  .designs-popup__modal { padding: 2rem; max-width: 100%; margin: 0 1rem; }
  .designs-popup__header h2 { font-size: 1.5rem; }
}

/* --- Browse categories panel (site-wide, master-detail layout) --- */
.browse-categories { position: fixed; inset: 0; z-index: 1001; display: none; will-change: backdrop-filter; transition: backdrop-filter .4s cubic-bezier(.25,.46,.45,1.275); }
.browse-categories.is-active { display: flex; backdrop-filter: blur(4px); }
.browse-categories__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .4s ease; z-index: 1; }
.browse-categories.is-active .browse-categories__overlay { background: rgba(0,0,0,.7); }
.browse-categories__modal {
  position: fixed; top: 0; left: 0; width: 85%; max-width: 400px; height: 100%;
  background: #fff; display: flex; flex-direction: column; z-index: 10;
  border-right: 1px solid #ddd; transform: translateX(-100%); transition: transform .4s cubic-bezier(.25,.46,.45,1);
}
.browse-categories.is-active .browse-categories__modal { transform: translateX(0); }
.browse-categories__header { padding: 1rem; border-bottom: 1px solid #ddd; display: flex; align-items: center; justify-content: space-between; }
.browse-categories__back { display: flex; align-items: center; gap: .5rem; background: none; border: none; color: #72192D; font-weight: 600; cursor: pointer; font-size: .95rem; padding: 0; }
.browse-categories__back svg { width: 20px; height: 20px; }
.browse-categories__title { margin: 0; font-size: 1.2rem; font-weight: 700; color: #2A211D; flex: 1; text-align: center; }
.browse-categories__content { display: flex; flex: 1; overflow: hidden; }
.browse-categories__list { width: 40%; overflow-y: auto; border-right: 1px solid #ddd; padding: .5rem 0; scrollbar-width: none; }
.browse-categories__list::-webkit-scrollbar { display: none; }
.browse-categories__item { display: flex; flex-direction: column; align-items: center; padding: 1rem .75rem; cursor: pointer; transition: background .2s; border-left: 4px solid transparent; text-align: center; }
.browse-categories__item:hover { background: #f5f5f5; }
.browse-categories__item.active { background: rgba(138,23,72,.05); border-left-color: #72192D; }
.browse-categories__item-name { font-size: .8rem; color: #2A211D; font-weight: 600; line-height: 1.2; }
.browse-categories__details { flex: 1; overflow-y: auto; padding: 1.5rem; scrollbar-width: none; }
.browse-categories__details::-webkit-scrollbar { display: none; }
.browse-categories__detail-title { margin: 0 0 1.5rem; font-size: 1.1rem; color: #2A211D; font-weight: 700; }
.browse-categories__subcategories { display: flex; flex-direction: column; gap: .75rem; }
.browse-categories__subcategory { padding: .75rem; background: #f9f9f9; border-radius: 6px; color: #2A211D; text-decoration: none; font-size: .9rem; transition: all .2s; border-left: 3px solid transparent; }
.browse-categories__subcategory:hover { background: #f0f0f0; border-left-color: #72192D; padding-left: 1rem; }
@media (max-width: 750px) {
  .browse-categories__modal { width: 100%; height: 100%; max-width: none; }
  .browse-categories__content { flex-direction: column; }
  .browse-categories__list { width: 100%; border-right: none; border-bottom: 1px solid #ddd; display: flex; overflow-x: auto; overflow-y: visible; padding: 0; max-height: 100px; scrollbar-width: none; }
  .browse-categories__list::-webkit-scrollbar { display: none; }
  .browse-categories__item { flex-direction: column; padding: .75rem; flex: 0 0 auto; border-left: none; border-bottom: 3px solid transparent; gap: .25rem; }
  .browse-categories__item.active { border-left: none; border-bottom-color: #72192D; }
  .browse-categories__details { padding: 1rem; }
}

/* --- Ivo chat widget (site-wide) ---
   .header-whatsapp-cta (assets/css/header-footer.css) shares this same
   bottom-right corner on mobile/tablet (<=1024px) — offset Ivo above it so
   the two floating buttons stack instead of overlapping. Further pushed
   up via body.has-sticky-atc on product pages, where the full-width
   sticky add-to-cart bar also claims that corner. */
/* WhatsApp floating button — same circular style as .ivo-chat__toggle,
   stacked directly above it (same `right`, `bottom` offset by the toggle's
   own height + a gap) at every breakpoint so the two never overlap. */
.whatsapp-chat {
  position: fixed; bottom: 6.5rem; right: 2rem; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.15); transition: all .3s ease;
}
.whatsapp-chat:hover { background: #1EBE57; box-shadow: 0 6px 16px rgba(0,0,0,.2); transform: scale(1.05); color: #fff; }
.whatsapp-chat svg { width: 22px; height: 22px; flex-shrink: 0; }
@media (max-width: 1024px) {
  .whatsapp-chat { bottom: 162px; }
  body.has-sticky-atc .whatsapp-chat { bottom: 228px; }
}
@media (max-width: 480px) {
  /* 44px matches the standard minimum touch-target size (was shrunk to
     28px earlier, which turned out too small to comfortably tap) — sizes/
     gaps here keep the whatsapp/ivo/scroll-to-top stack's own spacing
     logic (bottom = the bubble below it + its height + a gap) consistent
     at this scale. */
  .whatsapp-chat { bottom: 138px; right: 1rem; width: 44px; height: 44px; }
  .whatsapp-chat svg { width: 18px; height: 18px; }
  body.has-sticky-atc .whatsapp-chat { bottom: 204px; }
}

.ivo-chat { position: fixed; bottom: 2rem; right: 2rem; z-index: 999; font-family: inherit; }
@media (max-width: 1024px) {
  .ivo-chat { bottom: 90px; }
  body.has-sticky-atc .ivo-chat { bottom: 156px; }
}
.ivo-chat__toggle {
  width: 60px; height: 60px; border-radius: 50%; background: #72192D; border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15); transition: all .3s ease; position: relative;
}
.ivo-chat__toggle:hover { background: #5A0F2F; box-shadow: 0 6px 16px rgba(0,0,0,.2); transform: scale(1.05); }
.ivo-chat__toggle svg { width: 24px; height: 24px; }
.ivo-chat__label { font-size: .7rem; font-weight: 600; letter-spacing: .5px; }
.ivo-chat__widget { position: absolute; bottom: 80px; right: 0; width: 380px; height: 500px; background: #fff; border-radius: 12px; box-shadow: 0 5px 40px rgba(0,0,0,.16); display: none; flex-direction: column; overflow: hidden; }
.ivo-chat__widget.is-active { display: flex; }
.ivo-chat__header { background: #72192D; color: #fff; padding: 1.5rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.ivo-chat__title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.ivo-chat__subtitle { margin: .25rem 0 0; font-size: .85rem; opacity: .9; }
.ivo-chat__close { background: none; border: none; color: #fff; cursor: pointer; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.ivo-chat__close:hover { opacity: .8; }
.ivo-chat__close svg { width: 20px; height: 20px; }
.ivo-chat__messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.ivo-chat__message { display: flex; }
.ivo-chat__message--bot { justify-content: flex-start; }
.ivo-chat__message--user { justify-content: flex-end; }
.ivo-chat__message-content { max-width: 70%; padding: .75rem 1rem; border-radius: 12px; font-size: .95rem; line-height: 1.4; }
.ivo-chat__message--bot .ivo-chat__message-content { background: #f0f0f0; color: #2A211D; }
.ivo-chat__message--user .ivo-chat__message-content { background: #72192D; color: #fff; }
.ivo-chat__input-area { display: flex; gap: .75rem; padding: 1rem; border-top: 1px solid #eee; background: #fff; }
.ivo-chat__input { flex: 1; border: 1px solid #ddd; border-radius: 24px; padding: .75rem 1rem; font-size: .95rem; font-family: inherit; }
.ivo-chat__input:focus { outline: none; border-color: #72192D; }
.ivo-chat__send { width: 40px; height: 40px; border-radius: 50%; background: #72192D; border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.ivo-chat__send:hover { background: #5A0F2F; transform: scale(1.05); }
.ivo-chat__send svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .ivo-chat { bottom: 84px; right: 1rem; }
  body.has-sticky-atc .ivo-chat { bottom: 150px; }
  .ivo-chat__toggle { width: 44px; height: 44px; }
  .ivo-chat__toggle svg { width: 20px; height: 20px; }
  /* Label text still doesn't fit alongside the icon at 44px — icon-only. */
  .ivo-chat__label { display: none; }
  .ivo-chat__widget { width: calc(100vw - 2rem); height: 400px; max-width: 380px; bottom: 58px; }
}

/* --- Scroll to top (site-wide, footer.php) ---
   Sits beside the Ivo chat bubble (not stacked below it) at the same
   `bottom` offset at every breakpoint, offset by the bubble's own
   width + a gap, so the two never overlap. Hidden until the page has been
   scrolled 15% of its scrollable height (see homepage-sections.js). */
.scroll-to-top {
  position: fixed; bottom: 2rem; right: 6.5rem; z-index: 998;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.scroll-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { background: rgba(0,0,0,.75); }
.scroll-to-top svg { width: 20px; height: 20px; }
@media (max-width: 1024px) {
  .scroll-to-top { bottom: 90px; }
  body.has-sticky-atc .scroll-to-top { bottom: 156px; }
}
@media (max-width: 480px) {
  .scroll-to-top { bottom: 84px; right: 66px; width: 34px; height: 34px; }
  body.has-sticky-atc .scroll-to-top { bottom: 150px; }
  .scroll-to-top svg { width: 16px; height: 16px; }
}

@media (max-width: 750px) {
  .carousel-item { flex: 0 0 180px; min-width: 180px; }
}
