/* ============================================================
   custom_style.css — GLOBAL & LEGACY OVERRIDES
   (то, что не вынесено в компоненты)
   ============================================================ */

/* ============================================================
   TOKENS (минимум, чтобы custom был самодостаточный)
   ============================================================ */
:root{
  /* Brand */
  --brand-blue: #116cb3;
  --brand-blue-2: #0e5f9d;

  /* Drawer (нужны navbar.css на mobile) */
  --drawer-bg-1: rgba(8,12,18,.92);
  --drawer-bg-2: rgba(10,16,24,.84);
  --drawer-border: rgba(255,255,255,.10);
  --drawer-shadow: 0 18px 60px rgba(0,0,0,.45);

  /* Chat */
  --cw-z: 2147483000;
  --cw-radius: 18px;

  --cw-brand: #116cb3;
  --cw-border: rgba(255,255,255,.22);
  --cw-glass: rgba(255,255,255,.10);
  --cw-brand-glass: rgba(17,108,179,.18);

  --cw-shadow: 0 18px 60px rgba(0,0,0,.22);
  --cw-text: rgba(20,24,32,.92);
}

/* ============================================================
   Z-INDEX / STACKING CONTEXT (единая иерархия)
   ============================================================ */

/* Chat widget — выше всего, кроме bootstrap modal */
#chat-widget{ z-index: var(--cw-z); }

/* Bootstrap dropdown inside mobile drawer */
#ftco-nav .dropdown-menu{
  z-index: 2147482500;
}

/* =========================================================
   CHAT WIDGET— CORPORATE GLASS (#116cb3)
   ========================================================= */

:root{
  --cw-z: 2147483000;
  --cw-radius: 18px;

  --cw-brand: #116cb3;

  --cw-border: rgba(255,255,255,.22);
  --cw-glass: rgba(255,255,255,.10);
  --cw-brand-glass: rgba(17,108,179,.18);

  --cw-shadow: 0 18px 60px rgba(0,0,0,.22);
  --cw-text: rgba(20,24,32,.92);
}

/* SAFETY */
#chat-widget,
#chat-widget *{ box-sizing: border-box; }

/* ROOT */
#chat-widget{
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--cw-z);

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--cw-text);
  pointer-events: auto;
}

/* FAB */
#chat-fab{
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  cursor: pointer;

  background: linear-gradient(135deg, var(--cw-brand), rgba(17,108,179,.88));
  color: #fff;

  border: 1px solid rgba(255,255,255,.35);
  box-shadow: var(--cw-shadow);

  display: grid;
  place-items: center;

  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Badge */
#chat-fab .chat-fab-badge{
  position: absolute;
  top: -6px;
  right: -6px;

  min-width: 20px;
  height: 20px;
  padding: 0 6px;

  border-radius: 999px;
  background: #ff3b30;
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;

  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.35);
}

/* Pulse */
#chat-fab.chat-fab--pulse::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:999px;
  border:2px solid rgba(17,108,179,.35);
  animation: cwPulse 1.2s ease-in-out infinite;
}
@keyframes cwPulse{
  0%{ transform: scale(.92); opacity:.55; }
  70%{ transform: scale(1.12); opacity:0; }
  100%{ transform: scale(1.12); opacity:0; }
}

/* PANEL */
#chat-widget .chat-panel{
  position: absolute;
  right: 0;
  bottom: 72px;

  width: min(360px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 140px));

  border-radius: var(--cw-radius);
  border: 1px solid var(--cw-border);

  background: linear-gradient(180deg, var(--cw-brand-glass), var(--cw-glass));
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);

  box-shadow: var(--cw-shadow);
  overflow: hidden;

  display: grid;
  grid-template-rows: 54px minmax(0,1fr);

  opacity: 0;
  transform: translateY(10px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

#chat-widget .chat-panel.open{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* HEADER */
#chat-widget .chat-widget-header{
  height: 54px;
  padding: 0 12px 0 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--cw-brand);
  color: #fff;

  border-bottom: 1px solid rgba(255,255,255,.25);
}

