/* Karşılama paneli – cannabo teması renkleriyle uyumlu */
.wp-overlay {
  --wp-green: var(--theme-color, #47b32d);
  --wp-green-dark: var(--theme-color-light, #2f9916);
  --wp-yellow: var(--theme-color2, #ffcb24);
  --wp-dark: var(--bg3-color, #1f2e21);
  --wp-text: var(--text-color, #4e4d4d);
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 28, 9, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s ease;
  font-family: "Poppins", sans-serif;
}
.wp-overlay[hidden] { display: none; }
.wp-overlay.is-open { opacity: 1; }

.wp-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(7, 28, 9, .55), 0 0 0 1px rgba(255, 255, 255, .6) inset;
  overflow: hidden;
  transform: translateY(12px) scale(.94);
  transition: transform .35s cubic-bezier(.2, .8, .25, 1.15);
  outline: none;
}
.wp-overlay.is-open .wp-dialog { transform: none; }
.wp-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--wp-green), var(--wp-yellow));
}

.wp-scroll {
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 36px 36px 24px;
  text-align: center;
}

.wp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f4f1;
  color: var(--wp-dark);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.wp-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.wp-close:hover { background: #e2e9e1; transform: rotate(90deg); }
.wp-close:focus-visible, .wp-btn:focus-visible, .wp-later:focus-visible {
  outline: 3px solid var(--wp-yellow);
  outline-offset: 3px;
}

.wp-head {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.wp-logo { max-width: 180px; height: auto; }

.wp-title {
  margin: 0 0 12px;
  color: var(--wp-dark);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}
.wp-desc {
  margin: 0 auto 16px;
  max-width: 440px;
  color: var(--wp-text);
  font-size: 15px;
  line-height: 1.65;
}
.wp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff7dc;
  color: #6b5200;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.wp-badge svg { width: 16px; height: 16px; flex: none; fill: var(--wp-yellow); }

.wp-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wp-actions--3 .wp-btn--fb { grid-column: 1 / -1; }

.wp-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 16px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.wp-btn:hover, .wp-btn:focus { color: #fff; text-decoration: none; }
.wp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .5);
  filter: brightness(1.06);
}
.wp-btn:active { transform: translateY(0); }
.wp-btn svg {
  width: 40px;
  height: 40px;
  flex: none;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  fill: currentColor;
}
.wp-btn span { display: flex; flex-direction: column; min-width: 0; }
.wp-btn strong { font-size: 16px; font-weight: 600; line-height: 1.25; }
.wp-btn small { font-size: 12.5px; opacity: .9; line-height: 1.35; white-space: nowrap; }
.wp-btn--wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.wp-btn--call { background: linear-gradient(135deg, var(--wp-green), var(--wp-green-dark)); }
.wp-btn--fb { background: linear-gradient(135deg, #1877f2, #0b5fcc); justify-content: center; }

.wp-later {
  margin-top: 18px;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .2s;
}
.wp-later:hover { color: var(--wp-dark); }

body.wp-locked { overflow: hidden; }

@media (max-width: 575px) {
  .wp-overlay { padding: 12px; }
  .wp-dialog { border-radius: 20px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .wp-scroll { padding: 30px 18px 16px; }
  .wp-logo { max-width: 140px; }
  .wp-title { font-size: 21px; padding: 0 22px; }
  .wp-desc { font-size: 14px; }
  .wp-badge { font-size: 12px; margin-bottom: 20px; }
  .wp-actions { grid-template-columns: 1fr; gap: 10px; }
  .wp-btn--fb { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .wp-overlay, .wp-dialog, .wp-btn, .wp-close { transition: none; }
  .wp-dialog { transform: none; }
}
