/* Yadzhak TechMotion hybrid chat widget.
   This file is separate from styles.css to avoid production/mobile cache issues. */

.ytm-chat-fab {
  position: fixed !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  width: 58px !important;
  height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid rgba(24, 240, 208, 0.75) !important;
  border-radius: 18px !important;
  background: radial-gradient(circle at 30% 20%, rgba(24, 240, 208, 0.25), rgba(3, 14, 18, 0.98) 62%) !important;
  color: #eafffb !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 2147483000 !important;
  box-shadow: 0 0 26px rgba(24, 240, 208, 0.35), inset 0 0 18px rgba(24, 240, 208, 0.12) !important;
  -webkit-tap-highlight-color: transparent !important;
  appearance: none !important;
}

.ytm-widget-modal {
  position: fixed !important;
  right: 24px !important;
  bottom: 96px !important;
  width: 390px !important;
  max-width: calc(100vw - 32px) !important;
  display: none !important;
  z-index: 2147483001 !important;
}

.ytm-widget-modal.is-open {
  display: block !important;
}

.ytm-widget-modal[hidden] {
  display: none !important;
}

.ytm-widget-card {
  position: relative !important;
  max-height: min(650px, calc(100vh - 140px)) !important;
  overflow-y: auto !important;
  padding: 24px !important;
  border: 1px solid rgba(24, 240, 208, 0.42) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, rgba(2, 12, 16, 0.98), rgba(5, 26, 31, 0.98)) !important;
  color: #eafffb !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 32px rgba(24, 240, 208, 0.22) !important;
}

.ytm-widget-close {
  position: absolute !important;
  top: 10px !important;
  right: 14px !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  background: transparent !important;
  color: #eafffb !important;
  font-size: 28px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.ytm-widget-card h3 {
  margin: 0 32px 10px 0 !important;
  color: #f4fffc !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
}

.ytm-widget-card p {
  color: rgba(234, 255, 251, 0.84) !important;
}

.ytm-widget-services {
  margin: 10px 0 16px !important;
  padding-left: 18px !important;
  color: rgba(234, 255, 251, 0.9) !important;
}

.ytm-widget-services li {
  margin: 4px 0 !important;
}

.ytm-widget-actions {
  display: grid !important;
  gap: 10px !important;
  margin-top: 16px !important;
}

.ytm-widget-btn,
.ytm-widget-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 11px 14px !important;
  border: 1px solid rgba(24, 240, 208, 0.62) !important;
  border-radius: 14px !important;
  background: rgba(24, 240, 208, 0.08) !important;
  color: #eafffb !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  appearance: none !important;
}

.ytm-widget-btn:hover,
.ytm-widget-link:hover {
  background: rgba(24, 240, 208, 0.18) !important;
  color: #ffffff !important;
}

.ytm-widget-form {
  display: block !important;
  margin-top: 16px !important;
}

.ytm-widget-form input,
.ytm-widget-form textarea {
  display: block !important;
  width: 100% !important;
  margin-bottom: 10px !important;
  padding: 12px 13px !important;
  border: 1px solid rgba(24, 240, 208, 0.28) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: #eafffb !important;
  outline: none !important;
}

.ytm-widget-form textarea {
  min-height: 108px !important;
  resize: vertical !important;
}

.ytm-widget-status {
  display: none !important;
  margin-top: 12px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(24, 240, 208, 0.25) !important;
  border-radius: 14px !important;
  background: rgba(24, 240, 208, 0.08) !important;
}

.ytm-widget-status.is-open {
  display: block !important;
}

.ytm-widget-status.is-error {
  border-color: rgba(255, 90, 90, 0.55) !important;
  background: rgba(255, 90, 90, 0.08) !important;
}

@media (max-width: 640px) {
  .ytm-chat-fab {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 17px !important;
    font-size: 22px !important;
  }

  .ytm-widget-modal {
    right: 12px !important;
    left: 12px !important;
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
  }

  .ytm-widget-card {
    max-height: calc(100vh - 160px) !important;
    padding: 22px 18px !important;
    border-radius: 22px !important;
  }
}