/* Banner — ödeme kutusunun altı (ikincil aksiyon) */
.hbl-wa-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #86efac;
  border-radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hbl-wa-banner-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbl-wa-banner-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.hbl-wa-banner-body strong {
  display: block;
  font-size: 16px;
  color: #14532d;
  margin-bottom: 6px;
}

.hbl-wa-banner-body p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #166534;
}

.hbl-wa-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hbl-wa-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #25d366;
  color: #fff !important;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s;
}

.hbl-wa-banner-btn:hover {
  background: #128c7e;
  color: #fff !important;
}

.hbl-wa-banner-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hbl-wa-banner-btn--tg {
  background: #229ed9;
}

.hbl-wa-banner-btn--tg:hover {
  background: #1a7fb3;
}

/* Floating widget */
.hbl-wa-root {
  --hbl-wa-green: #25d366;
  --hbl-wa-dark: #128c7e;
  --hbl-wa-teal: #075e54;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
}

.hbl-wa-root *,
.hbl-wa-root *::before,
.hbl-wa-root *::after {
  box-sizing: border-box;
}

.hbl-wa-toggle {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: var(--hbl-wa-green);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  margin-left: auto;
  padding: 0;
  position: relative;
  transition: transform 0.2s, background 0.2s;
}

.hbl-wa-toggle:hover {
  background: var(--hbl-wa-dark);
  transform: scale(1.05);
}

.hbl-wa-toggle svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.hbl-wa-toggle .hbl-wa-close {
  display: none;
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
}

.hbl-wa-root.is-open .hbl-wa-toggle svg {
  display: none;
}

.hbl-wa-root.is-open .hbl-wa-toggle .hbl-wa-close {
  display: block;
}

.hbl-wa-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #ea0038;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbl-wa-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.hbl-wa-root.is-open .hbl-wa-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.hbl-wa-header {
  background: linear-gradient(135deg, var(--hbl-wa-teal), var(--hbl-wa-dark));
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hbl-wa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hbl-wa-avatar svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.hbl-wa-header-text h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.hbl-wa-status {
  margin: 2px 0 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.9);
}

.hbl-wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #53bdeb;
}

.hbl-wa-dot.is-offline {
  background: #94a3b8;
}

.hbl-wa-body {
  background: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4cdc4' fill-opacity='0.35'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  padding: 18px 14px 14px;
  min-height: 120px;
}

.hbl-wa-bubble-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.hbl-wa-bubble-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hbl-wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hbl-wa-bubble-avatar svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.hbl-wa-bubble {
  background: #fff;
  padding: 9px 12px;
  border-radius: 0 10px 10px 10px;
  max-width: 82%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  position: relative;
}

.hbl-wa-bubble::before {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 0;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent #fff transparent;
}

.hbl-wa-bubble p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #111b21;
  white-space: pre-wrap;
}

.hbl-wa-bubble time {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #667781;
  margin-top: 4px;
}

.hbl-wa-hours {
  text-align: center;
  font-size: 11px;
  color: #667781;
  margin: 10px 0 0;
}

.hbl-wa-footer {
  padding: 12px 14px 14px;
  background: #f0f2f5;
}

.hbl-wa-send {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--hbl-wa-green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}

.hbl-wa-send:hover {
  background: var(--hbl-wa-dark);
}

.hbl-wa-send svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .hbl-wa-banner {
    flex-direction: row;
    align-items: flex-start;
    margin: 0 0 24px;
    padding: 14px 16px;
    box-sizing: border-box;
  }

  .hbl-wa-banner-icon {
    width: 44px;
    height: 44px;
  }

  .hbl-wa-banner-icon svg {
    width: 24px;
    height: 24px;
  }

  .hbl-wa-banner-body strong {
    font-size: 15px;
  }

  .hbl-wa-banner-body p {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .hbl-wa-banner-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .hbl-wa-banner-actions {
    width: 100%;
  }

  .hbl-wa-root {
    bottom: 16px;
    right: 16px;
  }
}
