/* =========================================
   DESKTOP ASSISTANT — FINAL STABLE (RESTORED + SAFE)
========================================= */

:root { --brand-mustard: #C9A227; }

/* ===============================
   ROOT
================================ */

#desktop-assistant-root{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99990;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

/* ===============================
   BUTTONS (FLOATING)  ✅ НЕ ЧІПАЄМО
================================ */

#desktop-assistant-root .da-btn{
  width:48px;
  height:48px;
  border-radius:50%;
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#222;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
}

#desktop-assistant-root .da-btn:hover{ background:#333; }
#desktop-assistant-root .da-btn svg{ pointer-events:none; }

#desktop-assistant-root svg{
  width:22px;
  height:22px;
  stroke:var(--brand-mustard);
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  display:block;
}

/* ===============================
   MESSENGERS  ✅ ВИЛІТ ВПРАВО
================================ */

.da-messengers{ position:relative; }

.da-messengers-list{
  position:absolute;
  right:60px;
  bottom:0;
  display:flex;
  gap:10px;

  opacity:0;
  transform:translateX(10px);
  pointer-events:none;

  transition:opacity .2s ease, transform .2s ease;
  z-index:5;
}

.da-messengers.open .da-messengers-list{
  opacity:1;
  transform:translateX(0);
  pointer-events:auto;
}

.da-messengers-list a{
  width:44px;
  height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#353535;
  text-decoration:none;
}

/* ===============================
   CHAT MODAL ✅ ПОВЕРНУТО
================================ */

#da-chat-modal{
  position:fixed;
  inset:0;
  z-index:100000;
}

#da-chat-modal[hidden]{ display:none !important; }

.da-chat-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
}

.da-chat-box{
  position:fixed;
  right:24px;
  bottom:120px;
  width:360px;
  max-width:calc(100% - 40px);
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  display:flex;
  flex-direction:column;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}

.da-chat-close{
  position:absolute;
  top:8px;
  right:10px;
  background:none;
  border:0;
  font-size:22px;
  cursor:pointer;
}

.da-chat-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  background:#222;
  color:#fff;
}

.da-chat-avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--brand-mustard);
  display:flex;
  align-items:center;
  justify-content:center;
}

.da-chat-avatar img{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
}

.da-chat-body{
  padding:16px;
  background:#f6f6f6;
  flex:1;
  overflow-y:auto;
}

.da-msg{ margin-bottom:12px; max-width:85%; }
.da-msg-manager{ align-self:flex-start; }
.da-msg-user{ align-self:flex-end; margin-left:auto; }

.da-msg-bubble{
  background:#fff;
  padding:10px 14px;
  border-radius:14px;
  font-size:14px;
  line-height:1.4;
  box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.da-msg-user .da-msg-bubble{
  background:var(--brand-mustard);
  color:#222;
}

.da-chat-footer{
  display:flex;
  gap:8px;
  padding:12px;
  background:#fff;
  border-top:1px solid #eee;
}

.da-chat-input{
  flex:1;
  border:1px solid #ddd;
  border-radius:20px;
  padding:10px 14px;
}

.da-chat-send{
  width:40px;
  height:40px;
  border-radius:50%;
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--brand-mustard);
  cursor:pointer;
}

/* ===============================
   MINI CART ✅ ПРАВИЛЬНО
================================ */

.da-btn-cart{ position:relative; }

.da-cart-count{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--brand-mustard);
  color:#222;
  font-size:11px;
  font-weight:700;
  border-radius:50%;
}

#da-mini-cart{
  position:fixed;
  inset:0;
  z-index:100001;
}

#da-mini-cart[hidden]{ display:none !important; }

.da-cart-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
}

/* PANEL */
.da-cart-panel{
  position:absolute;
  right:24px;
  bottom:120px;
  width:360px;
  max-width:calc(100% - 40px);
  background:#fff;
  border-radius:14px;
  padding:18px 16px 16px;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  box-sizing:border-box;

  display:flex;
  flex-direction:column;
}

/* CLOSE — TOP RIGHT ✅ */
.da-cart-close{
  position:absolute;
  top:10px;
  right:12px;

  width:32px;
  height:32px;
  border-radius:50%;
  border:none;
  background:#f2f2f2;
  color:#222;
  font-size:20px;
  line-height:1;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;
}

.da-cart-close:hover{ background:#e6e6e6; }

/* ITEMS */
.da-cart-items{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:28px;
}

/* TOTAL */
.da-cart-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:18px;
  font-weight:600;
  margin-top:16px;
}

/* ACTIONS WRAP */
#da-mini-cart .da-cart-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:16px;
}

/* ✅ КНОПКИ МІНІ-КОШИКА — СКОПОВАНО ТІЛЬКИ В #da-mini-cart
   НЕ ЛІЗЕМО В .da-btn ГЛОБАЛЬНО!
*/
#da-mini-cart .da-cart-actions a,
#da-mini-cart .da-cart-actions button{
  width:100%;
  height:52px;
  padding:0 16px;
  border-radius:10px;
  font-size:16px;
  font-weight:600;
  box-sizing:border-box;

  display:flex;
  align-items:center;
  justify-content:center;

  text-align:center;
  cursor:pointer;
  text-decoration:none;
}

