.ecomchatbot-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ecom-primary, #7c3aed) 0%, color-mix(in srgb, var(--ecom-primary, #7c3aed) 70%, var(--ecom-secondary, #4f46e5) 30%) 52%, var(--ecom-secondary, #4f46e5) 100%);
  color: var(--ecom-header-text, #ffffff);
  padding: 10px 18px 10px 10px;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(91, 52, 242, 0.32);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ecomchatbot-bubble-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.ecomchatbot-bubble-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ecomchatbot-panel {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 700px;
  max-height: calc(100vh - 112px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: none;
  z-index: 99999;
}

.ecomchatbot-panel.is-open {
  display: flex;
  flex-direction: column;
}

.ecomchatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--ecom-header-bg, #111827);
  color: var(--ecom-header-text, #ffffff);
  padding: 10px 14px;
}

.ecomchatbot-header-copy {
  min-width: 0;
}

.ecomchatbot-header-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}

.ecomchatbot-header-subtitle {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ecom-header-text, #ffffff) 72%, transparent);
}

.ecomchatbot-minimize {
  border: 0;
  background: transparent;
  color: var(--ecom-header-text, #ffffff);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ecomchatbot-minimize:hover {
  background: color-mix(in srgb, var(--ecom-header-text, #ffffff) 12%, transparent);
}

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

.ecomchatbot-message {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.55;
}

.ecomchatbot-message-copy {
  white-space: normal;
}

.ecomchatbot-message.bot {
  background: #ffffff;
  color: #111827;
}

.ecomchatbot-message.user {
  background: var(--ecom-user-bg, #dbeafe);
  color: var(--ecom-user-text, #1e3a8a);
}

.ecomchatbot-welcome {
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ecomchatbot-welcome-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}

.ecomchatbot-welcome-title {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.ecomchatbot-welcome-text {
  color: #4b5563;
  margin-bottom: 8px;
}

.ecomchatbot-welcome-foot {
  margin-top: 12px;
  color: #6b7280;
  font-size: 13px;
}

.ecomchatbot-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.ecomchatbot-quick-button {
  border: 1px solid #dbe3f0;
  background: #ffffff;
  color: #1f2937;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ecomchatbot-quick-button:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

.ecomchatbot-quick-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ecomchatbot-quick-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.ecomchatbot-quick-helper {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
}

.ecomchatbot-thinking {
  opacity: 0.8;
  font-style: italic;
}

.ecomchatbot-section-note {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdf2f8;
  color: #9d174d;
  font-weight: 600;
}

.ecomchatbot-section-label {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.ecomchatbot-product-list {
  display: grid;
  gap: 10px;
}

.ecomchatbot-product-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ecomchatbot-product-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.ecomchatbot-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: #4b5563;
  font-size: 12px;
}

.ecomchatbot-product-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ff;
}

.ecomchatbot-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ecomchatbot-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}

.ecomchatbot-chip-link {
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ecomchatbot-chip-link:hover {
  background: #e5e7eb;
  color: #111827;
}

.ecomchatbot-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-right: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ecom-header-bg, #111827);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ecomchatbot-link-button:hover {
  background: color-mix(in srgb, var(--ecom-header-bg, #111827) 82%, #ffffff);
}

.ecomchatbot-text-block {
  margin: 0 0 10px;
}

.ecomchatbot-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.ecomchatbot-input-row textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-sizing: border-box;
  resize: none;
  font: inherit;
  line-height: 1.45;
}

.ecomchatbot-input-row textarea:disabled {
  background: #f3f4f6;
  color: #6b7280;
}

.ecomchatbot-input-row button {
  height: 44px;
  min-width: 86px;
  border: 0;
  border-radius: 10px;
  background: var(--ecom-header-bg, #111827);
  color: #ffffff;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 600;
}

.ecomchatbot-input-row button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .ecomchatbot-bubble {
    right: 16px;
    bottom: 16px;
  }

  .ecomchatbot-bubble-text {
    font-size: 15px;
  }

  .ecomchatbot-panel {
    right: 12px;
    bottom: 72px;
    width: calc(100vw - 24px);
    height: calc(100vh - 104px);
    max-height: calc(100vh - 104px);
  }
}

/* NUR Official Ira redesign */
.ecomchatbot-bubble {
  right: 24px;
  bottom: 18px;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff956f 0%, #f05f78 100%);
  color: #ffffff;
  padding: 8px 18px 8px 9px;
  gap: 9px;
  box-shadow: 0 16px 34px rgba(240, 95, 120, 0.34);
  font-family: Arial, Helvetica, sans-serif;
}

.ecomchatbot-bubble-icon {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 15px;
}

.ecomchatbot-bubble-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.ecomchatbot-panel {
  right: 16px;
  bottom: 76px;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 590px;
  max-height: calc(100vh - 96px);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  font-family: Arial, Helvetica, sans-serif;
}

.ecomchatbot-panel.is-open {
  display: flex;
}

.ecomchatbot-header {
  min-height: 78px;
  position: relative;
  padding: 12px 16px;
  background: var(--ecom-header-bg, #111935);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.ecomchatbot-header-identity,
.ecomchatbot-header-actions {
  display: inline-flex;
  align-items: center;
}

.ecomchatbot-header-identity {
  min-width: 0;
  gap: 12px;
  max-width: 44%;
  position: relative;
  z-index: 2;
}

.ecomchatbot-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff956f 0%, #f05f78 100%);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 7px 18px rgba(240, 95, 120, 0.3);
}

.ecomchatbot-header-copy {
  min-width: 0;
}

.ecomchatbot-header-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.ecomchatbot-header-subtitle {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ecomchatbot-header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  color: var(--ecom-primary, #ff7180);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.ecomchatbot-header-actions {
  gap: 8px;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.ecomchatbot-header-menu,
.ecomchatbot-minimize {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}

.ecomchatbot-header-menu {
  font-size: 20px;
  transform: translateY(-1px);
}

.ecomchatbot-header-menu:hover,
.ecomchatbot-minimize:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ecomchatbot-messages {
  flex: 1;
  padding: 26px 22px 18px;
  overflow-y: auto;
  background: #ffffff;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.ecomchatbot-message {
  margin-bottom: 14px;
  padding: 0;
  border-radius: 0;
  line-height: 1.5;
}

.ecomchatbot-message.bot {
  background: transparent;
  color: #16213d;
}

.ecomchatbot-message.user {
  width: fit-content;
  max-width: 86%;
  margin-left: auto;
  padding: 10px 12px;
  border-radius: 14px 14px 4px 14px;
  background: #111935;
  color: #ffffff;
  font-size: 13px;
}

.ecomchatbot-welcome {
  border: 0;
  background: transparent;
}

.ecomchatbot-welcome-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 3px 7px;
  border-radius: 3px;
  background: #fff1f3;
  color: #ff7180;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ecomchatbot-welcome-title {
  margin: 0 0 9px;
  color: #15213c;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.ecomchatbot-welcome-text {
  max-width: 270px;
  margin: 0 0 10px;
  color: #1f2d4d;
  font-size: 13px;
  line-height: 1.55;
}

.ecomchatbot-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.ecomchatbot-quick-button {
  min-height: 78px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  border: 1px solid #e6ebf3;
  border-radius: 8px;
  background: #ffffff;
  color: #15213c;
  padding: 13px 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.ecomchatbot-quick-button:hover {
  background: #ffffff;
  border-color: #f6b7bf;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(240, 95, 120, 0.1);
}

.ecomchatbot-quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff0f2;
  color: #ff6673;
}

.ecomchatbot-quick-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecomchatbot-quick-copy {
  min-width: 0;
}

.ecomchatbot-quick-label {
  color: #15213c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.ecomchatbot-quick-helper {
  max-width: 185px;
  margin-top: 6px;
  color: #34435f;
  font-size: 10px;
  line-height: 1.4;
}

.ecomchatbot-quick-arrow {
  color: #15213c;
  font-size: 26px;
  line-height: 1;
  justify-self: end;
}

.ecomchatbot-thinking .ecomchatbot-message-copy {
  width: fit-content;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f8fb;
  color: #34435f;
  font-size: 13px;
}

.ecomchatbot-section-note,
.ecomchatbot-product-card {
  border-radius: 8px;
}

.ecomchatbot-link-button {
  border-radius: 8px;
  background: #111935;
}

.ecomchatbot-composer {
  border-top: 1px solid #e6ebf3;
  background: #ffffff;
  padding: 10px 22px 12px;
}

.ecomchatbot-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 10px;
  padding: 0;
  border-top: 0;
  background: transparent;
  align-items: stretch;
}

.ecomchatbot-input-shell {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  border: 1px solid #dbe2ee;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.ecomchatbot-input-row textarea {
  min-height: 38px;
  max-height: 92px;
  border: 0;
  border-radius: 0;
  padding: 11px 6px 9px 12px;
  color: #15213c;
  font-size: 12px;
  line-height: 1.4;
  outline: none;
}

.ecomchatbot-input-row textarea::placeholder {
  color: #7d8799;
}

.ecomchatbot-input-row .ecomchatbot-attach {
  width: 28px;
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7d8799;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
}

.ecomchatbot-input-row button#ecomchatbot-send {
  min-width: 0;
  height: 42px;
  border-radius: 8px;
  background: #111935;
  color: #ffffff;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 800;
}

.ecomchatbot-disclaimer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #6d7789;
  font-size: 9px;
  line-height: 1.35;
}

.ecomchatbot-shield {
  width: 10px;
  height: 12px;
  flex: 0 0 10px;
  border: 1px solid #9aa6b8;
  border-radius: 5px 5px 7px 7px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .ecomchatbot-bubble {
    right: 16px;
    bottom: 16px;
  }

  .ecomchatbot-panel {
    right: 8px;
    bottom: 72px;
    width: calc(100vw - 16px);
    height: min(590px, calc(100vh - 88px));
    max-height: calc(100vh - 88px);
  }

  .ecomchatbot-header {
    min-height: 72px;
    padding: 11px 14px;
  }

  .ecomchatbot-header-identity {
    max-width: 48%;
    gap: 10px;
  }

  .ecomchatbot-header-center {
    width: 30%;
    font-size: 22px;
  }

  .ecomchatbot-messages {
    padding: 24px 22px 16px;
  }

  .ecomchatbot-composer {
    padding: 10px 22px 12px;
  }
}
