/* Yardım penceresi (0165; Views/Shared/Components/HelpWidget). Esat'ın Apple dili (apple.css değişkenleri), marka mavisi
   --primary-color. Masaüstünde sağ altta 380 px pencere, telefonda tam ekran; alttaki araç çubuğunun üstünde durur. */
.yp { --yp-blue: var(--primary-color, #244d8f); --yp-ink: var(--apple-ink, #1d1d1f); --yp-muted: var(--apple-muted, #6e6e73);
      --yp-hair: var(--apple-hair, #e8e8ed); --yp-surface: var(--apple-surface, #f5f5f7);
      position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 1070; font-size: 15px; color: var(--yp-ink); }
.yp svg { flex: none; }

.yp__launcher { position: relative; display: grid; width: 60px; height: 60px; padding: 0; place-items: center; border: 0; border-radius: 50%;
                background: var(--yp-blue); color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); cursor: pointer; transition: transform .2s ease; }
.yp__launcher:hover { transform: translateY(-2px); }
.yp__launcher:focus-visible { outline: 3px solid color-mix(in srgb, var(--yp-blue) 40%, #fff); outline-offset: 3px; }
.yp__launcher-avatar svg { width: 36px; height: 36px; }
.yp__launcher-close { display: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.yp.is-open .yp__launcher-avatar { display: none; }
.yp.is-open .yp__launcher-close { display: block; }
.yp__badge { position: absolute; top: -3px; right: -3px; display: grid; min-width: 22px; height: 22px; padding: 0 6px; place-items: center;
             border: 2px solid #fff; border-radius: 999px; background: #e30a17; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.yp__badge[hidden] { display: none; }

.yp__panel { position: absolute; right: 0; bottom: 76px; display: flex; flex-direction: column; width: 380px; max-height: min(640px, calc(100vh - 130px));
             overflow: hidden; border-radius: 22px; background: #fff;
             box-shadow: 0 24px 60px rgba(0, 0, 0, .24); transform-origin: bottom right; animation: yp-in .18s ease-out; }
.yp__panel[hidden] { display: none; }
@keyframes yp-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
/* Sohbet sekmesi içerikten bağımsız sabit yükseklikte (mesaj alanı kayar). */
.yp[data-help-current="chat"] .yp__panel { height: min(640px, calc(100vh - 130px)); }
.yp.is-expanded .yp__panel { position: fixed; right: 24px; bottom: calc(100px + env(safe-area-inset-bottom)); width: min(760px, calc(100vw - 48px)); height: calc(100vh - 140px); }

/* Başlık: marka mavisi; anasayfada avatar ve baloncuk, diğer sekmelerde başlık + açıklama. */
.yp__head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 18px; background: var(--yp-blue); color: #fff; }
.yp__head-main { display: flex; flex: 1 1 auto; align-items: center; gap: 10px; min-width: 0; }
.yp__head-main[hidden] { display: none; }
.yp__head-text { display: grid; min-width: 0; }
.yp__head-text strong { font-size: 16px; font-weight: 600; }
.yp__head-text small { overflow: hidden; font-size: 12.5px; opacity: .85; text-overflow: ellipsis; white-space: nowrap; }
.yp__avatar { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: #fff; color: var(--yp-blue); }
.yp__avatar svg { width: 32px; height: 32px; }
.yp__avatar--small { width: 36px; height: 36px; }
.yp__avatar--small svg { width: 26px; height: 26px; }
.yp__bubble { position: relative; padding: 8px 12px; border-radius: 12px; background: #fff; color: var(--yp-blue); font-size: 13.5px; font-weight: 600; }
.yp__bubble::before { content: ""; position: absolute; top: 50%; left: -6px; width: 12px; height: 12px; background: #fff; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.yp__head-actions { display: flex; gap: 2px; margin-left: auto; }
.yp__head-btn { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.yp__head-btn[hidden] { display: none; }
.yp__head-btn:hover { background: rgba(255, 255, 255, .16); }
.yp__head-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.yp__body { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.yp__tab[hidden] { display: none; }

/* Anasayfa */
.yp__hero { padding: 6px 18px 22px; background: var(--yp-blue); color: #fff; }
.yp__hero h2 { margin: 0 0 2px; color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.yp__hero p { margin: 0 0 16px; color: rgba(255, 255, 255, .9); font-size: 16px; }
.yp__quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.yp__quick-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 10px 6px;
                 border-radius: 12px; background: #fff; color: var(--yp-ink); font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; }
.yp__quick-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--yp-blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.yp__quick-btn:hover { color: var(--yp-blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--yp-blue) 35%, #fff); }
.yp__card { display: grid; gap: 4px; margin: -10px 16px 0; padding: 14px 16px; border: 1px solid var(--yp-hair); border-radius: 16px; background: #fff;
            box-shadow: 0 6px 18px rgba(0, 0, 0, .08); color: var(--yp-ink); text-decoration: none; }
.yp__card:hover { border-color: var(--yp-blue); color: var(--yp-ink); }
.yp__card-badge { justify-self: start; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--yp-blue) 10%, #fff); color: var(--yp-blue); font-size: 12px; font-weight: 600; }
.yp__card strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.yp__card-text { color: var(--yp-muted); font-size: 13.5px; line-height: 1.45; }
.yp__card-foot { color: #c2410c; font-size: 12.5px; font-weight: 600; }
.yp__ask { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 12px 16px 16px; padding: 12px 14px; border: 1px solid var(--yp-hair);
           border-radius: 16px; background: var(--yp-surface); color: var(--yp-ink); text-align: left; cursor: pointer; }
.yp__ask .yp__avatar { background: var(--yp-blue); color: #fff; }
.yp__ask > span:not(.yp__avatar) { display: grid; flex: 1 1 auto; min-width: 0; }
.yp__ask strong { font-size: 15px; }
.yp__ask small { overflow: hidden; color: var(--yp-muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.yp__ask > svg { width: 18px; height: 18px; fill: none; stroke: var(--yp-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yp__ask:hover { border-color: var(--yp-blue); }
.yp__tab--home { padding-bottom: 16px; }

/* S.S.S. */
.yp__tab--sss { padding: 14px 16px 18px; }
.yp__filter { display: flex; align-items: center; gap: 8px; height: 44px; margin: 0 0 10px; padding: 0 14px; border: 1px solid var(--yp-hair); border-radius: 12px; background: #fff; }
.yp__filter:focus-within { border-color: var(--yp-blue); }
.yp__filter input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--yp-ink); font-size: 14.5px; }
.yp__filter svg { width: 18px; height: 18px; fill: none; stroke: var(--yp-muted); stroke-width: 1.8; stroke-linecap: round; }
.yp__faq-item { border-bottom: 1px solid var(--yp-hair); }
.yp__faq-item[hidden] { display: none; }
.yp__faq-item summary { position: relative; padding: 13px 28px 13px 2px; color: var(--yp-ink); font-size: 14.5px; font-weight: 500; line-height: 1.4; list-style: none; cursor: pointer; }
.yp__faq-item summary::-webkit-details-marker { display: none; }
.yp__faq-item summary::after { content: "+"; position: absolute; top: 10px; right: 4px; color: var(--yp-blue); font-size: 20px; font-weight: 400; }
.yp__faq-item[open] summary { color: var(--yp-blue); }
.yp__faq-item[open] summary::after { content: "−"; }
.yp__faq-answer { padding: 0 2px 14px; color: var(--apple-ink-2, #424245); font-size: 14px; line-height: 1.55; }
.yp__faq-answer p { margin: 0 0 6px; }
.yp__faq-answer a { color: var(--yp-blue); text-decoration: underline; }
.yp__muted, .yp__faq-none { margin: 12px 0; color: var(--yp-muted); font-size: 14px; text-align: center; }
.yp__muted a, .yp__faq-none a { color: var(--yp-blue); }
.yp__faq-none[hidden] { display: none; }
.yp__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--yp-blue); font-size: 14px; font-weight: 600; text-decoration: none; }
.yp__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Asistan (asistan.css sohbet balonlarını verir; burada gömülü düzen) */
.yp__tab--chat { height: 100%; }
.yp-chat { display: flex; flex-direction: column; height: 100%; }
.yp-chat__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--yp-hair); color: var(--yp-muted); font-size: 12px; }
.yp-chat__new { padding: 5px 10px; border: 1px solid var(--yp-hair); border-radius: 999px; background: #fff; color: var(--yp-ink); font-size: 12.5px; cursor: pointer; }
.yp-chat__new:hover { border-color: var(--yp-blue); color: var(--yp-blue); }
.yp-chat .ai-chat__log { flex: 1 1 auto; min-height: 0; }
.yp-chat__consent { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 14px 0; background: #fff; color: var(--yp-muted); font-size: 12px; line-height: 1.45; }
.yp-chat__consent[hidden] { display: none; }
.yp-chat__consent input { width: 16px; height: 16px; margin-top: 1px; flex: none; accent-color: var(--yp-blue); }
.yp-chat__consent a { color: var(--yp-blue); }
.yp-chat__consent.is-required { color: #b42318; }
.yp-chat__consent.is-required input { outline: 2px solid #b42318; outline-offset: 2px; }

/* İletişim */
.yp__tab--contact { padding: 14px 16px 18px; }
.yp__channels { display: grid; gap: 8px; }
.yp__channel { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--yp-hair); border-radius: 14px; color: var(--yp-ink); text-decoration: none; }
.yp__channel:hover { border-color: var(--yp-blue); color: var(--yp-ink); }
.yp__channel > span:not(.yp__channel-icon) { display: grid; flex: 1 1 auto; min-width: 0; }
.yp__channel strong { font-size: 15px; font-weight: 600; }
.yp__channel small { overflow: hidden; color: var(--yp-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.yp__channel > svg { width: 18px; height: 18px; fill: none; stroke: var(--yp-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yp__channel-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--yp-blue) 10%, #fff); color: var(--yp-blue); }
.yp__channel-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yp__channel--wa .yp__channel-icon { background: #e7f8ee; color: #1e9e54; }
.yp__channel--mail .yp__channel-icon { background: #fff1e6; color: #c2410c; }
.yp__hours { display: grid; gap: 2px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--yp-surface); color: var(--apple-ink-2, #424245); font-size: 13.5px; }
.yp__hours strong { color: var(--yp-ink); font-size: 14px; }

/* Alt sekmeler */
.yp__tabs { display: flex; border-top: 1px solid var(--yp-hair); background: #fff; }
.yp__tabs-btn { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; border: 0; background: transparent;
                color: var(--yp-muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.yp__tabs-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.yp__tabs-btn:hover, .yp__tabs-btn.is-active { color: var(--yp-blue); }

/* Telefon ve tablet: alttaki araç çubuğunun üstünde; telefonda pencere tam ekran. */
@media (max-width: 991px) {
    .yp { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); }
    .yp__launcher { width: 54px; height: 54px; }
    .yp__launcher-avatar svg { width: 32px; height: 32px; }
    .yp__panel { bottom: 68px; max-height: min(620px, calc(100vh - 200px)); }
    .yp[data-help-current="chat"] .yp__panel { height: min(620px, calc(100vh - 200px)); }
    .yp__head-btn--expand { display: none !important; }
}
@media (max-width: 575px) {
    .yp.is-open .yp__launcher { display: none; }
    .yp__panel, .yp[data-help-current="chat"] .yp__panel { position: fixed; inset: 0; width: auto; height: auto; max-height: none; border-radius: 0; animation: none; }
    .yp__head { padding-top: calc(12px + env(safe-area-inset-top)); }
    .yp__tabs { padding-bottom: env(safe-area-inset-bottom); }
    body.yp-lock { overflow: hidden; }
}
@media print { .yp { display: none; } }
