/* Sex-24.pl — chat WhatsApp: aktywne przyciski + popup zamówienia */

/* --- przyciski aktywowane zamiast dawnych nieaktywnych <span> --- */
button.ga-btn, button.ta-btn, button.cta-extra-btn, button.co-btn-mobile {
  font-family: inherit; cursor: pointer; margin: 0;
  -webkit-appearance: none; appearance: none;
}
button.ta-btn { padding: 0; }
.ga-btn.ga-whatsapp, .ta-btn.ta-whatsapp, .co-btn-mobile.co-chat-btn { border-color: #25D366; }
.ga-btn.ga-whatsapp:active, .ta-btn.ta-whatsapp:active { background: rgba(37,211,102,.18); }
.co-btn-mobile.co-chat-btn { color: #fff; }
.co-chat-price { color: var(--text-faint); font-size: 12px; margin-top: 8px; text-align: center; display: none; }
@media (max-width: 768px) { .co-chat-price { display: block; } }

/* desktop, karty: DUŻY, wypełniony przycisk czatu (na samej górze bloku kontaktowego) */
@media (min-width: 769px) {
  .girl-card .cta-extra-btn.cta-chat-btn {
    width: 100%; position: relative; z-index: 3;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 12px; min-height: 58px; border-radius: 14px; border: 0;
    background: linear-gradient(180deg, #34e07a 0%, #25D366 55%, #1fb958 100%);
    color: #04140a; text-align: left; line-height: 1.15; cursor: pointer;
    box-shadow: 0 10px 26px -8px rgba(37,211,102,.7), inset 0 1px 0 rgba(255,255,255,.35);
    transition: transform .15s, box-shadow .15s, filter .15s;
  }
  .girl-card .cta-extra-btn.cta-chat-btn:hover {
    transform: translateY(-2px); filter: brightness(1.06);
    box-shadow: 0 14px 30px -8px rgba(37,211,102,.85), inset 0 1px 0 rgba(255,255,255,.4);
  }
  .cta-chat-btn .cta-wa-icon {
    flex: none; border-radius: 50%; box-shadow: 0 0 0 2.5px #fff; background: #fff;
  }
  .cta-chat-btn .cta-chat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .cta-chat-btn .cta-chat-label { font-family: 'Manrope','Inter',sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
  .girl-card .cta-chat-btn .cta-price-tag {
    margin: 0; padding: 0; background: none; border: 0; border-radius: 0;
    font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; color: rgba(4,20,10,.8);
  }
}
[data-chat-order]:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }

/* --- popup --- */
.cm-backdrop {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(4,4,9,.84); overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 12px; align-items: flex-start; justify-content: center;
}
.cm-backdrop.open { display: flex; }
.cm-modal {
  position: relative; width: 100%; max-width: 480px; margin: 16px auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.cm-close {
  position: absolute; top: 8px; right: 10px; width: 40px; height: 40px;
  background: none; border: none; color: var(--text-dim); font-size: 28px; line-height: 1; cursor: pointer;
  border-radius: 50%;
}
.cm-close:hover { color: #fff; background: var(--surface-2); }
.cm-title { font-size: 20px; margin: 0 40px 4px 0; display: flex; align-items: center; gap: 8px; }
.cm-title svg { flex: none; }
.cm-sub { color: var(--text-dim); font-size: 13.5px; margin: 0 0 16px; }
.cm-sub strong { color: #fff; }

.cm-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin: 0 0 6px; }
.cm-field { margin-bottom: 14px; }
.cm-field input[type=text], .cm-field input[type=email], .cm-field input[type=tel],
.cm-field select, .cm-field textarea {
  width: 100%; padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-alt); color: var(--text);
  font-family: inherit; font-size: 16px; /* 16px: iOS nie przybliża pola */
}
.cm-field textarea { min-height: 84px; resize: vertical; }
.cm-field input:focus, .cm-field select:focus, .cm-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,0,63,.25);
}
.cm-phone { display: flex; gap: 8px; }
.cm-phone select { flex: 0 0 122px; width: auto; }
.cm-phone input { flex: 1; min-width: 0; }

.cm-pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cm-pkg { position: relative; display: block; cursor: pointer; }
.cm-pkg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cm-pkg-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 14px 6px 12px; border-radius: var(--radius-sm); text-align: center;
  background: var(--bg-alt); border: 2px solid var(--border); min-height: 78px;
}
.cm-pkg-min { font-weight: 700; font-size: 13px; color: var(--text-dim); }
.cm-pkg-price { font-family: 'Manrope','Inter',sans-serif; font-weight: 800; font-size: 22px; color: #fff; }
.cm-pkg input:checked + .cm-pkg-box { border-color: #25D366; background: rgba(37,211,102,.10); }
.cm-pkg input:focus-visible + .cm-pkg-box { outline: 3px solid var(--highlight); outline-offset: 2px; }
.cm-pkg-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
  background: var(--highlight); color: #1a1400; padding: 2px 8px; border-radius: 999px;
}

.cm-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; }
.cm-consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.cm-consent label { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.cm-consent a { color: #fff; }

.cm-submit {
  width: 100%; padding: 14px 16px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff; font-family: inherit; font-weight: 800; font-size: 16px;
}
.cm-submit:hover { filter: brightness(1.08); }
.cm-submit:disabled { opacity: .6; cursor: wait; }
.cm-msg { min-height: 20px; margin-top: 10px; font-size: 13.5px; color: #ff8aa5; }
.cm-note { margin: 12px 0 0; font-size: 12px; color: var(--text-faint); text-align: center; }
.cm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 380px) {
  .cm-modal { padding: 22px 14px 18px; }
  .cm-pkg-price { font-size: 19px; }
  .cm-phone select { flex-basis: 108px; }
}

/* ===== mobile: karty (Chat na całą szerokość, pod nim Zadzwoń / SMS) ===== */
.ga-btn.ga-wide { grid-column: 1 / -1; padding: 13px 10px; font-size: 14.5px; background: rgba(37,211,102,.10); }

/* ===== mobile: profil — trzy ikony pod zdjęciem (Chat / Zadzwoń / SMS) ===== */
@media (max-width: 780px) {
  .tinder-actions { gap: 12px; }
  .tinder-actions .ta-item,
  .tinder-actions .ta-item:has(.ta-call) { width: 92px; }
  .tinder-actions .ta-label { font-size: 11.5px; }
  .ta-btn.ta-whatsapp { background: rgba(37,211,102,.10); }
}

/* ===== desktop: profil — duży panel „Chat na żywo" obok numeru IVR i SMS-a ===== */
@media (min-width: 769px) {
  .desktop-contact-block.dcb-split {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 28px; align-items: stretch;
  }
  .dcb-left { min-width: 0; }
  .dcb-chat {
    position: relative; display: flex; flex-direction: column; gap: 14px;
    padding: 22px 20px 18px; border-radius: var(--radius); border: 2px solid #25D366;
    background: linear-gradient(150deg, rgba(37,211,102,.22), rgba(37,211,102,.06) 55%, rgba(37,211,102,0) 100%);
    box-shadow: 0 0 0 1px rgba(37,211,102,.14), 0 20px 44px -20px rgba(37,211,102,.5);
  }
  .dcb-chat-head { display: flex; align-items: center; gap: 14px; }
  .dcb-wa-icon { flex: none; display: block; filter: drop-shadow(0 6px 14px rgba(37,211,102,.45)); }
  .dcb-chat-title { font-family: 'Manrope','Inter',sans-serif; font-weight: 800; font-size: 26px; line-height: 1.1; color: #fff; }
  .dcb-chat-sub { margin-top: 3px; font-size: 13px; color: var(--text-dim); }
  .dcb-chat-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
  .dcb-pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 6px; }
  .dcb-pkg {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 15px 6px 12px; cursor: pointer; font-family: inherit; color: #fff;
    background: rgba(10,10,15,.55); border: 2px solid rgba(37,211,102,.45); border-radius: var(--radius-sm);
    -webkit-appearance: none; appearance: none; transition: background .15s, border-color .15s, transform .15s;
  }
  .dcb-pkg:hover { background: rgba(37,211,102,.24); border-color: #25D366; transform: translateY(-1px); }
  .dcb-pkg:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
  .dcb-pkg .m { font-size: 12.5px; font-weight: 700; color: var(--text-dim); }
  .dcb-pkg .p { font-family: 'Manrope','Inter',sans-serif; font-weight: 800; font-size: 24px; line-height: 1.1; }
  .dcb-pkg.featured { border-color: #25D366; background: rgba(37,211,102,.16); }
  .dcb-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
    font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
    background: var(--highlight); color: #1a1400; padding: 2px 8px; border-radius: 999px;
  }
  .dcb-foot { font-size: 11.5px; color: var(--text-faint); text-align: center; }
}
/* na węższych ekranach desktopowych panel schodzi pod numer i SMS */
@media (min-width: 769px) and (max-width: 1060px) {
  .desktop-contact-block.dcb-split { grid-template-columns: 1fr; }
}

/* ===== desktop: karty — pasek czatu na górze bloku kontaktowego (nad numerem IVR) ===== */
@media (min-width: 769px) {
  .cta-extra.cta-extra-top { margin: 0 0 14px; padding: 0 0 14px; border-top: none; border-bottom: 1px solid var(--border); }
}

/* ===== mobile: profil — blok czatu nad kartą z numerem IVR (na desktopie ukryty; jest tam panel) ===== */
.contact-option.co-chat-top { margin: 4px 0 14px; }
@media (min-width: 769px) { .contact-option.co-chat-top { display: none; } }

/* węższe kolumny kart (ok. 900–1180 px): nieco mniejszy napis, żeby "Chat na żywo" nie łamał się na dwie linie */
@media (min-width: 769px) and (max-width: 1180px) {
  .cta-chat-btn .cta-chat-label { font-size: 15px; white-space: nowrap; }
  .girl-card .cta-extra-btn.cta-chat-btn { gap: 8px; padding: 11px 9px; }
  .cta-chat-btn .cta-wa-icon { width: 24px; height: 24px; }
}

/* strona główna, desktop: dłuższy nagłówek H1 dostaje więcej szerokości (mniej linii) */
@media (min-width: 769px) { .hero h1 { max-width: 980px; } }
