/* Scoped to the atelier's native controls; no changes to theme navigation or consent actions. */
body {
  --ba-float-clearance:max(var(--ba-consent-inset,0px),var(--ba-store-dock-space,0px),env(safe-area-inset-bottom,0px));
  --ba-float-bottom:calc(var(--ba-float-clearance) + 12px);
  --ba-float-right:max(14px,env(safe-area-inset-right,0px));
}
body .ba-chat-teaser,body .ba-chat-widget,body.ba-store-mobile .ba-chat-widget {
  right:var(--ba-float-right);bottom:var(--ba-float-bottom);
}
body .ba-chat-teaser,.ba-chat-widget .ba-floating-actions .ba-chat-launch {
  justify-content:center;min-width:88px;
}
body .ba-follow-float {
  right:calc(var(--ba-float-right) + 104px);bottom:var(--ba-float-bottom);
}
.ba-whatsapp-float {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;
  position:fixed;z-index:981;right:var(--ba-float-right);bottom:var(--ba-float-bottom);
  max-width:150px;min-width:46px;min-height:46px;padding:7px 10px;border:1px solid #a8c5b4;border-radius:99px;
  background:#f6faf6;color:#194936!important;box-shadow:0 4px 14px #18332324;
  font:650 .8rem/1.15 system-ui,sans-serif;text-decoration:none!important;
}
.ba-whatsapp-float span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ba-whatsapp-float svg{width:20px;height:20px;flex:none}
.ba-whatsapp-float[data-placement="chat"]{right:calc(var(--ba-float-right) + 104px)}
.ba-whatsapp-float[data-placement="updates"]{right:calc(var(--ba-float-right) + 206px)}
.ba-whatsapp-float:hover{background:#e7f1e8}
.ba-whatsapp-float:focus-visible{outline:2px solid #306750;outline-offset:2px}
@media(max-width:500px){.ba-whatsapp-float[data-placement="updates"] span,.ba-whatsapp-float[data-placement="chat"] span{display:none}}
body .ba-chat-shell[open],body .ba-follow-dialog.ba-follow-widget {
  bottom:calc(var(--ba-float-clearance) + 66px);min-height:0;
  max-height:max(64px,min(590px,calc(100dvh - var(--ba-float-clearance) - 84px)));
}
body .ba-fav-toast { bottom:calc(var(--ba-float-clearance) + 68px); }
body .ba-chat-teaser-status { bottom:calc(var(--ba-float-clearance) + 68px); }
body .ba-chat-widget #ba-chat-panel:not([hidden]) {
  min-height:0;max-height:max(64px,calc(100dvh - var(--ba-float-clearance) - 92px));overflow:auto;
}
.ba-chat-widget #ba-chat-panel .ba-chat-log { min-height:56px;max-height:none;flex:1 1 auto; }
.ba-chat-widget #ba-chat-panel > :is(header,.ba-chat-form,.ba-chat-account-link) { flex:none; }
.ba-consent-no-room :is(.ba-chat-teaser,.ba-follow-float,.ba-floating-actions,.ba-whatsapp-float) { visibility:hidden; }
@media(max-width:999px) {
  body.ba-store-mobile.ba-consent-visible { --ba-store-dock-space:0px; }
  body.ba-consent-visible .ba-store-dock { display:none; }
}
@media(max-width:600px) {
  body { --ba-float-right:max(10px,env(safe-area-inset-right,0px)); }
  body .ba-chat-widget #ba-chat-panel:not([hidden]) {
    height:auto;bottom:calc(var(--ba-float-clearance) + 8px);max-height:none;
  }
}
@media(max-width:767px) {
  body .ba-chat-shell[open] {
    bottom:calc(var(--ba-float-clearance) + 8px);max-height:none;
  }
}

