.zesko-support {
  position: fixed;
  z-index: 100100;
  right: 18px;
  bottom: 18px;
  font-family: Arial, sans-serif;
}

.has-zesko-promo-bar .zesko-support {
  bottom: 92px;
}

.zesko-support-launcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 17px 9px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: linear-gradient(115deg, #18140f, #4c2718);
  color: #fff;
  box-shadow: 0 18px 50px rgba(25, 17, 9, .28);
  cursor: pointer;
}

.zesko-support-launcher svg {
  width: 29px;
  height: 29px;
  padding: 6px;
  border-radius: 50%;
  background: #d2a651;
  fill: none;
  stroke: #17130f;
  stroke-width: 1.7;
}

.zesko-support-launcher span {
  display: grid;
  text-align: left;
}

.zesko-support-launcher strong {
  font-size: 11px;
}

.zesko-support-launcher small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: #d9d0c4;
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.zesko-support-launcher small i,
.zesko-support-head small i {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #978f85;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}

.zesko-support-launcher small i.is-online,
.zesko-support-head small i.is-online {
  background: #35d47f;
  box-shadow: 0 0 0 3px rgba(53, 212, 127, .14);
}

.zesko-support-launcher small b,
.zesko-support-head small b {
  font: inherit;
}

.zesko-support-unread {
  position: absolute;
  top: -5px;
  right: -3px;
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fbf8f2;
  border-radius: 999px;
  background: #6d1733;
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}

.zesko-support-unread[hidden] {
  display: none !important;
}

.zesko-support-panel {
  position: fixed;
  z-index: 100101;
  top: 16px;
  right: 18px;
  bottom: 84px;
  display: flex;
  width: min(410px, calc(100vw - 36px));
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(78, 58, 34, .17);
  border-radius: 20px;
  background: #fbf8f2;
  box-shadow: 0 30px 90px rgba(20, 15, 9, .33);
}

.admin-bar .zesko-support-panel {
  top: 48px;
}

.has-zesko-promo-bar .zesko-support-panel {
  bottom: 158px;
}

.zesko-support-panel[hidden],
.zesko-support-form[hidden],
.zesko-support-actions[hidden],
.zesko-support-thread[hidden] {
  display: none !important;
}

.zesko-support-head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px;
  background: linear-gradient(125deg, #17130f, #4d2d1b);
  color: #fff;
}

.zesko-support-head div {
  display: grid;
}

.zesko-support-head span {
  color: #d7ae62;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .17em;
}

.zesko-support-head strong {
  margin-top: 8px;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.zesko-support-head small {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: #c1b8ac;
  font-size: 10px;
}

.zesko-support-head button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.zesko-support-actions {
  display: grid;
  min-height: 0;
  gap: 9px;
  padding: 18px;
  overflow-y: auto;
}

.zesko-support-actions a,
.zesko-support-actions button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border: 1px solid #d8cdbc;
  border-radius: 10px;
  background: #fff;
  color: #17130f !important;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.zesko-support-actions a {
  border-color: #1f713c;
  background: #1f713c;
  color: #fff !important;
}

.zesko-support-wait-note {
  margin: 6px 2px 0;
  padding: 13px 14px;
  border: 1px solid #e2d5c3;
  border-radius: 10px;
  background: linear-gradient(120deg, #fffaf1, #f3e6d3);
  color: #6c6155;
  font-size: 10px;
  line-height: 1.55;
}

.zesko-support-wait-note strong {
  color: #17130f;
}

.zesko-support.is-support-offline .zesko-support-wait-note {
  border-color: #dfbd83;
  background: linear-gradient(120deg, #fff8eb, #f4e0c0);
  color: #5f4d37;
}

.zesko-support.is-support-offline .zesko-support-actions [data-zesko-support-form] {
  border-color: #c99e51;
  background: #fffaf0;
}

.zesko-support-form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.zesko-support-fields {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-auto-rows: max-content;
  gap: 13px;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.zesko-support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.zesko-support-form label {
  display: grid;
  gap: 6px;
}

.zesko-support-form label > span,
.zesko-support-reply label > span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.zesko-support-form input,
.zesko-support-form select,
.zesko-support-form textarea,
.zesko-support-reply textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #d7cdbf;
  border-radius: 8px;
  background: #fff;
  color: #17130f;
  font: 12px/1.4 Arial, sans-serif;
  box-sizing: border-box;
}

.zesko-support-form textarea,
.zesko-support-reply textarea {
  resize: vertical;
}

.zesko-support-submit {
  display: flex;
  width: auto;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border: 0;
  border-radius: 9px;
  background: #17130f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  margin: 0 18px 10px;
}

.zesko-support-submit:disabled,
.zesko-support-reply button:disabled {
  opacity: .6;
}

.zesko-support-feedback,
.zesko-support-reply-feedback {
  margin: 0;
  color: #62594e;
  font-size: 10px;
  line-height: 1.5;
}

.zesko-support-feedback {
  min-height: 15px;
  margin: 0 18px 14px;
}

.zesko-support-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
}

.zesko-support-thread {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.zesko-support-threadbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  border-bottom: 1px solid #ded3c2;
  background: #f4ede2;
}

.zesko-support-threadbar > div {
  display: grid;
  gap: 3px;
}

.zesko-support-threadbar span {
  color: #9c702e;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .12em;
}

.zesko-support-threadbar strong {
  font-size: 11px;
}

.zesko-support-threadbar button {
  border: 0;
  background: transparent;
  color: #6d5b45;
  font-size: 9px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.zesko-support-messages {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #f9f5ee, #f2eadf);
}

.zesko-support-message {
  width: 86%;
  padding: 10px 12px;
  border: 1px solid #ddd0bd;
  border-radius: 13px 13px 13px 3px;
  background: #fff;
}

.zesko-support-message.is-customer {
  align-self: flex-end;
  border-color: #cda95f;
  border-radius: 13px 13px 3px 13px;
  background: #ead1a0;
}

.zesko-support-message span {
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.zesko-support-message p {
  margin: 5px 0;
  color: #2b251f;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.zesko-support-message time {
  display: block;
  color: #776f65;
  font-size: 7px;
}

.zesko-support-message footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.zesko-support-message footer b {
  color: #766d62;
  font-size: 7px;
  font-weight: 800;
}

.zesko-support-message footer b.is-seen {
  color: #176f49;
}

.zesko-support-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 15px;
  border-top: 1px solid #e5daca;
  background: #faf5ed;
  color: #756b60;
  font-size: 8px;
}

.zesko-support-typing[hidden] {
  display: none !important;
}

.zesko-support-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bd8e3e;
  animation: zeskoSupportTyping .9s infinite alternate;
}

.zesko-support-typing i:nth-child(2) { animation-delay: .15s; }
.zesko-support-typing i:nth-child(3) { animation-delay: .3s; }
.zesko-support-typing span { margin-left: 5px; }

@keyframes zeskoSupportTyping {
  from { opacity: .3; transform: translateY(1px); }
  to { opacity: 1; transform: translateY(-2px); }
}

.zesko-support-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #ded3c2;
  background: #fff;
}

.zesko-support-reply label {
  display: grid;
  gap: 5px;
}

.zesko-support-reply textarea {
  min-height: 56px;
}

.zesko-support-reply button {
  min-width: 76px;
  border: 0;
  border-radius: 9px;
  background: #17130f;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
}

.zesko-support-reply-feedback {
  grid-column: 1 / -1;
}

.zesko-support-open {
  overflow: hidden;
}

@media (max-height: 720px) and (min-width: 701px) {
  .zesko-support-head {
    padding: 16px 18px;
  }

  .zesko-support-head strong {
    margin-top: 5px;
    font-size: 23px;
  }

  .zesko-support-head small {
    margin-top: 5px;
  }

  .zesko-support-fields {
    gap: 9px;
    padding: 14px 16px;
  }

  .zesko-support-form input,
  .zesko-support-form select {
    min-height: 42px;
    padding: 9px 11px;
  }

  .zesko-support-form textarea {
    min-height: 66px;
  }
}

@media (max-width: 700px) {
  .zesko-support {
    right: 12px;
    bottom: 12px;
  }

  .has-zesko-promo-bar .zesko-support {
    bottom: 92px;
  }

  .zesko-support-launcher {
    width: 52px;
    height: 52px;
    min-height: 52px;
    justify-content: center;
    padding: 0;
  }

  .zesko-support-launcher > span {
    display: none;
  }

  .zesko-support-panel,
  .has-zesko-promo-bar .zesko-support-panel {
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    border-radius: 17px;
  }

  .admin-bar .zesko-support-panel,
  .admin-bar.has-zesko-promo-bar .zesko-support-panel {
    top: 54px;
  }

  .zesko-support-head {
    padding: 18px;
  }

  .zesko-support-head strong {
    font-size: 25px;
  }

  .zesko-support-grid {
    grid-template-columns: 1fr;
  }

  .zesko-support-fields {
    max-height: none;
    gap: 11px;
    padding: 15px;
  }

  .zesko-support-submit {
    margin: 0 15px 9px;
  }

  .zesko-support-feedback {
    margin: 0 15px 12px;
  }

  .zesko-support-thread {
    max-height: none;
  }

  .zesko-support-reply {
    grid-template-columns: minmax(0, 1fr) 72px;
  }
}

@media (max-width: 380px), (max-height: 580px) {
  .zesko-support-head {
    padding: 13px 15px;
  }

  .zesko-support-head strong {
    margin-top: 4px;
    font-size: 21px;
  }

  .zesko-support-head small {
    display: none;
  }

  .zesko-support-head button {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zesko-support-typing i {
    animation: none;
  }
}

/* ZESKO Support 5.31 — modern customer controls, one-time edits and mobile-safe placement. */
.zesko-support-panel {
  border-color: rgba(70, 49, 28, .14);
  background: #fbf8f2;
  box-shadow: 0 32px 100px rgba(20, 14, 8, .36);
}

.zesko-support-head {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% -25%, rgba(214, 171, 93, .34), transparent 46%),
    linear-gradient(132deg, #15120f 0%, #352117 58%, #5a2c1d 100%);
}

.zesko-support-head:after {
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.zesko-support-threadbar {
  position: relative;
  min-height: 62px;
  padding: 12px 14px 12px 17px;
  background: rgba(247, 241, 232, .96);
}

.zesko-support-threadmenu-wrap {
  position: relative;
  display: block !important;
}

.zesko-support-threadmenu-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d3c6b4 !important;
  border-radius: 50%;
  background: #fff !important;
  color: #201a15 !important;
  font-size: 14px !important;
  letter-spacing: .08em;
  text-decoration: none !important;
}

.zesko-support-threadmenu {
  position: absolute;
  z-index: 8;
  top: 45px;
  right: 0;
  display: grid !important;
  width: 180px;
  padding: 7px;
  border: 1px solid #d8cdbc;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(30, 21, 12, .18);
}

.zesko-support-threadmenu[hidden] {
  display: none !important;
}

.zesko-support-threadmenu button {
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #29231d;
  font-size: 10px;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
}

.zesko-support-threadmenu button:hover,
.zesko-support-threadmenu button:focus-visible {
  background: #f4ede2;
}

.zesko-support-threadmenu button.is-danger {
  color: #9a2636;
}

.zesko-support-messages {
  gap: 12px;
  padding: 18px 15px;
  background:
    linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, .3)),
    radial-gradient(circle at 14% 12%, #fff9ef, transparent 32%),
    #eee5d8;
}

.zesko-support-message {
  position: relative;
  width: min(86%, 310px);
  padding: 11px 12px 9px;
  border-radius: 15px 15px 15px 4px;
  box-shadow: 0 8px 22px rgba(41, 28, 15, .055);
}

.zesko-support-message.is-customer {
  border-color: #cfad6d;
  border-radius: 15px 15px 4px 15px;
  background: linear-gradient(145deg, #f0d9aa, #e3bd76);
}

.zesko-support-message footer {
  min-height: 15px;
}

.zesko-support-message footer em {
  color: #7d7367;
  font-size: 7px;
  font-style: normal;
}

.zesko-support-message-edit {
  position: absolute;
  top: 7px;
  right: 8px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(75, 55, 31, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: #5e4527;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.zesko-support-message-editor {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.zesko-support-message-editor textarea {
  width: 100%;
  min-height: 76px;
  padding: 10px;
  border: 1px solid #b99350;
  border-radius: 9px;
  background: #fffdf9;
  color: #211b15;
  font: 11px/1.45 Arial, sans-serif;
  resize: vertical;
  box-sizing: border-box;
}

.zesko-support-message-editor small {
  color: #6d6255;
  font-size: 7px;
}

.zesko-support-message-editor > div {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.zesko-support-message-editor button {
  min-height: 31px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: #17130f;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.zesko-support-message-editor button.is-cancel {
  border: 1px solid #c9bca9;
  background: transparent;
  color: #4c4135;
}

.zesko-support-reply {
  align-items: end;
  padding: 11px;
  background: #fffdf9;
}

.zesko-support-reply label > span {
  display: none;
}

.zesko-support-reply textarea {
  min-height: 52px;
  max-height: 120px;
  border-radius: 12px;
  background: #f8f3eb;
}

.zesko-support-reply button {
  min-width: 72px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(125deg, #1b1712, #4d2c1b);
}

@media (max-width: 700px) {
  body.single-product .zesko-support {
    right: 12px;
    bottom: calc(104px + env(safe-area-inset-bottom));
  }

  body.single-product.zesko-support-open .zesko-support,
  body.single-product .zesko-support-panel {
    bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .zesko-support-panel,
  .has-zesko-promo-bar .zesko-support-panel {
    bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .zesko-support-threadbar {
    min-height: 58px;
  }

  .zesko-support-message {
    width: min(88%, 330px);
  }

  .zesko-support-reply {
    grid-template-columns: minmax(0, 1fr) 66px;
    padding-bottom: calc(11px + env(safe-area-inset-bottom));
  }
}
