:root {
   --sm-assist-navy: #061d4f;
   --sm-assist-blue: #1559d6;
   --sm-assist-blue-bright: #1d6dff;
   --sm-assist-yellow: #ffd21c;
   --sm-assist-green: #20c86a;
   --sm-assist-ink: #071a35;
   --sm-assist-muted: #607086;
   --sm-assist-line: #d9e2f0;
}

body.sm-assist-modal-open {
   overflow: hidden;
}

.sm-assist-tools {
   position: fixed;
   right: 26px;
   bottom: 30px;
   z-index: 99980;
   display: grid;
   gap: 12px;
   justify-items: center;
}

.sm-assist-tools__button {
   appearance: none;
   width: 66px;
   height: 66px;
   margin: 0;
   padding: 0;
   border: 3px solid #fff;
   border-radius: 50%;
   color: #fff;
   cursor: pointer;
   display: grid;
   place-items: center;
   box-shadow: 0 14px 35px rgba( 3, 21, 57, .28 );
   transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease;
}

.sm-assist-tools__button:hover,
.sm-assist-tools__button:focus-visible {
   transform: translateY(-3px) scale(1.035);
   box-shadow: 0 18px 42px rgba( 3, 21, 57, .38 );
}

.sm-assist-tools__button:focus-visible {
   outline: 3px solid var(--sm-assist-yellow);
   outline-offset: 3px;
}

.sm-assist-tools__button svg {
   width: 31px;
   height: 31px;
}

.sm-assist-tools__button--search {
   background: linear-gradient(145deg, var(--sm-assist-blue-bright), var(--sm-assist-navy));
   color: #fff;
}

.sm-assist-tools__button--search svg,
.sm-product-search__field svg {
   fill: none;
   stroke: currentColor;
   stroke-width: 2.2;
   stroke-linecap: round;
}

.sm-assist-tools__button--whatsapp {
   background: var(--sm-assist-green);
   color: #fff;
   box-shadow: 0 0 0 9px rgba( 32, 200, 106, .12 ), 0 14px 35px rgba( 3, 21, 57, .25 );
}

.sm-assist-tools__hint {
   position: absolute;
   right: 78px;
   bottom: 8px;
   width: max-content;
   padding: 10px 14px;
   border: 1px solid #dce5f1;
   border-radius: 999px 999px 5px 999px;
   background: #fff;
   color: var(--sm-assist-ink);
   font-size: 13px;
   font-weight: 800;
   letter-spacing: .01em;
   box-shadow: 0 12px 28px rgba( 6, 29, 79, .14 );
   animation: sm-assist-hint 5s ease-in-out infinite;
}

@keyframes sm-assist-hint {
   0%, 72%, 100% { transform: translateY(0); }
   78% { transform: translateY(-4px); }
   84% { transform: translateY(0); }
   90% { transform: translateY(-2px); }
}

.sm-assist-modal[hidden] {
   display: none !important;
}

.sm-assist-modal {
   position: fixed;
   inset: 0;
   z-index: 99999;
   display: grid;
   place-items: center;
   padding: 28px;
}

.sm-assist-modal__backdrop {
   position: absolute;
   inset: 0;
   background: rgba( 1, 15, 38, .78 );
   backdrop-filter: blur(7px);
   animation: sm-assist-fade .22s ease both;
}

.sm-assist-dialog {
   position: relative;
   z-index: 1;
   width: min(100%, 950px);
   max-height: min(860px, calc(100vh - 56px));
   overflow: hidden;
   border: 1px solid rgba(255, 255, 255, .72);
   border-radius: 28px;
   background: #fff;
   color: var(--sm-assist-ink);
   box-shadow: 0 34px 90px rgba( 0, 12, 39, .42 );
   animation: sm-assist-rise .3s cubic-bezier(.2,.75,.2,1) both;
}

.sm-assist-dialog--whatsapp {
   width: min(100%, 680px);
}

@keyframes sm-assist-fade {
   from { opacity: 0; }
   to { opacity: 1; }
}

@keyframes sm-assist-rise {
   from { opacity: 0; transform: translateY(18px) scale(.98); }
   to { opacity: 1; transform: translateY(0) scale(1); }
}