/* variants by classes you already use */
#da-mini-cart .da-btn-primary{
  background:#111;
  color:#fff;
  border:none;
}
#da-mini-cart .da-btn-primary:hover{ background:#000; }

#da-mini-cart .da-btn-secondary{
  background:#f2f2f2;
  color:#111;
  border:none;
}
#da-mini-cart .da-btn-secondary:hover{ background:#e6e6e6; }

#da-mini-cart .da-btn-tertiary{
  background:#fff;
  color:#111;
  border:1px solid #ddd;
}
#da-mini-cart .da-btn-tertiary:hover{
  background:#fafafa;
  border-color:#ccc;
}
/* ===============================
   FIX CHAT SEND BUTTON SIZE
================================ */

.da-chat-send {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;

  padding: 0;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG ВСЕРЕДИНІ */
.da-chat-send svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}


/* ===============================
   CHAT CONTACT STEP — FIXED
================================ */

.da-chat-contact {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eee;
  background: #fff;
}

.da-chat-contact[hidden] {
  display: none !important;
}

.da-chat-contact-input {
  flex: 1;
  height: 40px;
  padding: 0 14px;

  border-radius: 20px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
}

.da-chat-contact-input:focus {
  border-color: #c9a227;
}

.da-chat-contact-send {
  height: 40px;
  padding: 0 18px;

  border-radius: 20px;
  border: none;

  background: #c9a227;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.da-chat-contact-send:hover {
  background: #b99720;
}
.da-chat-footer[hidden] { display: none !important; }

/* ===============================
   SCROLL UP — VISIBILITY
================================ */

.da-btn-scroll {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.da-btn-scroll.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* ===============================
   CHAT BUTTON — STRONG PULSE
================================ */

.da-btn-chat {
  position: relative;
  z-index: 1;
}

/* ПУЛЬС 1 */
.da-btn-chat::before,
.da-btn-chat::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.55); /* більше гірчичного */
  z-index: -1;
  animation: da-chat-pulse 2s ease-out infinite;
}

/* ПУЛЬС 2 — з затримкою */
.da-btn-chat::after {
  inset: -14px;
  background: rgba(201, 162, 39, 0.35);
  animation-delay: 1s;
}

@keyframes da-chat-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #000; /* або потрібний */
}

.messenger-btn svg {
  display: block;
}




.icon-wrap {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}




/* ===============================
   MINI CART — CTA BUTTON (FINAL)
   ТІЛЬКИ ДЛЯ МІНІ-КОШИКА
================================ */

#da-mini-cart .da-cart-actions .da-btn-primary {
  background: linear-gradient(
    135deg,
    #111 0%,
    #222 100%
  );
  color: #fff;
  border: none;

  letter-spacing: 0.3px;
  text-transform: none;

  box-shadow:
    0 6px 16px rgba(0,0,0,.25),
    inset 0 -2px 0 rgba(0,0,0,.35);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

#da-mini-cart .da-cart-actions .da-btn-primary:hover {
  background: linear-gradient(
    135deg,
    #000 0%,
    #111 100%
  );
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(0,0,0,.35),
    inset 0 -2px 0 rgba(0,0,0,.45);
}

#da-mini-cart .da-cart-actions .da-btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px rgba(0,0,0,.25),
    inset 0 2px 4px rgba(0,0,0,.4);
}


/* ===============================
   KITCHEN CALCULATOR — BUY BUTTON (FORCED)
================================ */

#kitchen-options button.button.alt {
  appearance: none;
  -webkit-appearance: none;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  height: 42px !important;
  padding: 0 14px !important;

  background: #111 !important;
  color: #fff !important;

  border: none !important;
  border-radius: 6px !important;

  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;

  box-shadow: none !important;
}

#kitchen-options button.button.alt:hover {
  background: #000 !important;
}

#kitchen-options button.button.alt:active {
  transform: translateY(1px);
}


/* ===============================
   KITCHEN CALCULATOR — TOTAL + BUTTON INLINE
================================ */

#kitchen-options .kitchen-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
}

/* текст тоталу */
#kitchen-options .kitchen-header p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* сума */
#kitchen-options #kitchen-total {
  font-weight: 700;
  margin-left: 6px;
}

/* кнопка поруч */
#kitchen-options .kitchen-header button.button.alt {
  margin: 0 !important;
  height: 48px;
  padding: 0 22px;
  white-space: nowrap;
}
/* ===============================
   KITCHEN CALCULATOR — TOTAL + BUY INLINE (FIX)
================================ */

/* контейнер з тоталом і кнопкою */
#kitchen-options .kitchen-header {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;

  justify-content: flex-start !important; /* 🔑 НЕ space-between */
}

/* текст "Загальна ціна" */
#kitchen-options .kitchen-header p {
  margin: 0 !important;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

/* сама сума */
#kitchen-options #kitchen-total {
  font-weight: 700;
  margin-left: 6px;
}

/* кнопка "Купити" */
#kitchen-options .kitchen-header button.button.alt {
  margin: 0 !important;
  height: 48px;
  padding: 0 22px;
  white-space: nowrap;
}
