/* Ryan 2.0 Design Tokens */
.ryan-widget-container-fbda23cb {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Adjust for Admin Bar */
body.admin-bar .ryan-widget-container-fbda23cb {
  margin-bottom: 0;
}

/* Toggle Button - Compact Pill for Desktop */
.ryan-toggle-btn-fbda23cb {
  height: 44px;
  border-radius: 22px;
  background-color: #C8102E;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, width 0.2s ease;
  padding: 0 20px;
}

/* Collapse into smaller circular chat icon after first interaction class triggers */
.ryan-toggle-btn-fbda23cb.ryan-collapsed-fbda23cb {
  width: 44px;
  padding: 0;
}
.ryan-toggle-btn-fbda23cb.ryan-collapsed-fbda23cb .ryan-btn-text-fbda23cb {
  display: none;
}

.ryan-toggle-btn-fbda23cb:hover {
  transform: scale(1.05);
  background-color: #A00D25;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.5);
}

.ryan-toggle-btn-fbda23cb:active {
  transform: scale(0.95);
}

.ryan-btn-icon-fbda23cb {
  font-size: 16px;
  display: flex;
  align-items: center;
}

.ryan-btn-text-fbda23cb {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.ryan-status-dot-fbda23cb {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  border: 1.5px solid #C8102E;
}

/* Chat Window Container */
.ryan-chat-window-fbda23cb {
  width: 390px;
  height: 620px;
  max-height: calc(100vh - 120px);
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  bottom: 60px;
  right: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
  opacity: 1;
  transform: scale(1);
}

.ryan-chat-window-fbda23cb.ryan-hidden-fbda23cb {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  pointer-events: none;
}

/* Header */
.ryan-header-fbda23cb {
  background-color: #0A0A0A;
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1A1A1A;
}

.ryan-header-info-fbda23cb {
  display: flex;
  flex-direction: column;
}

.ryan-header-title-fbda23cb {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.ryan-header-subtitle-fbda23cb {
  font-size: 11px;
  color: #A3A3A3;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.ryan-online-indicator-fbda23cb {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  display: inline-block;
}

.ryan-close-btn-fbda23cb {
  background: none;
  border: none;
  color: #A3A3A3;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.ryan-close-btn-fbda23cb:hover {
  color: #FFFFFF;
}

/* Messages Area */
.ryan-messages-fbda23cb {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: #F8F9FA;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Custom Scrollbar */
.ryan-messages-fbda23cb::-webkit-scrollbar {
  width: 6px;
}
.ryan-messages-fbda23cb::-webkit-scrollbar-track {
  background: transparent;
}
.ryan-messages-fbda23cb::-webkit-scrollbar-thumb {
  background-color: #E5E5E5;
  border-radius: 3px;
}

/* Message Bubbles */
.ryan-msg-wrapper-fbda23cb {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.ryan-msg-wrapper-fbda23cb.user {
  align-self: flex-end;
}

.ryan-msg-wrapper-fbda23cb.ryan {
  align-self: flex-start;
}

.ryan-bubble-fbda23cb {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.ryan-msg-wrapper-fbda23cb.user .ryan-bubble-fbda23cb {
  background-color: #C8102E;
  color: #FFFFFF;
  border-bottom-right-radius: 2px;
}

.ryan-msg-wrapper-fbda23cb.ryan .ryan-bubble-fbda23cb {
  background-color: #FFFFFF;
  color: #0A0A0A;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #EAEAEA;
}

.ryan-bubble-fbda23cb p {
  margin: 0 0 8px 0;
}
.ryan-bubble-fbda23cb p:last-child {
  margin-bottom: 0;
}
.ryan-bubble-fbda23cb ul, .ryan-bubble-fbda23cb ol {
  margin: 4px 0;
  padding-left: 20px;
}
.ryan-bubble-fbda23cb li {
  margin-bottom: 4px;
}

/* Welcome Card style */
.ryan-welcome-card-fbda23cb {
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  margin-bottom: 10px;
}

.ryan-welcome-card-fbda23cb h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: #0A0A0A;
}

.ryan-welcome-card-fbda23cb .ryan-welcome-subtitle-fbda23cb {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #C8102E;
  font-weight: 700;
  margin-bottom: 12px;
}

.ryan-welcome-card-fbda23cb p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #4A4A4A;
  line-height: 1.5;
}

/* Language Selection */
.ryan-language-grid-fbda23cb {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.ryan-language-btn-fbda23cb {
  width: 100%;
  background-color: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 600;
  color: #0A0A0A;
}

.ryan-language-btn-fbda23cb:hover,
.ryan-language-btn-fbda23cb:focus {
  background-color: #C8102E;
  border-color: #C8102E;
  color: #FFFFFF;
  outline: none;
}

/* Starter Prompts Grid */
.ryan-starters-fbda23cb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ryan-starter-btn-fbda23cb {
  background-color: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  color: #0A0A0A;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.ryan-starter-btn-fbda23cb:hover {
  background-color: #C8102E;
  border-color: #C8102E;
  color: #FFFFFF;
}

.ryan-starter-btn-fbda23cb strong {
  display: block;
  font-size: 13px;
}

/* Recommended Products Container */
.ryan-products-container-fbda23cb {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ryan-product-card-fbda23cb {
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 10px;
  padding: 10px;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.ryan-prod-img-fbda23cb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  background-color: #FAFAFA;
}

.ryan-prod-info-fbda23cb {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ryan-prod-name-fbda23cb {
  font-weight: 700;
  font-size: 13px;
  color: #0A0A0A;
  margin-bottom: 4px;
  line-height: 1.3;
}

.ryan-prod-pricing-fbda23cb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.ryan-prod-price-fbda23cb {
  font-weight: 700;
  color: #C8102E;
}

.ryan-prod-old-price-fbda23cb {
  text-decoration: line-through;
  color: #9CA3AF;
}

.ryan-prod-btn-fbda23cb {
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  background-color: #0A0A0A;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.2s;
  align-self: flex-start;
  margin-top: 4px;
}

.ryan-prod-btn-fbda23cb:hover {
  background-color: #C8102E;
}

/* Escalation Button */
.ryan-escalate-btn-fbda23cb {
  background-color: #EBF8FF;
  border: 1px solid #BEE3F8;
  color: #2B6CB0;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  margin-top: 8px;
  display: block;
  text-decoration: none;
}

.ryan-escalate-btn-fbda23cb:hover {
  background-color: #C8102E;
  border-color: #C8102E;
  color: #FFFFFF;
}

/* Typing Indicator */
.ryan-typing-fbda23cb {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background-color: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 14px;
  border-bottom-left-radius: 2px;
  align-self: flex-start;
}

.ryan-typing-dot-fbda23cb {
  width: 6px;
  height: 6px;
  background-color: #C8102E;
  border-radius: 50%;
  animation: ryan-bounce-fbda23cb 1.4s infinite ease-in-out both;
}

.ryan-typing-dot-fbda23cb:nth-child(1) { animation-delay: -0.32s; }
.ryan-typing-dot-fbda23cb:nth-child(2) { animation-delay: -0.16s; }

@keyframes ryan-bounce-fbda23cb {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Error Message styling */
.ryan-error-bubble-fbda23cb {
  border: 1px solid #FCA5A5 !important;
  background-color: #FEF2F2 !important;
  color: #991B1B !important;
}

/* Footer / Input area */
.ryan-footer-fbda23cb {
  padding: 14px 16px;
  background-color: #FFFFFF;
  border-top: 1px solid #EAEAEA;
}

.ryan-input-wrapper-fbda23cb {
  display: flex;
  background-color: #F3F4F6;
  border-radius: 24px;
  padding: 4px 6px 4px 16px;
  align-items: center;
  transition: border-color 0.2s;
}

.ryan-input-wrapper-fbda23cb:focus-within {
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.2);
}

.ryan-input-field-fbda23cb {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: #0A0A0A;
  padding: 8px 0;
  resize: none;
  font-family: inherit;
  line-height: 1.4;
}

.ryan-send-btn-fbda23cb {
  background-color: #C8102E;
  color: #FFFFFF;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s, transform 0.1s;
}

.ryan-send-btn-fbda23cb svg {
  width: 14px;
  height: 14px;
  transform: translateX(1px);
}

.ryan-send-btn-fbda23cb:hover {
  background-color: #A00D25;
}

.ryan-send-btn-fbda23cb:disabled {
  background-color: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
}

/* Responsive / Mobile Design */
@media screen and (max-width: 480px) {
  .ryan-widget-container-fbda23cb {
    bottom: 12px;
    right: 12px;
  }
  
  /* Mobile: compact round icon style */
  .ryan-toggle-btn-fbda23cb {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
  }
  .ryan-toggle-btn-fbda23cb .ryan-btn-text-fbda23cb {
    display: none;
  }
  .ryan-toggle-btn-fbda23cb .ryan-btn-icon-fbda23cb {
    font-size: 20px;
  }
  
  .ryan-chat-window-fbda23cb {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    bottom: 0;
    right: 0;
    position: fixed;
    border-radius: 0;
  }
}

/* Ryan 2.4.1 — Human support call action */
.ryan-call-btn-fbda23cb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
  padding: 12px 16px;
  border-radius: 10px;
  background-color: #C8102E;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.22);
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.ryan-call-btn-fbda23cb:hover {
  background-color: #A00D25;
  transform: translateY(-1px);
}
.ryan-call-btn-fbda23cb:active {
  transform: translateY(0);
}