.sm-assist-dialog__header {
   position: relative;
   isolation: isolate;
   min-height: 205px;
   padding: 43px 94px 39px 44px;
   overflow: hidden;
   background:
      linear-gradient(118deg, rgba(14, 86, 216, .32), transparent 42%),
      linear-gradient(135deg, var(--sm-assist-navy), #0b3278);
   color: #fff;
}

.sm-assist-dialog__header::before,
.sm-assist-dialog__header::after {
   content: "";
   position: absolute;
   z-index: -1;
   right: -56px;
   top: -90px;
   width: 190px;
   height: 340px;
   transform: rotate(33deg);
   background: var(--sm-assist-blue-bright);
   opacity: .95;
}

.sm-assist-dialog__header::after {
   right: 63px;
   top: 98px;
   width: 180px;
   height: 11px;
   background: var(--sm-assist-yellow);
   opacity: 1;
}

.sm-assist-dialog__eyebrow {
   display: flex;
   align-items: center;
   gap: 11px;
   margin: 0 0 9px;
   color: var(--sm-assist-yellow);
   font-size: 12px;
   font-weight: 900;
   letter-spacing: .16em;
   text-transform: uppercase;
}

.sm-assist-dialog__eyebrow::before {
   content: "";
   width: 29px;
   height: 3px;
   background: var(--sm-assist-yellow);
}

.sm-assist-dialog__header h2 {
   max-width: 690px;
   margin: 0 0 9px;
   color: #fff;
   font-family: "Archivo Black", Arial, sans-serif;
   font-size: clamp(32px, 5vw, 54px);
   line-height: .98;
   letter-spacing: -.035em;
   text-transform: uppercase;
}

.sm-assist-dialog__header p {
   max-width: 650px;
   margin: 0;
   color: rgba(255,255,255,.82);
   font-size: 16px;
   line-height: 1.55;
}

.sm-assist-dialog__close {
   appearance: none;
   position: absolute;
   z-index: 3;
   top: 24px;
   right: 24px;
   width: 46px;
   height: 46px;
   padding: 0;
   border: 1px solid rgba(255,255,255,.6);
   border-radius: 50%;
   background: rgba(255,255,255,.14);
   color: #fff;
   cursor: pointer;
   display: grid;
   place-items: center;
   transition: background-color .2s ease, transform .2s ease;
}

.sm-assist-dialog__close:hover,
.sm-assist-dialog__close:focus-visible {
   background: var(--sm-assist-yellow);
   color: var(--sm-assist-navy);
   transform: rotate(5deg);
}

.sm-assist-dialog__close:focus-visible {
   outline: 3px solid #fff;
   outline-offset: 3px;
}

.sm-assist-dialog__close svg {
   width: 22px;
   height: 22px;
   fill: none;
   stroke: currentColor;
   stroke-width: 2.2;
   stroke-linecap: round;
}

.sm-assist-dialog__body {
   padding: 28px 35px 34px;
   overflow: auto;
   max-height: calc(100vh - 260px);
   background: #fff;
}

.sm-product-search__field {
   position: relative;
   display: flex;
   align-items: center;
   min-height: 66px;
   margin: 0;
   border: 2px solid #bdcdec;
   border-radius: 18px;
   background: #fff;
   color: var(--sm-assist-blue);
   box-shadow: 0 7px 0 #eef3fa;
   transition: border-color .2s ease, box-shadow .2s ease;
}

.sm-product-search__field:focus-within {
   border-color: var(--sm-assist-blue);
   box-shadow: 0 7px 0 #dfeaff;
}

.sm-product-search__field svg {
   flex: 0 0 auto;
   width: 25px;
   height: 25px;
   margin-left: 21px;
}

.sm-product-search__field input[type="search"] {
   width: 100%;
   min-width: 0;
   height: 62px;
   margin: 0;
   padding: 0 21px 0 15px;
   border: 0;
   border-radius: 18px;
   outline: 0;
   background: transparent;
   color: var(--sm-assist-ink);
   box-shadow: none;
   font: 600 16px/1.4 Arial, sans-serif;
}

.sm-product-search__field input::placeholder {
   color: #8793a3;
   opacity: 1;
}

.sm-product-search__summary {
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 20px;
   margin: 27px 3px 12px;
}

.sm-product-search__summary strong {
   color: var(--sm-assist-navy);
   font-size: 13px;
   font-weight: 900;
   letter-spacing: .08em;
   text-transform: uppercase;
}

.sm-product-search__summary span {
   color: var(--sm-assist-muted);
   font-size: 12px;
   font-weight: 700;
}

.sm-product-search__results {
   display: grid;
   gap: 10px;
}

.sm-product-result {
   display: grid;
   grid-template-columns: 82px minmax(0, 1fr) 44px;
   align-items: center;
   gap: 16px;
   min-height: 98px;
   padding: 10px 14px 10px 10px;
   border: 1px solid var(--sm-assist-line);
   border-radius: 17px;
   background: #fff;
   color: var(--sm-assist-ink);
   text-decoration: none;
   transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.sm-product-result:hover,
.sm-product-result:focus-visible {
   border-color: var(--sm-assist-blue);
   color: var(--sm-assist-ink);
   transform: translateY(-2px);
   box-shadow: 0 12px 26px rgba( 7, 31, 77, .1 );
}

.sm-product-result:focus-visible {
   outline: 3px solid rgba( 255, 210, 28, .8 );
   outline-offset: 2px;
}

.sm-product-result__image {
   width: 82px;
   height: 76px;
   object-fit: contain;
   border-radius: 12px;
   background: #fff;
}

.sm-product-result__copy {
   min-width: 0;
}

.sm-product-result__category {
   display: block;
   margin: 0 0 3px;
   color: var(--sm-assist-blue);
   font-size: 10px;
   font-weight: 900;
   letter-spacing: .1em;
   text-transform: uppercase;
}

.sm-product-result__title {
   display: block;
   margin: 0 0 4px;
   color: var(--sm-assist-ink);
   font-size: 16px;
   font-weight: 900;
   line-height: 1.25;
}

.sm-product-result__specs {
   display: block;
   overflow: hidden;
   color: var(--sm-assist-muted);
   font-size: 12px;
   line-height: 1.35;
   text-overflow: ellipsis;
   white-space: nowrap;
}

.sm-product-result__arrow {
   width: 42px;
   height: 42px;
   border-radius: 50%;
   background: #edf3ff;
   color: var(--sm-assist-blue);
   display: grid;
   place-items: center;
   font-size: 21px;
   font-weight: 800;
}

.sm-product-search__empty {
   padding: 30px 22px;
   border: 1px dashed #b9c8df;
   border-radius: 17px;
   background: #f7f9fd;
   color: var(--sm-assist-muted);
   text-align: center;
   font-size: 14px;
   line-height: 1.55;
}

.sm-product-search__catalog {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   margin-top: 18px;
   color: var(--sm-assist-blue);
   font-size: 13px;
   font-weight: 900;
   letter-spacing: .04em;
   text-decoration: none;
   text-transform: uppercase;
}

.sm-product-search__catalog:hover,
.sm-product-search__catalog:focus-visible {
   color: var(--sm-assist-navy);
}

.sm-assist-dialog__header--centered {
   min-height: 255px;
   padding: 31px 78px 32px;
   text-align: center;
}

.sm-assist-dialog__header--centered .sm-assist-dialog__eyebrow {
   justify-content: center;
   margin-top: 13px;
}

.sm-assist-dialog__header--centered h2 {
   margin-left: auto;
   margin-right: auto;
   font-size: clamp(27px, 4.2vw, 39px);
   line-height: 1.05;
}

.sm-assist-dialog__header--centered p {
   margin-left: auto;
   margin-right: auto;
   font-size: 14px;
}

.sm-assist-dialog__logo {
   width: 106px;
   height: 72px;
   padding: 7px 13px;
   object-fit: contain;
   border-radius: 14px;
   background: #fff;
   box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.sm-whatsapp-advisers {
   display: grid;
   gap: 14px;
   padding: 25px 28px 27px;
}

.sm-whatsapp-adviser {
   display: grid;
   grid-template-columns: 94px minmax(0, 1fr) auto;
   align-items: center;
   gap: 16px;
   padding: 14px;
   border: 1px solid var(--sm-assist-line);
   border-radius: 20px;
   background: linear-gradient(115deg, #fff, #f7faff);
   box-shadow: 0 8px 25px rgba( 4, 31, 82, .07 );
}

.sm-whatsapp-adviser > img {
   width: 94px;
   height: 94px;
   object-fit: cover;
   object-position: center 24%;
   border: 4px solid #fff;
   border-radius: 50%;
   box-shadow: 0 0 0 3px var(--sm-assist-blue), 0 8px 19px rgba(6,29,79,.18);
}

.sm-whatsapp-adviser__content {
   min-width: 0;
}

.sm-whatsapp-adviser__status {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   margin-bottom: 4px;
   color: #16834b;
   font-size: 10px;
   font-weight: 900;
   letter-spacing: .08em;
   text-transform: uppercase;
}

.sm-whatsapp-adviser__status i {
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: var(--sm-assist-green);
   box-shadow: 0 0 0 4px rgba(32,200,106,.12);
}

.sm-whatsapp-adviser h3 {
   margin: 0 0 2px;
   color: var(--sm-assist-navy);
   font-family: "Archivo Black", Arial, sans-serif;
   font-size: 17px;
   line-height: 1.2;
}

.sm-whatsapp-adviser p {
   margin: 0 0 4px;
   color: var(--sm-assist-blue);
   font-size: 12px;
   font-weight: 900;
   letter-spacing: .04em;
   text-transform: uppercase;
}

.sm-whatsapp-adviser__phone {
   color: var(--sm-assist-muted);
   font-size: 12px;
   font-weight: 700;
   text-decoration: none;
}

.sm-whatsapp-adviser__button {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 7px;
   min-height: 46px;
   padding: 0 15px;
   border-radius: 12px;
   background: var(--sm-assist-green);
   color: #fff;
   font-size: 11px;
   font-weight: 900;
   letter-spacing: .03em;
   text-align: center;
   text-decoration: none;
   text-transform: uppercase;
   box-shadow: 0 8px 18px rgba(32,200,106,.2);
   transition: transform .2s ease, background-color .2s ease;
}

.sm-whatsapp-adviser__button:hover,
.sm-whatsapp-adviser__button:focus-visible {
   transform: translateY(-2px);
   background: #15a958;
   color: #fff;
}

.sm-whatsapp-adviser__button:focus-visible {
   outline: 3px solid var(--sm-assist-yellow);
   outline-offset: 2px;
}

.sm-whatsapp-adviser__button svg {
   flex: 0 0 auto;
   width: 20px;
   height: 20px;
}

.sm-whatsapp-advisers__note {
   margin: 2px 0 0;
   color: #7d8999;
   font-size: 11px;
   text-align: center;
}

@media (max-width: 720px) {
   .sm-assist-tools {
      right: 16px;
      bottom: max(18px, env(safe-area-inset-bottom));
      gap: 9px;
   }

   .sm-assist-tools__button {
      width: 56px;
      height: 56px;
      border-width: 2px;
   }

   .sm-assist-tools__button svg {
      width: 27px;
      height: 27px;
   }

   .sm-assist-tools__hint {
      display: none;
   }

   .sm-assist-modal {
      align-items: end;
      padding: 10px;
   }

   .sm-assist-dialog {
      max-height: calc(100dvh - 20px);
      border-radius: 22px;
   }

   .sm-assist-dialog__header {
      min-height: 175px;
      padding: 34px 60px 29px 24px;
   }

   .sm-assist-dialog__header h2 {
      font-size: 31px;
   }

   .sm-assist-dialog__header p {
      font-size: 13px;
   }

   .sm-assist-dialog__close {
      top: 17px;
      right: 17px;
      width: 41px;
      height: 41px;
   }

   .sm-assist-dialog__body {
      max-height: calc(100dvh - 208px);
      padding: 22px 16px 25px;
   }

   .sm-product-search__field {
      min-height: 58px;
      border-radius: 15px;
   }

   .sm-product-search__field input[type="search"] {
      height: 54px;
      padding-right: 13px;
      font-size: 14px;
   }

   .sm-product-search__field svg {
      width: 22px;
      height: 22px;
      margin-left: 16px;
   }

   .sm-product-search__summary {
      margin-top: 23px;
   }

   .sm-product-result {
      grid-template-columns: 65px minmax(0,1fr) 34px;
      gap: 11px;
      min-height: 84px;
      padding: 9px;
   }

   .sm-product-result__image {
      width: 65px;
      height: 64px;
   }

   .sm-product-result__title {
      font-size: 13px;
   }

   .sm-product-result__specs {
      display: none;
   }

   .sm-product-result__arrow {
      width: 32px;
      height: 32px;
      font-size: 17px;
   }

   .sm-assist-dialog__header--centered {
      min-height: 220px;
      padding: 25px 56px 26px 20px;
   }

   .sm-assist-dialog__header--centered h2 {
      font-size: 26px;
   }

   .sm-assist-dialog__logo {
      width: 88px;
      height: 60px;
   }

   .sm-whatsapp-advisers {
      max-height: calc(100dvh - 250px);
      padding: 17px 14px 20px;
   }

   .sm-whatsapp-adviser {
      grid-template-columns: 72px minmax(0,1fr);
      gap: 13px;
      padding: 13px;
   }

   .sm-whatsapp-adviser > img {
      width: 72px;
      height: 72px;
   }

   .sm-whatsapp-adviser h3 {
      font-size: 14px;
   }

   .sm-whatsapp-adviser__button {
      grid-column: 1 / -1;
      width: 100%;
   }
}

@media (prefers-reduced-motion: reduce) {
   .sm-assist-tools__hint,
   .sm-assist-modal__backdrop,
   .sm-assist-dialog {
      animation: none;
   }

   .sm-assist-tools__button,
   .sm-assist-dialog__close,
   .sm-product-result,
   .sm-whatsapp-adviser__button {
      transition: none;
   }
}
