/* GIGAPOS Embeddable Chat Widget Styles - Modern Luxury Clean Edition */
#gigapos-sales-widget-root {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Segoe UI Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  direction: rtl;
  box-sizing: border-box;
}

#gigapos-sales-widget-root * {
  box-sizing: border-box;
}

/* Floating Launcher Button */
#gigapos-widget-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
}

#gigapos-widget-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 35px rgba(16, 185, 129, 0.6);
}

#gigapos-widget-btn:active {
  transform: scale(0.96);
}

.giga-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: gigaPulseRing 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes gigaPulseRing {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.giga-badge-unread {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: white;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
  animation: gigaBounce 1.5s infinite;
}

@keyframes gigaBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Chat Panel Window */
#gigapos-widget-panel.giga-panel-hidden {
  display: none !important;
}
.giga-options-summary {
  font-size: 12px;
  color: #34d399;
  margin-top: 4px;
}
#gigapos-widget-panel {
  position: absolute;
  bottom: 76px;
  left: 0;
  width: 385px;
  max-width: calc(100vw - 32px);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.75), 0 0 35px -8px rgba(16, 185, 129, 0.25);
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: gigaFadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom left;
}

@keyframes gigaFadeUp {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.giga-head {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.giga-head-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.giga-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  position: relative;
}

.giga-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.giga-online-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #34d399;
  font-weight: 600;
  margin-top: 3px;
}

.giga-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: gigaBlink 1.8s infinite;
}

@keyframes gigaBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.giga-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  outline: none;
}

.giga-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: rotate(90deg);
}

/* Body & Custom Modern Scrollbar */
.giga-body {
  padding: 16px 18px;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  overscroll-behavior: contain;
}

/* Custom Sleek Scrollbar for Webkit */
.giga-body::-webkit-scrollbar {
  width: 5px;
}

.giga-body::-webkit-scrollbar-track {
  background: transparent;
}

.giga-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

.giga-body::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Bot Message Bubble */
.giga-msg-container {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.giga-msg-bubble {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 13px 15px;
  border-radius: 16px 16px 4px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.giga-msg-bubble p {
  margin: 0 0 6px;
}

.giga-msg-bubble p:last-child {
  margin: 0;
}

/* Activity Quick Select Chips */
.giga-chips-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.giga-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.giga-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: right;
  outline: none;
  font-family: inherit;
}

.giga-chip-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  transform: translateY(-1px);
}

.giga-chip-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

/* Compact Clean Form */
.giga-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px;
  border-radius: 16px;
}

.giga-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.giga-input-icon {
  position: absolute;
  right: 12px;
  font-size: 14px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s;
}

.giga-input-wrap input,
.giga-input-wrap select,
.giga-input-wrap textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 36px 9px 12px;
  color: #f8fafc;
  font-size: 12.5px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.giga-input-wrap select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
}

.giga-input-wrap input:focus,
.giga-input-wrap select:focus,
.giga-input-wrap textarea:focus {
  border-color: #10b981;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.giga-input-wrap input:focus + .giga-input-icon,
.giga-input-wrap textarea:focus + .giga-input-icon {
  color: #10b981;
}

.giga-input-wrap textarea {
  min-height: 52px;
  resize: none;
  line-height: 1.4;
  padding-top: 8px;
}

/* Submit Action */
.giga-submit {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  outline: none;
}

.giga-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.giga-submit:active {
  transform: translateY(0);
}

.giga-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Trust footer */
.giga-footer-trust {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Success View */
.giga-success {
  text-align: center;
  padding: 36px 16px;
  animation: gigaFadeUp 0.3s ease;
}

.giga-success-icon {
  width: 58px;
  height: 58px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.giga-success h3 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
}

.giga-success p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.giga-success-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.giga-success-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
