/* ============================================================
   ORTAK Hızlı İletişim Widget — 5 görsel tasarım (tema-bağımsız)
   Prefiks: qcw-  |  Tüm temalarda yüklenir.
   Aksan renkleri tema CSS değişkenlerinden beslenir (--bg-button vb.),
   böylece widget aktif tema ile uyumlu görünür. Marka kanalları
   (WhatsApp/Instagram) kendi tanınır renklerini korur.
   ============================================================ */

.qcw {
    /* Tema'dan gelen aksan + nötr tonlar (fallback'li) */
    --qcw-accent: var(--bg-button, #ab8a62);
    --qcw-accent-d: var(--bg-button-hover, #8a6f4e);
    --qcw-on-accent: var(--color-button, #fff);
    --qcw-ink: var(--color-heading, #222);
    --qcw-surface: var(--bg-body, #fff);
    --qcw-text: var(--color-body, #555);

    /* Marka renkleri */
    --qcw-wa: #25d366;
    --qcw-phone: #2b2f33;
    --qcw-dir: #0ea5e9;
    --qcw-res: var(--qcw-accent);

    position: fixed;
    /* Tüm tema overlay'lerinin (Tema2 lightbox 10001, sticky header vb.) üstünde kal */
    z-index: 2147483000;
    font-family: inherit;
    line-height: 1.3;
}

/* Ortak ikon dairesi */
.qcw-ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    flex: 0 0 auto;
    font-size: 18px;
}

/* Marka renk sınıfları */
.qcw-c-wa    { background: var(--qcw-wa); }
.qcw-c-phone { background: var(--qcw-ink); }
.qcw-c-ig    { background: linear-gradient(45deg, #f58529 0%, #dd2a7b 50%, #515bd4 100%); }
.qcw-c-dir   { background: var(--qcw-dir); }
.qcw-c-res   { background: var(--qcw-accent); }

.qcw a { text-decoration: none; }

/* Inline SVG ikonlar — icon-font bağımsız (her temada aynı render) */
.qcw svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    flex: 0 0 auto;
    fill: currentColor;
}

.qcw-ico svg { width: 20px; height: 20px; }

/* Aç/kapa ikon değişimi (telefon ↔ çarpı) — JS yok, CSS ile */
.qcw-ti { display: inline-flex; }
.qcw-ti--open { display: none; }
.qcw.is-open .qcw-ti--closed { display: none; }
.qcw.is-open .qcw-ti--open { display: inline-flex; }

/* ════════════════════════════════════════════════════════════
   TASARIM 1 — Kayan İletişim Çubuğu (mevcut)
   ════════════════════════════════════════════════════════════ */
.qcw--d1 { right: 18px; bottom: 18px; }

.qcw-d1__wrap { width: min(320px, calc(100vw - 36px)); }

.qcw-d1__panel {
    background: var(--qcw-surface);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    overflow: hidden;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
    margin-bottom: 10px;
}

.qcw--d1.is-open .qcw-d1__panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.qcw-d1__list { padding: 16px 16px 10px; }

.qcw-d1-link {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 10px;
    color: inherit;
}

.qcw-d1-link:hover { background: rgba(0, 0, 0, .05); }

.qcw-d1-txt small {
    display: block;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11px;
    color: #9a948a;
    margin-bottom: 3px;
    font-weight: 600;
}

.qcw-d1-txt b {
    display: block;
    color: var(--qcw-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.qcw-d1__bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--qcw-accent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.qcw-d1__bar.one-col { grid-template-columns: 1fr; }

.qcw-d1-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--qcw-on-accent);
    padding: 16px 8px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    display: flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    user-select: none;
}

.qcw-d1-btn + .qcw-d1-btn { border-left: 1px solid rgba(255, 255, 255, .22); }
.qcw-d1__bar.one-col .qcw-d1-btn + .qcw-d1-btn { border-left: 0; }
.qcw-d1-btn:hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 768px) {
    .qcw--d1 { left: 0; right: 0; bottom: 0; padding: 10px 12px; display: flex; justify-content: center; }
    .qcw-d1__wrap { width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   TASARIM 2 — Rezervasyon Çubuğu (sabit alt, geniş segmentler)
   ════════════════════════════════════════════════════════════ */
.qcw--d2 { right: 16px; bottom: 16px; left: auto; }

.qcw-d2__bar {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .26);
}

.qcw-d2-seg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 168px;
    padding: 12px 22px;
    background: var(--qcw-phone);
    color: #fff;
    transition: filter .18s ease;
}

.qcw-d2-seg + .qcw-d2-seg { border-left: 1px solid rgba(255, 255, 255, .12); }
.qcw-d2-seg:hover { filter: brightness(1.12); }

.qcw-d2-seg__top {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .82);
    letter-spacing: .02em;
}

.qcw-d2-seg__main {
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qcw-d2-seg--res {
    background: #2bae66;
    border-left-color: rgba(255, 255, 255, .25) !important;
}

.qcw-d2-seg--res:hover { filter: brightness(1.08); }

@media (max-width: 768px) {
    .qcw--d2 { left: 0; right: 0; bottom: 0; }
    .qcw-d2__bar { border-radius: 0; }
    .qcw-d2-seg { flex: 1 1 0; min-width: 0; padding: 10px 8px; text-align: center; align-items: center; }
    .qcw-d2-seg__top { font-size: 11px; }
    .qcw-d2-seg__main { font-size: 14px; }
    .qcw-d2-seg__main i { font-size: 13px; }
}

/* ════════════════════════════════════════════════════════════
   TASARIM 3 — Yuvarlak Balonlar (FAB yığını)
   ════════════════════════════════════════════════════════════ */
.qcw--d3 { right: 22px; bottom: 22px; }

.qcw-d3-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: var(--qcw-accent);
    color: var(--qcw-on-accent);
    font-size: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    display: grid;
    place-items: center;
    transition: transform .25s ease, background .2s ease;
}

.qcw-d3-main:hover { background: var(--qcw-accent-d); }
/* Açıkken ikon chat→çarpı olur (CSS .qcw-ti); ek dönüş yok. */

.qcw-d3__stack {
    position: absolute;
    right: 6px;
    bottom: 74px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

.qcw-d3-bubble {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
    position: relative;
    transform: translateY(14px) scale(.4);
    opacity: 0;
    pointer-events: none;
    transition: transform .26s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
}

.qcw--d3.is-open .qcw-d3-bubble {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Sıralı (stagger) açılış */
.qcw--d3.is-open .qcw-d3-bubble:nth-child(1) { transition-delay: .04s; }
.qcw--d3.is-open .qcw-d3-bubble:nth-child(2) { transition-delay: .08s; }
.qcw--d3.is-open .qcw-d3-bubble:nth-child(3) { transition-delay: .12s; }
.qcw--d3.is-open .qcw-d3-bubble:nth-child(4) { transition-delay: .16s; }
.qcw--d3.is-open .qcw-d3-bubble:nth-child(5) { transition-delay: .20s; }

/* Hover etiketi (sola açılır) */
.qcw-d3-bubble::after {
    content: attr(data-qcw-tip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--qcw-ink);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 11px;
    border-radius: 7px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.qcw-d3-bubble:hover::after { opacity: 1; }

@media (max-width: 768px) {
    .qcw--d3 { right: 16px; bottom: 16px; }
}

/* ════════════════════════════════════════════════════════════
   TASARIM 4 — Yan Dok (dikey sekmeler, hover ile açılır)
   ════════════════════════════════════════════════════════════ */
.qcw--d4 {
    right: 0;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qcw-d4-dock,
.qcw-d4__dock {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qcw-d4-tab {
    display: flex;
    align-items: center;
    color: #fff;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    transform: translateX(calc(100% - 48px));
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.qcw-d4-tab:hover,
.qcw-d4-tab:focus-visible { transform: translateX(0); }

.qcw-d4-tab__ico {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 19px;
    flex: 0 0 auto;
}

.qcw-d4-tab__lbl {
    padding: 0 18px 0 4px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    line-height: 48px;
}

@media (max-width: 768px) {
    .qcw--d4 { gap: 6px; }
    .qcw-d4-tab { transform: none; border-radius: 10px 0 0 10px; }
    .qcw-d4-tab__lbl { display: none; }
    .qcw-d4-tab__ico { width: 44px; height: 44px; }
}

/* ════════════════════════════════════════════════════════════
   TASARIM 5 — Alt Panel (Bottom Sheet)
   ════════════════════════════════════════════════════════════ */
.qcw--d5 { left: 0; right: 0; bottom: 0; pointer-events: none; }

.qcw-d5-pill {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    pointer-events: auto;
    border: 0;
    cursor: pointer;
    background: var(--qcw-accent);
    color: var(--qcw-on-accent);
    font-size: 15px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .26);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.qcw-d5-pill:hover { background: var(--qcw-accent-d); }
.qcw--d5.is-open .qcw-d5-pill { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }

.qcw-d5__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.qcw--d5.is-open .qcw-d5__backdrop { opacity: 1; visibility: visible; pointer-events: auto; }

.qcw-d5__sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 520px;
    margin: 0 auto;
    background: var(--qcw-surface);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, .22);
    padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    pointer-events: auto;
}

.qcw--d5.is-open .qcw-d5__sheet { transform: translateY(0); }

.qcw-d5__handle {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    margin: 4px auto 10px;
}

.qcw-d5__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: var(--qcw-ink);
    margin-bottom: 12px;
}

.qcw-d5__x {
    border: 0;
    background: rgba(0, 0, 0, .06);
    color: var(--qcw-ink);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
}

.qcw-d5-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--qcw-accent);
    color: var(--qcw-on-accent);
    font-weight: 700;
    font-size: 15px;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.qcw-d5-cta:hover { background: var(--qcw-accent-d); }

.qcw-d5__list { display: flex; flex-direction: column; gap: 4px; }

.qcw-d5-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 6px;
    border-radius: 12px;
    color: inherit;
}

.qcw-d5-row:hover { background: rgba(0, 0, 0, .05); }

.qcw-d5-txt { flex: 1 1 auto; }

.qcw-d5-txt small {
    display: block;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11px;
    color: #9a948a;
    font-weight: 600;
    margin-bottom: 2px;
}

.qcw-d5-txt b {
    display: block;
    color: var(--qcw-text);
    font-size: 15px;
    font-weight: 700;
}

.qcw-d5-row__arr { color: #c3bdb3; font-size: 18px; display: inline-flex; align-items: center; }

/* Hareketi azalt tercihi */
@media (prefers-reduced-motion: reduce) {
    .qcw * { transition: none !important; }
}