#chat-widget .chat-widget-header span{
  font-size: 14px;
  font-weight: 650;
}

/* Close */
#chat-widget .chat-widget-toggle{
  width: 34px;
  height: 34px;
  border-radius: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.12);
  color: #fff;

  cursor: pointer;
  font-size: 18px;
}

/* BODY */
#chat-widget .chat-widget-body{
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* MESSAGES */
#chat-messages{
  flex: 1 1 auto;
  padding: 14px 12px;

  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg{ display:flex; }

.chat-msg__bubble{
  max-width: 82%;
  padding: 10px 12px;

  border-radius: 14px;
  font-size: 14px;
  line-height: 1.35;

  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
}

.chat-msg--visitor{ justify-content: flex-end; }
.chat-msg--operator{ justify-content: flex-start; }
.chat-msg--system{ justify-content: center; }

.chat-msg--success .chat-msg__bubble{
  background: rgba(80,200,120,.14);
  border-color: rgba(80,200,120,.45);
}
.chat-msg--error .chat-msg__bubble{
  background: rgba(255,90,90,.14);
  border-color: rgba(255,90,90,.45);
}

.chat-msg__author{
  font-size: 10.5px;
  font-weight: 700;
  opacity: .72;
  margin-bottom: 4px;
}

/* Meta (author + time) */
#chat-widget .chat-msg__meta{
  display:flex;
  gap:8px;
  align-items:baseline;
  margin-bottom:4px;
}
#chat-widget .chat-msg__time{
  margin-left:auto;
  font-size:10.5px;
  font-weight:700;
  opacity:.58;
  letter-spacing:.2px;
  line-height:1.15;
}

/* FORM */
#chat-form{
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,.18);

  display: flex;
  flex-direction: column;
  gap: 8px;
}

#chat-input{
  width: 100%;
  min-height: 42px;
  max-height: 110px;

  padding: 11px 12px;
  border-radius: 14px;

  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.24);

  font-size: 14px;
  line-height: 20px;
  color: var(--cw-text);

  resize: none;
  outline: none;
}

#chat-input:focus{
  border-color: rgba(255,255,255,.36);
  box-shadow: 0 0 0 4px rgba(255,255,255,.10);
}

.chat-send-btn{
  height: 42px;
  border-radius: 14px;

  background: var(--cw-brand) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 650;
}

/* MOBILE */
@media (max-width: 480px){
  #chat-widget{
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  #chat-widget .chat-panel{
    width: calc(100vw - 20px);
    height: min(75vh, 560px);
  }
  #chat-input{
    font-size: 16px; /* iOS no-zoom fix */
  }
}

/* BOOTSTRAP SAFETY: chat under modals */
body.modal-open #chat-widget{
  z-index: 1030 !important; /* below backdrop(1040) */
  pointer-events: none !important;
}
body.modal-open #chat-widget .chat-panel{
  pointer-events: none;
  opacity: 0.15;
}

/* FALLBACK (no backdrop-filter) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  #chat-widget .chat-panel{ background: rgba(255,255,255,.96); }
}

/* =========================================================
   ASSISTANT (navigator) + CARDS
   ========================================================= */

.assistant-msg .chat-msg__bubble{
  background: rgba(240, 244, 255, 0.92);
  border: 1px solid rgba(17,108,179, 0.25);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}