/* Keep an unobtrusive icon next to the shopping bag, plus the labeled menu entry. */
.ba-fav-link :is(.ba-fav-marker,[data-ba-favorites-count]) { box-sizing:border-box; }
.ba-fav-link .ba-fav-marker { display:inline-grid;position:relative;place-items:center;flex:none;width:22px;height:22px; }
.ba-fav-link .ba-fav-marker svg { width:100%;height:100%; }
.ba-fav-link [data-ba-favorites-count] {
  position:absolute;inset:-6px auto auto 56%;display:grid;place-items:center;z-index:1;
  min-width:17px;height:17px;padding:0 4px;border:1px solid #fff;border-radius:20px;
  background:var(--ba-store-accent);color:var(--ba-store-on-accent);
  font:700 10px/1 system-ui,sans-serif;white-space:nowrap;
}
.ba-fav-link [data-ba-favorites-count][hidden] { display:none!important; }
#header .ba-header-favorites {
  display:inline-grid;place-items:center;flex:none;min-height:44px;width:36px;
  color:inherit;text-decoration:none;
}
#header .ba-header-favorites .ba-fav-marker { width:19px;height:19px; }
#header .ba-header-favorites:hover,#header .ba-header-favorites[aria-current] { color:var(--ba-store-accent); }
.ba-fav-link:focus-visible { outline:2px solid var(--ba-store-accent);outline-offset:3px;border-radius:5px; }
.ba-fav-preferences{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:14px 0;padding:10px 12px;background:#f7f0e7;border:1px solid #e4d7ca;border-radius:6px;font-size:.88rem}
.ba-fav-preferences label{display:flex;align-items:flex-start;gap:7px;flex:1 1 280px}
.ba-fav-preferences input{flex:none;margin:.25em 0 0;accent-color:var(--ba-store-accent)}
.ba-fav-preferences button{min-height:44px;padding:7px 12px;border:1px solid #b89c90;border-radius:5px;background:#fffaf4;color:#4a1418}
.ba-fav-preferences small{flex-basis:100%;color:#3f6244}
#header nav .ba-fav-marker,#offcanvas nav .ba-fav-marker { margin-inline-end:8px;width:18px;height:18px; }
@media(max-width:999px) {
  #header [data-device="mobile"] .ba-header-with-favorites { --items-gap:clamp(5px,2vw,12px);column-gap:var(--items-gap); }
  #header [data-device="mobile"] .ba-header-favorites { width:32px; }
}

/* A classic form has exactly one visible control even if Woo or Blocksy appends another. */
.ba-password-control { display:block;position:relative;min-width:0; }
.ba-password-control > .password-input { display:block;width:100%; }
.ba-password-control input.ba-password-field { width:100%;min-height:44px;padding-inline-end:47px!important; }
.ba-password-control input.ba-password-field::-ms-reveal { display:none; }
.ba-password-control :is(.show-password-input,.hide-password-input,.wp-hide-pw) { display:none!important; }
.ba-password-control .ba-password-eye {
  position:absolute;inset:0 1px 0 auto;inset-inline: auto 1px;margin-block:auto;
  display:grid;place-items:center;width:44px;height:44px;min-height:44px;z-index:1;
  padding:0;border:0;border-radius:5px;background:transparent;color:#4e3932;box-shadow:none;cursor:pointer;
}
.ba-password-control .ba-password-eye:hover { background:#4a14180d;color:var(--ba-store-accent); }
.ba-password-control .ba-password-eye:focus-visible { outline:2px solid var(--ba-store-accent);outline-offset:-3px; }
.ba-password-eye:not(.ba-password-visible) [data-ba-eye-slash] { display:none; }

/* Full personalization remains in the cart/order, but doesn't bury the totals. */
.ba-gift-summary {
  margin:8px 0 2px;border:1px solid #ded1c4;border-radius:7px;background:#fcf8f2;color:#3d2b28;
  line-height:1.45;overflow-wrap:anywhere;
}
.ba-gift-summary > summary {
  min-height:44px;padding:11px 10px;font-size:.84rem;font-weight:650;cursor:pointer;list-style:revert;
}
.ba-gift-summary > summary:focus-visible { outline:2px solid var(--ba-store-accent);outline-offset:-3px; }
.ba-gift-summary :is(dl,ul).ba-gift-summary-list { display:block;padding:10px;margin:0;border-top:1px solid #e7dbd0;list-style:none;font-size:.83rem; }
.ba-gift-summary .ba-gift-summary-list :is(dd,p) { margin:0 0 7px;white-space:pre-wrap; }
.ba-gift-summary .ba-gift-summary-list :is(dt,li) { margin:0; }
.ba-gift-summary .ba-gift-summary-list dd:last-child { margin-bottom:0; }
.woocommerce-checkout .woocommerce-checkout-review-order-table :is(.product-name,.product-total) { vertical-align:top; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total { text-align:end;white-space:nowrap; }
:is(.woocommerce-checkout,.woocommerce-cart,.woocommerce-account) :is(.product-name,.wc-item-meta,.ba-portal-item > div) {
  min-width:0;overflow-wrap:anywhere;
}
.woocommerce-checkout form.checkout #payment {
  box-sizing:border-box;width:100%;min-width:0;border:1px solid #ded1c4;border-radius:8px;
  background:#faf5ef;
}
.woocommerce-checkout form.checkout #payment :is(ul.payment_methods,.place-order) { margin:0;padding:clamp(12px,2.5vw,19px); }
.woocommerce-checkout form.checkout #payment .payment_box { box-sizing:border-box;width:100%;max-width:100%;margin-inline:0;overflow-wrap:anywhere; }
.woocommerce-checkout form.checkout #payment #place_order { max-width:100%; }
.ba-at-receipt .ba-receipt-actions { display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px; }
.ba-luxe .ba-at-receipt .ba-receipt-link {
  display:inline-flex;align-items:center;min-height:44px;padding:7px 14px;border-radius:5px;
  color:var(--ba-store-on-accent);background:var(--ba-store-accent);text-decoration:none;
}
.ba-at-receipt .ba-receipt-link:hover { text-decoration:underline; }
.ba-at-receipt ol [aria-current="step"] { font-weight:650; }
.ba-order-detail-actions { display:flex;flex-wrap:wrap;align-items:center;gap:2px 14px; }
.wc-block-components-product-details { overflow-wrap:anywhere; }
@media(max-width:600px) {
  .woocommerce-checkout form.checkout #payment #place_order { width:100%;float:none; }
  .woocommerce-checkout-review-order-table .product-name { padding-inline-end:9px; }
  .woocommerce-order ul.woocommerce-order-overview {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
    padding:0;margin-inline:0;list-style:none;
  }
  .woocommerce-order ul.woocommerce-order-overview li {
    float:none;margin:0;padding:9px 10px;border:1px solid #e7dcd0;border-radius:6px;
    min-width:0;overflow-wrap:anywhere;
  }
  .woocommerce-order .woocommerce-order-overview__email { grid-column:1/-1; }
}

.ba-chat-widget #ba-chat-panel [hidden] { display:none!important; }
.ba-chat-widget #ba-chat-panel .ba-chat-guest-identity {
  display:grid;grid-template-columns:minmax(0,1fr);gap:10px;flex:none;
  padding:clamp(12px,4vw,18px);
}
.ba-chat-guest-identity > div:first-child p { margin-top:4px;color:#5d4b42; }
.ba-chat-guest-identity label { color:#4b3630; }
.ba-chat-widget .ba-chat-guest-identity input {
  box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:8px 10px;
  border:1px solid #ddd0c4;border-radius:7px;background:#fff;font-size:16px;
}
.ba-chat-guest-identity [data-ba-chat-code-row] input { font-variant-numeric:tabular-nums;letter-spacing:.22em; }
.ba-chat-guest-identity [role="status"]:empty { display:none; }
.ba-chat-guest-identity [role="status"].is-error { color:#872a3e; }
.ba-chat-code-actions { display:flex;flex-wrap:wrap;align-items:center;gap:7px; }
.ba-chat-code-actions button {
  min-height:44px;padding:7px 13px;border:1px solid #51282e;border-radius:7px;
  background:#4a1418;color:#fff;font:650 .82rem/1.3 system-ui,sans-serif;text-align:center;
}
.ba-chat-code-actions [data-ba-chat-code-resend] { background:transparent;color:#4a1418; }
.ba-chat-code-actions button:disabled { opacity:.58;cursor:wait; }
.ba-chat-code-actions button:focus-visible,.ba-chat-guest-identity input:focus-visible { outline:2px solid #98566a;outline-offset:2px; }
.ba-chat-widget .ba-chat-verified { margin:10px 12px 3px;padding:7px 10px;border-radius:5px;background:#e8eee4;color:#315135;font-size:.79rem; }
