/*
 * CODSHIPX_AI_R72_C5_INBOX_CHAT_TOOLS
 * Isolated styles for per-chat bot pause and manual order creation.
 */

.cx-r72-c5-action {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.cx-r72-c5-action:hover {
  background: #f8fafc;
}

.cx-r72-c5-action-paused {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.cx-r72-c5-bot-popover {
  position: fixed;
  z-index: 2147483200;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.cx-r72-c5-popover-title {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.cx-r72-c5-pause-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.cx-r72-c5-menu-button,
.cx-r72-c5-secondary,
.cx-r72-c5-primary,
.cx-r72-c5-remove,
.cx-r72-c5-product-result {
  font: inherit;
}

.cx-r72-c5-menu-button {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 9px;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cx-r72-c5-menu-button:hover {
  background: #f8fafc;
}

.cx-r72-c5-menu-primary {
  margin-bottom: 8px;
  border-color: rgba(34, 197, 94, 0.32);
  background: #f0fdf4;
  color: #166534;
}

.cx-r72-c5-popover-note {
  margin-top: 9px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.4;
}

.cx-r72-c5-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.38);
}

.cx-r72-c5-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.cx-r72-c5-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.cx-r72-c5-modal-head h3,
.cx-r72-c5-modal-head p,
.cx-r72-c5-product-block h4,
.cx-r72-c5-modal-body > h4 {
  margin: 0;
}

.cx-r72-c5-modal-head h3 {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
}

.cx-r72-c5-modal-head p {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.cx-r72-c5-modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: #f1f5f9;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cx-r72-c5-modal-body {
  overflow: auto;
  padding: 18px 20px;
}

.cx-r72-c5-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cx-r72-c5-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.cx-r72-c5-field input,
.cx-r72-c5-field select,
.cx-r72-c5-field textarea,
.cx-r72-c5-product-block input {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  outline: none;
}

.cx-r72-c5-field textarea {
  resize: vertical;
}

.cx-r72-c5-field input:focus,
.cx-r72-c5-field select:focus,
.cx-r72-c5-field textarea:focus,
.cx-r72-c5-product-block input:focus {
  border-color: rgba(34, 197, 94, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.10);
}

.cx-r72-c5-product-block {
  margin: 6px 0 16px;
}

.cx-r72-c5-product-block h4,
.cx-r72-c5-modal-body > h4 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 13px;
}

.cx-r72-c5-product-results {
  max-height: 190px;
  overflow: auto;
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.cx-r72-c5-product-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.cx-r72-c5-product-result:hover {
  background: #f8fafc;
}

.cx-r72-c5-product-result strong,
.cx-r72-c5-product-result small,
.cx-r72-c5-order-item-info strong,
.cx-r72-c5-order-item-info small {
  display: block;
}

.cx-r72-c5-product-result small,
.cx-r72-c5-order-item-info small {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.cx-r72-c5-order-items {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.cx-r72-c5-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: #f8fafc;
}

.cx-r72-c5-qty {
  width: 76px;
  min-height: 36px;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 9px;
  background: #ffffff;
  padding: 7px 8px;
}

.cx-r72-c5-remove {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.cx-r72-c5-empty {
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
}

.cx-r72-c5-quote {
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.cx-r72-c5-order-result {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #ecfeff;
  color: #155e75;
  font-size: 12px;
  font-weight: 700;
}

.cx-r72-c5-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.cx-r72-c5-secondary,
.cx-r72-c5-primary {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cx-r72-c5-secondary {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: #ffffff;
  color: #334155;
}

.cx-r72-c5-primary {
  border: 1px solid #65a30d;
  background: #84cc16;
  color: #132a08;
}

.cx-r72-c5-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.cx-r72-c5-toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483500;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 36px));
}

.cx-r72-c5-toast {
  padding: 11px 13px;
  border-radius: 11px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.cx-r72-c5-toast-success {
  background: #166534;
}

.cx-r72-c5-toast-error {
  background: #991b1b;
}

@media (max-width: 760px) {
  .cx-r72-c5-field-grid {
    grid-template-columns: 1fr;
  }

  .cx-r72-c5-modal-overlay {
    padding: 8px;
  }

  .cx-r72-c5-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .cx-r72-c5-order-item {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .cx-r72-c5-remove {
    grid-column: 1 / -1;
    justify-self: end;
  }
}
