.ncc-widget,
.ncc-contact-support,
.ncc-contact-page-chat {
  --ncc-blue: #19aee6;
  --ncc-blue-dark: #087ead;
  --ncc-ink: #14212b;
  --ncc-muted: #697783;
  --ncc-border: #d8e3ea;
  --ncc-surface: #ffffff;
}

body.ncc-contact-chat-active .ncc-widget {
  display: none;
}

body#contact #left-column,
.page-contact #left-column,
body#contact aside#left-column,
.page-contact aside#left-column {
  display: none !important;
}

body#contact #content-wrapper,
.page-contact #content-wrapper {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

body#contact #content > *:not(.ncc-contact-page-chat),
.page-contact #content > *:not(.ncc-contact-page-chat) {
  display: none !important;
}

body#contact #content > .ncc-contact-page-chat,
.page-contact #content > .ncc-contact-page-chat {
  display: block;
}

.ncc-widget {
  bottom: 20px;
  font-family: inherit;
  position: fixed;
  right: 20px;
  z-index: 99999;
}

.ncc-launcher {
  align-items: center;
  background: var(--ncc-blue);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(20, 33, 43, 0.22);
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 58px;
  justify-content: center;
  position: relative;
  width: 58px;
}

.ncc-launcher-icon {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.ncc-launcher-dot {
  background: #2ed47a;
  border: 2px solid #fff;
  border-radius: 50%;
  height: 14px;
  position: absolute;
  right: 3px;
  top: 5px;
  width: 14px;
}

.ncc-panel {
  background: var(--ncc-surface);
  border: 1px solid var(--ncc-border);
  border-radius: 8px;
  bottom: 74px;
  box-shadow: 0 24px 60px rgba(20, 33, 43, 0.22);
  display: none;
  flex-direction: column;
  height: min(620px, calc(100vh - 110px));
  overflow: hidden;
  position: absolute;
  right: 0;
  width: 380px;
}

.ncc-widget.is-open .ncc-panel {
  display: flex;
}

.ncc-header {
  align-items: center;
  background: var(--ncc-blue);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 70px;
  padding: 15px 16px;
}

.ncc-header strong,
.ncc-status {
  display: block;
}

.ncc-status {
  font-size: 12px;
  opacity: 0.9;
}

.ncc-close {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  height: 36px;
  line-height: 1;
  width: 36px;
}

.ncc-messages {
  background: #f7fafc;
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.ncc-empty,
.ncc-message {
  border-radius: 8px;
  clear: both;
  line-height: 1.4;
  margin: 0 0 10px;
  max-width: 86%;
  padding: 10px 12px;
  word-break: break-word;
}

.ncc-empty,
.ncc-message-bot,
.ncc-message-system,
.ncc-message-agent {
  background: #fff;
  border: 1px solid var(--ncc-border);
  color: var(--ncc-ink);
  float: left;
}

.ncc-message-customer {
  background: var(--ncc-blue);
  color: #fff;
  float: right;
}

.ncc-message-time {
  color: var(--ncc-muted);
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.ncc-message-customer .ncc-message-time {
  color: rgba(255, 255, 255, 0.85);
}

.ncc-quick-replies {
  background: #fff;
  border-top: 1px solid var(--ncc-border);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
}

.ncc-quick-replies button,
.ncc-order-help,
.ncc-product-help,
.ncc-order-history-support .ncc-order-help {
  background: #eef8fc;
  border: 1px solid #bfe9f8;
  border-radius: 6px;
  color: var(--ncc-blue-dark);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 10px;
  white-space: nowrap;
}

.ncc-order-history-support {
  display: none;
}

[data-ncc-history-injected] {
  display: inline-block;
  margin: 4px 0 4px 8px;
}

.ncc-composer {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--ncc-border);
  display: flex;
  gap: 8px;
  padding: 10px;
}

.ncc-composer input[type="text"] {
  border: 1px solid var(--ncc-border);
  border-radius: 6px;
  flex: 1;
  height: 40px;
  min-width: 0;
  padding: 0 10px;
}

.ncc-composer button[type="submit"] {
  background: var(--ncc-blue);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  height: 40px;
  padding: 0 12px;
}

.ncc-file {
  align-items: center;
  background: #f0f4f7;
  border: 1px solid var(--ncc-border);
  border-radius: 6px;
  color: var(--ncc-muted);
  cursor: pointer;
  display: flex;
  font-size: 22px;
  height: 40px;
  justify-content: center;
  margin: 0;
  width: 40px;
}

.ncc-file input {
  display: none;
}

.ncc-order-help-block {
  border: 1px solid #d8e3ea;
  border-radius: 8px;
  margin: 16px 0;
  padding: 12px;
}

.ncc-product-help-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ncc-contact-support {
  align-items: center;
  background: #f7fbfd;
  border: 1px solid #bfe9f8;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 18px;
}

.ncc-contact-fallback {
  display: none;
}

.ncc-contact-kicker,
.ncc-contact-status {
  color: var(--ncc-blue-dark);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ncc-contact-support h2 {
  color: var(--ncc-ink);
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.ncc-contact-support p {
  color: var(--ncc-muted);
  margin: 0;
}

.ncc-contact-support-main {
  min-width: 0;
}

.ncc-contact-support-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.ncc-contact-open {
  background: var(--ncc-blue);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.ncc-contact-page-chat {
  background: #f7fafc;
  border: 1px solid #d8e3ea;
  border-radius: 8px;
  margin: 0 0 28px;
  min-height: 680px;
  padding: 22px;
}

.ncc-contact-page-fallback {
  display: none;
}

.ncc-contact-page-inner {
  align-items: flex-start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(240px, 1fr) 380px;
  margin: 0 auto;
  max-width: 980px;
}

.ncc-contact-page-title {
  color: var(--ncc-ink);
  padding-top: 16px;
}

.ncc-contact-page-title span {
  color: var(--ncc-blue-dark);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ncc-contact-page-title strong {
  display: block;
  font-size: 28px;
  line-height: 1.18;
  margin-bottom: 12px;
  max-width: 520px;
}

.ncc-embedded-chat {
  background: var(--ncc-surface);
  border: 1px solid var(--ncc-border);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(20, 33, 43, 0.13);
  display: flex;
  flex-direction: column;
  height: 640px;
  overflow: hidden;
  width: 100%;
}

.ncc-embedded-chat .ncc-header {
  min-height: 70px;
}

.ncc-embedded-chat .ncc-messages {
  min-height: 0;
}

.ncc-embedded-chat .ncc-quick-replies {
  flex-wrap: nowrap;
}

@media (max-width: 480px) {
  .ncc-widget {
    bottom: 14px;
    right: 14px;
  }

  .ncc-panel {
    bottom: 70px;
    height: calc(100vh - 95px);
    right: -8px;
    width: calc(100vw - 28px);
  }

  .ncc-contact-support {
    align-items: stretch;
    flex-direction: column;
  }

  .ncc-contact-support-actions {
    align-items: stretch;
  }

  .ncc-contact-page-chat {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin-left: -15px;
    margin-right: -15px;
    min-height: auto;
    padding: 12px;
  }

  .ncc-contact-page-inner {
    display: block;
  }

  .ncc-contact-page-title {
    padding: 0 0 12px;
  }

  .ncc-contact-page-title strong {
    font-size: 22px;
  }

  .ncc-embedded-chat {
    height: calc(100vh - 180px);
    min-height: 520px;
  }
}