.assistant-msg,
.assistant-msg *{ color: #000 !important; }

.assistant-msg .assistant-cards{
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.assistant-card{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;

  background: rgba(255,255,255, 0.98);
  border: 1px solid rgba(0,0,0, 0.08);
  box-shadow: 0 2px 8px rgba(0,0,0, .06);

  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}
.assistant-card:hover{
  background: rgba(243, 246, 255, 1);
  border-color: rgba(17,108,179, 0.30);
  box-shadow: 0 6px 16px rgba(0,0,0, .10);
  transform: translateY(-1px);
}
.assistant-card__title{
  font-weight: 800;
  margin-bottom: 4px;
  color: #000;
}
.assistant-card__snippet{
  font-size: 12px;
  line-height: 1.35;
  color: #222;
  opacity: 0.95;
  margin-bottom: 6px;
}
.assistant-card__meta{
  font-size: 11px;
  color: #555;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* TEST CARD */
.test-card{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;

  background: rgba(255,255,255,.98);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 4px 14px rgba(0,0,0,.08);

  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.test-card:hover{
  transform: translateY(-1px);
  box-shadow:0 10px 28px rgba(0,0,0,.12);
  border-color: rgba(17,108,179,.35);
}
.test-card__header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.test-card__title{
  font-size:15px;
  font-weight:800;
  color:#000;
}
.test-card__code{
  font-size:11px;
  font-weight:800;
  color:#116cb3;
  opacity:.75;
  letter-spacing:.04em;
}
.test-card__subtitle{
  margin-top:4px;
  font-size:12.5px;
  line-height:1.35;
  color:#222;
  opacity:.9;
}
.test-card__divider{
  height:1px;
  background: linear-gradient(to right, rgba(17,108,179,.45), rgba(17,108,179,.05));
  margin:8px 0;
}
.test-card__actions{
  display:flex;
  gap:12px;
  font-size:12px;
  color:#000;
  opacity:.9;
}
.test-card__action{
  white-space:nowrap;
  font-weight:650;
}


/* ============================================================
   NEWS CAROUSEL (owl)
   ============================================================ */
.news-carousel .item{ padding-bottom: 5px; }
.news-carousel .blog-entry{ height: 100%; }
.news-carousel .blog-entry .text{ min-height: 220px; }

/* стрелки */
.news-carousel .owl-nav button{
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
}
.news-carousel .owl-nav .owl-prev{ left: -45px; }
.news-carousel .owl-nav .owl-next{ right: -45px; }

@media (max-width: 991px){
  .news-carousel .owl-nav .owl-prev{ left: -15px; }
  .news-carousel .owl-nav .owl-next{ right: -15px; }
}

/* FIX: owl visibility */
.news-carousel .owl-item,
.news-carousel .owl-item *{
  opacity: 1 !important;
  visibility: visible !important;
}

/* ===== Password field: input + eye button ===== */
.has-eye{
  position: relative;
  width: 100%;
}

/* запас справа под кнопку */
.has-eye input{
  padding-right: 2.75rem;
}

/* убираем bootstrap-иконку ошибки (иначе конфликтует с глазом) */
.has-eye .form-control.is-invalid{
  background-image: none !important;
}

/* кнопка-глаз */
.has-eye .password-toggle.eye-btn{
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.has-eye .password-toggle.eye-btn:hover{
  color: #111;
}

.has-eye .password-toggle.eye-btn:focus-visible{
  outline: 2px solid rgba(17,108,179,.35);
  outline-offset: 2px;
  border-radius: 10px;
}

/* SVG наследует цвет через currentColor */
.has-eye .password-toggle.eye-btn svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
  pointer-events: none;
}

/* ошибки: перенос строк */
.invalid-feedback.d-block{
  white-space: pre-line;
}

/* === Переключение иконок (жестко, чтобы темы не ломали) === */
.has-eye .password-toggle.eye-btn .icon-eye-off{ display: none !important; }
.has-eye .password-toggle.eye-btn.is-on .icon-eye{ display: none !important; }
.has-eye .password-toggle.eye-btn.is-on .icon-eye-off{ display: block !important; }

/* ===== Assistant menu chips ===== */
.assistant-menu__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.assistant-chip{
  background: linear-gradient(180deg, #f8fbff, #eef3ff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  color: #2c3e50;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.assistant-chip:hover{
  background: linear-gradient(180deg, #ffffff, #e6eeff);
  border-color: rgba(0,0,0,.15);
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  transform: translateY(-1px);
}

.assistant-chip:active{
  transform: scale(.97);
}

.assistant-menu__text{
  margin-bottom: 6px;
  font-size: 14px;
  opacity: .9;
}


/* ===== Chat header with logo ===== */
.chat-widget-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-header-left{
  display: flex;
  align-items: center;
}

.chat-header-logo{
  height: 50px;
  width: auto;
  display: block;
}

.chat-header-title{
  flex: 1;
  text-align: center;
  font-weight: 600;
}

/* ===== Glass header for chat widget ===== */
.chat-widget-header{
  background: linear-gradient(180deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.08)
  ) !important;

  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);

  border-bottom: 1px solid rgba(255,255,255,0.25);

  color: #1e2a3a; /* тёмный текст */
}

/* убираем синий фон, если он был в теме */
.chat-widget-header{
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* логотип */
.chat-header-logo{
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}

/* кнопка закрытия */
.chat-widget-toggle{
  color: #1e2a3a !important;
}

/* заголовок */
.chat-header-title{
  color: #1e2a3a;
  font-weight: 600;
}


/* =========================
   DOCUMENT HERO — "paper" style
   ========================= */
.doc-hero{
  position: relative;
  background-position: center;
  background-size: cover;
}

/* Светлая вуаль вместо тёмной */
.doc-hero .overlay{
  background: rgba(255,255,255,.78);
}

/* Бумажная карточка */
.doc-hero__paper{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 18px 16px;
  max-width: 920px;

  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;

  box-shadow:
    0 18px 50px rgba(0,0,0,.08),
    0 2px 8px rgba(0,0,0,.05);

  /* легкий "бумажный" шум (без картинок) */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(17,108,179,.08), transparent 55%),
    radial-gradient(circle at 90% 30%, rgba(0,0,0,.03), transparent 60%);
}

/* Иконка */
.doc-hero__icon{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  color: #116cb3;
  background: rgba(17,108,179,.10);
  border: 1px solid rgba(17,108,179,.22);
}

.doc-hero__icon svg{
  width: 28px;
  height: 28px;
}

/* Заголовок/подзаголовок в чёрном */
.doc-hero__title{
  margin: 0;
  color: #111 !important;
  font-weight: 800;
  letter-spacing: -.02em;
}

.doc-hero__subtitle{
  margin: 0;
  color: rgba(0,0,0,.72) !important;
  font-weight: 600;
}

/* Мобилка: чтобы карточка не была огромной */
@media (max-width: 575.98px){
  .doc-hero__paper{
    padding: 14px 14px 12px;
    border-radius: 16px;
  }
  .doc-hero__icon{
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }
}

/* =========================
   Paper corner (folded)
   ========================= */
.doc-hero__paper{
  position: relative;
  overflow: hidden; /* важно */
}

/* Сам загнутый угол */
.doc-hero__paper::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: 42px;
  height: 42px;

  background:
    linear-gradient(
      135deg,
      rgba(0,0,0,.06) 0%,
      rgba(0,0,0,.02) 45%,
      rgba(255,255,255,.9) 50%,
      rgba(255,255,255,.9) 100%
    );

  border-left: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);

  transform: translate(18%, -18%) rotate(0.0001deg);
  box-shadow: -2px 2px 6px rgba(0,0,0,.06);
}


@media (max-width: 575.98px){
  .doc-hero__paper::after{
    width: 34px;
    height: 34px;
  }
}


/* =========================
   DOCUMENTS LISTING — same style as doc view
   ========================= */

/* HERO: light/paper */
.doc-hero { position: relative; background-position: center; background-size: cover; }
.doc-hero .overlay { background: rgba(255,255,255,.78); }

.doc-hero__paper{
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 18px 16px;
  max-width: 920px;

  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;

  box-shadow:
    0 18px 50px rgba(0,0,0,.08),
    0 2px 8px rgba(0,0,0,.05);

  background-image:
    radial-gradient(circle at 20% 0%, rgba(17,108,179,.08), transparent 55%),
    radial-gradient(circle at 90% 30%, rgba(0,0,0,.03), transparent 60%);
}

/* Folded corner */
.doc-hero__paper::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;

  background: linear-gradient(
    135deg,
    rgba(0,0,0,.06) 0%,
    rgba(0,0,0,.02) 45%,
    rgba(255,255,255,.92) 50%,
    rgba(255,255,255,.92) 100%
  );

  border-left: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
  transform: translate(18%, -18%);
  box-shadow: -2px 2px 6px rgba(0,0,0,.06);
}

.doc-hero__title{ margin: 0; color: #111 !important; font-weight: 800; letter-spacing: -.02em; }
.doc-hero__subtitle{ margin: 0; color: rgba(0,0,0,.72) !important; font-weight: 600; }

@media (max-width: 575.98px){
  .doc-hero__paper{ padding: 14px 14px 12px; border-radius: 16px; }
  .doc-hero__paper::after{ width: 34px; height: 34px; }
}

/* LIST: paper cards */
.doc-list{ display: grid; gap: 14px; }

.doc-item{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.doc-item__inner{
  position: relative;
  padding: 18px;
  overflow: hidden;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

/* Folded corner for each list card */
.doc-item__inner::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,.05),
    rgba(255,255,255,.92)
  );
  border-left: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
  transform: translate(18%, -18%);
  box-shadow: -2px 2px 6px rgba(0,0,0,.05);
}

.doc-item__title{ margin: 0 0 6px; font-weight: 800; }
.doc-item__title a{ color: #111; text-decoration: none; }
.doc-item__title a:hover{ text-decoration: underline; }

.doc-item__meta{
  color: rgba(0,0,0,.62);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.doc-item__dot{ opacity: .5; }

.doc-item__excerpt{
  margin: 0;
  color: rgba(0,0,0,.78);
  line-height: 1.55;
}

.doc-item__actions{
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: flex-start;
}

@media (max-width: 767.98px){
  .doc-item__inner{ flex-direction: column; }
  .doc-item__actions{ align-items: center; }
}

/* =========================
   SERVICE HERO ICON
   ========================= */

.service-hero__icon svg {
    width: 40px;
    height: 40px;
}

@media (max-width: 768px) {
    .service-hero__icon svg {
        width: 32px;
        height: 32px;
    }
}

/* =========================
   NAVBAR actions — FINAL (no duplicates)
   Put this at VERY END of custom_style.css
   ========================= */

:root{
  --results-teal: #2bb9b4;
  --results-teal-hover: #24a7a2;

  --cart-ring: rgba(17,108,179,.30);
  --cart-icon: rgba(0,0,0,.85);
  --cart-shadow: 0 10px 22px rgba(0,0,0,.10);
}

/* ===== Results button (teal) ===== */
#ftco-navbar a.btn.btn-results-pill{
  background-color: var(--results-teal) !important;
  border-color: var(--results-teal) !important;
  color: #fff !important;

  border-radius: 999px !important;
  padding: 12px 22px !important;

  font-weight: 650 !important;
  line-height: 1 !important;
  white-space: nowrap !important;

  box-shadow: var(--cart-shadow) !important;
  text-decoration: none !important;

  display: inline-flex !important;
  align-items: center !important;
}

#ftco-navbar a.btn.btn-results-pill:hover,
#ftco-navbar a.btn.btn-results-pill:focus{
  background-color: var(--results-teal-hover) !important;
  border-color: var(--results-teal-hover) !important;
  color: #fff !important;
}

/* ===== Cart circle ===== */
#ftco-navbar a.cart-btn{
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  position: relative !important;

  background: #fff !important;
  border: 2px solid var(--cart-ring) !important;
  box-shadow: var(--cart-shadow) !important;

  color: var(--cart-icon) !important;
  text-decoration: none !important;

  padding: 0 !important;
}

/* ===== FORCE SVG size (this is the key) ===== */
#ftco-navbar a.cart-btn > svg.cart-icon{
  width: 14px !important;
  height: 14px !important;

  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;

  flex: 0 0 12px !important;
  display: block !important;

  fill: currentColor !important;
  stroke: currentColor !important;
}

/* ===== Badge ===== */
#ftco-navbar a.cart-btn > .cart-badge{
  position: absolute !important;
  top: -7px !important;
  right: -7px !important;

  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;

  border-radius: 999px !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 11px !important;
  font-weight: 800 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  box-shadow: 0 10px 18px rgba(0,0,0,.18) !important;
  border: 1px solid rgba(0,0,0,.06) !important;
}