/*
  3E Yazılım ortak müşteri hizmetleri görünümü.
  Bu dosya bütün eski müşteri hizmetleri CSS'lerinden sonra yüklenir.
*/

.e3-support-widget,
.lead-row {
  display: none !important;
}

.three-customer-service {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  left: auto !important;
  top: auto !important;
  z-index: 999990 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
  transform: none !important;
}

.three-customer-button {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;

  width: 214px !important;
  height: 60px !important;
  min-width: 214px !important;
  min-height: 60px !important;
  max-width: none !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 18px !important;

  border: 0 !important;
  border-radius: 17px !important;
  background: linear-gradient(
    135deg,
    #07152d 0%,
    #1244a4 100%
  ) !important;

  color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .27) !important;
  transition:
    transform .18s ease,
    box-shadow .18s ease !important;
}

.three-customer-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 21px 48px rgba(15, 23, 42, .32) !important;
}

.three-customer-button svg {
  display: block !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  color: #ffffff !important;
}

.three-customer-button span {
  display: block !important;
  overflow: visible !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.three-customer-button::after {
  content: "" !important;
  position: absolute !important;
  top: 9px !important;
  right: 9px !important;

  display: block !important;
  width: 11px !important;
  height: 11px !important;

  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: #14b86c !important;
  box-shadow: 0 0 0 4px rgba(20, 184, 108, .18) !important;
}

.three-customer-panel {
  position: absolute !important;
  right: 0 !important;
  bottom: 76px !important;
  left: auto !important;
  top: auto !important;

  display: block !important;
  width: 360px !important;
  max-width: calc(100vw - 28px) !important;
  max-height: min(620px, calc(100vh - 120px)) !important;
  overflow: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid #dbe7f5 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 27px 72px rgba(15, 23, 42, .28) !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(12px) scale(.97) !important;

  transition:
    opacity .18s ease,
    visibility 0s linear .18s,
    transform .18s ease !important;
}

.three-customer-service.open .three-customer-panel {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;

  transition:
    opacity .18s ease,
    visibility 0s linear 0s,
    transform .18s ease !important;
}

.three-customer-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 16px !important;

  border: 0 !important;
  background: #07152d !important;
  color: #ffffff !important;
}

.three-customer-head b {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.three-customer-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;

  border: 1px solid rgba(255,255,255,.19) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.08) !important;
  color: #ffffff !important;

  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.three-customer-body {
  display: block !important;
  padding: 14px !important;
  background: #f7faff !important;
}

.three-customer-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.three-customer-form input,
.three-customer-form textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 46px !important;

  margin: 0 !important;
  padding: 0 12px !important;

  border: 1px solid #d6e1ef !important;
  border-radius: 11px !important;
  outline: 0 !important;
  background: #ffffff !important;
  color: #101828 !important;
  box-shadow: none !important;

  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.three-customer-form textarea {
  min-height: 82px !important;
  padding-top: 11px !important;
  padding-bottom: 11px !important;
  resize: vertical !important;
}

.three-customer-form input:focus,
.three-customer-form textarea:focus {
  border-color: #155eef !important;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, .10) !important;
}

.three-customer-form button[type="submit"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 15px !important;

  border: 0 !important;
  border-radius: 11px !important;
  background: #12a855 !important;
  color: #ffffff !important;
  box-shadow: 0 13px 26px rgba(18, 168, 85, .22) !important;

  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.three-customer-toast {
  position: absolute !important;
  right: 0 !important;
  bottom: 76px !important;
  left: auto !important;
  width: auto !important;
  min-width: 210px !important;
  max-width: 280px !important;
}

/* Mobil görünüm bütün sayfalarda aynı */
@media (max-width: 768px) {
  .three-customer-service {
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    left: auto !important;
  }

  .three-customer-button {
    width: 184px !important;
    height: 56px !important;
    min-width: 184px !important;
    min-height: 56px !important;
    max-width: 184px !important;
    max-height: 56px !important;

    padding: 0 15px !important;
    gap: 11px !important;
    border-radius: 15px !important;
  }

  .three-customer-button svg {
    flex-basis: 27px !important;
    width: 27px !important;
    height: 27px !important;
  }

  .three-customer-button span {
    display: block !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .three-customer-button::after {
    top: 8px !important;
    right: 8px !important;
    width: 10px !important;
    height: 10px !important;
  }

  .three-customer-panel {
    position: fixed !important;
    right: 12px !important;
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    top: auto !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: min(72dvh, 580px) !important;

    border-radius: 16px !important;
    transform: translateY(12px) scale(.98) !important;
  }

  .three-customer-service.open .three-customer-panel {
    transform: translateY(0) scale(1) !important;
  }

  .three-customer-head {
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 14px !important;
  }

  .three-customer-head b {
    font-size: 14px !important;
  }

  .three-customer-body {
    padding: 12px !important;
  }

  .three-customer-form {
    gap: 9px !important;
  }

  .three-customer-form input {
    min-height: 44px !important;
  }

  .three-customer-form textarea {
    min-height: 72px !important;
  }

  .three-customer-toast {
    position: fixed !important;
    right: 12px !important;
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 390px) {
  .three-customer-button {
    width: 172px !important;
    min-width: 172px !important;
    max-width: 172px !important;
  }

  .three-customer-button span {
    font-size: 11.5px !important;
  }
}
