/* Tema body'sinde overflow-x:hidden, #page sarmalayicisinda overflow:hidden var;
   bunlar kaydirma konteyneri olusturdugu icin position:sticky'yi bozuyor.
   clip ile yatay tasma yine engellenir ama kaydirma konteyneri olusmaz, sticky calisir.
   Bu kurallar sadece teklif sayfasinda yuklenir. */
body{overflow-x:clip;}
#page{overflow:clip;}

.teklif-section{padding:60px 0;}
.teklif-kat{margin-bottom:15px;border:1px solid #eee;border-radius:10px;overflow:hidden;}
.teklif-kat-baslik{background:#272535;color:#fff;padding:14px 20px;font-size:18px;font-weight:600;margin:0;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.teklif-kat-secim{display:flex;align-items:center;gap:12px;margin:-6px -8px;padding:6px 8px;cursor:pointer;font-weight:inherit;border-radius:6px;transition:background .2s;flex:1;min-width:0;}
.teklif-kat-secim:hover{background:rgba(255,255,255,.1);}
.teklif-kat-secim .teklif-kat-checkbox{-webkit-appearance:none;appearance:none;margin:0;width:22px;height:22px;flex:0 0 22px;cursor:pointer;background:#fff;border:2px solid #fff;border-radius:5px;position:relative;transition:.15s;}
.teklif-kat-secim:hover .teklif-kat-checkbox{border-color:#E09D11;box-shadow:0 0 0 3px rgba(224,157,17,.4);}
.teklif-kat-secim .teklif-kat-checkbox:checked,
.teklif-kat-secim .teklif-kat-checkbox:indeterminate{background:#E09D11;border-color:#E09D11;}
.teklif-kat-secim .teklif-kat-checkbox:checked::after{content:"";position:absolute;left:6px;top:2px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);}
.teklif-kat-secim .teklif-kat-checkbox:indeterminate::after{content:"";position:absolute;left:4px;top:8px;width:12px;height:2px;background:#fff;border-radius:1px;}
.teklif-kat-secim .teklif-kat-baslik-metin{flex:1;}
.teklif-kat-toggle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:#fff;cursor:pointer;transition:background .2s;}
.teklif-kat-toggle:hover{background:rgba(255,255,255,.12);}
.teklif-kat-toggle-icon{display:inline-block;width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .2s;}
.teklif-kat.acik .teklif-kat-toggle-icon{transform:rotate(45deg);}
.teklif-hizmet-list{list-style:none;margin:0;padding:0;display:none;}
.teklif-kat.acik .teklif-hizmet-list{display:block;}
.teklif-hizmet-item{display:flex;align-items:center;justify-content:space-between;padding:13px 20px;border-bottom:1px solid #f1f1f1;border-left:4px solid transparent;transition:.2s;cursor:default;}
.teklif-hizmet-item:last-child{border-bottom:0;}
.teklif-hizmet-item.secili{background:#fdf4e0;border-left-color:#E09D11;}
.teklif-hizmet-item.secili .teklif-hizmet-ad{color:#E09D11;font-weight:600;}
.teklif-hizmet-sol{display:flex;align-items:center;gap:14px;flex:1;}
.teklif-hizmet-item .teklif-checkbox{display:none;}
.teklif-checkbox{-webkit-appearance:none;appearance:none;width:26px;height:26px;border:2px solid #cfcfcf;border-radius:7px;background:#fff;cursor:pointer;flex:0 0 auto;margin:0;transition:.2s;position:relative;}
.teklif-checkbox:hover{border-color:#E09D11;box-shadow:0 0 0 4px rgba(224,157,17,.15);}
.teklif-checkbox:checked{background-color:#E09D11;border-color:#E09D11;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:16px;}
.teklif-hizmet-ad{font-size:15px;color:#333;transition:.2s;}
.teklif-hizmet-fiyat{font-weight:700;color:#E09D11;white-space:nowrap;padding-left:12px;font-size:20px;}

.teklif-ozet{position:sticky;top:140px;border:1px solid #eee;border-radius:10px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.06);}
.teklif-ozet-baslik{background:#E09D11;color:#fff;padding:16px 20px;font-size:18px;font-weight:600;border-radius:10px 10px 0 0;}
.teklif-ozet-icerik{padding:18px 20px;max-height:340px;overflow-y:auto;}
.teklif-ozet-bos{color:#999;text-align:center;padding:20px 0;}
.teklif-ozet-list{list-style:none;margin:0;padding:0;}
.teklif-ozet-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed #eee;font-size:14px;}
.teklif-ozet-list li.teklif-ozet-kat-baslik{display:block;padding:14px 0 6px;border-bottom:0;font-size:15px;font-weight:700;color:#272535;}
.teklif-ozet-list li.teklif-ozet-kat-baslik:first-child{padding-top:0;}
.teklif-ozet-list li:not(.teklif-ozet-kat-baslik){padding-left:14px;}
.teklif-ozet-list li .oz-ad{color:#333;flex:1;}
.teklif-ozet-list li .oz-fiyat{font-weight:700;color:#E09D11;white-space:nowrap;}
.teklif-ozet-list li .oz-sil{color:#bbb;cursor:pointer;font-size:16px;line-height:1;border:0;background:none;}
.teklif-ozet-list li .oz-sil:hover{color:#E09D11;}
.teklif-ozet-satir{display:flex;justify-content:space-between;align-items:center;padding:6px 20px;font-size:14px;color:#666;}
.teklif-ozet-satir:first-of-type{padding-top:14px;border-top:2px solid #f1f1f1;}
.teklif-ozet-toplam{display:flex;justify-content:space-between;align-items:center;padding:12px 20px 16px;font-size:18px;font-weight:700;}
.teklif-ozet-toplam .tutar{color:#E09D11;}
.teklif-ozet-footer{padding:0 20px 20px;}
.teklif-btn-grup{display:flex;gap:10px;}
.teklif-gonder-btn{flex:1;background:#25D366;color:#fff;border:0;border-radius:8px;padding:14px;font-size:16px;font-weight:600;cursor:pointer;transition:.2s;display:flex;align-items:center;justify-content:center;gap:10px;}
.teklif-gonder-btn:hover{background:#1da851;color:#fff;}
.teklif-gonder-btn:disabled{background:#ccc;cursor:not-allowed;}
.teklif-secim-uyari{color:#999;font-size:13px;text-align:center;margin-top:10px;}

.teklif-modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:100001;align-items:center;justify-content:center;padding:20px;}
.teklif-modal-overlay.acik{display:flex;}
.teklif-modal{background:#fff;border-radius:12px;width:100%;max-width:460px;overflow:hidden;animation:teklifModalIn .25s ease;}
@keyframes teklifModalIn{from{transform:translateY(20px);opacity:0;}to{transform:translateY(0);opacity:1;}}
.teklif-modal-head{background:#272535;color:#fff;padding:18px 22px;display:flex;justify-content:space-between;align-items:center;}
.teklif-modal-head h3{margin:0;font-size:18px;color:#fff;}
.teklif-modal-kapat{background:none;border:0;color:#fff;font-size:24px;line-height:1;cursor:pointer;}
.teklif-modal-body{padding:22px;}
.teklif-modal-body .form-control{margin-bottom:14px;height:48px;border:1px solid #ddd;border-radius:8px;padding:0 14px;width:100%;font-size:15px;}
.teklif-modal-body textarea.form-control{height:auto;padding:12px 14px;}
.teklif-modal-toplam{background:#faf7f2;border-radius:8px;padding:12px 14px;margin-bottom:16px;}
.teklif-modal-toplam-satir{display:flex;justify-content:space-between;font-size:14px;color:#666;padding:3px 0;}
.teklif-modal-toplam-ana{font-weight:700;font-size:17px;color:#272535;padding-top:8px;margin-top:6px;border-top:1px solid #e9e2d6;}
.teklif-modal-toplam .tutar{color:#E09D11;}
.teklif-wa-btn{width:100%;background:#25D366;color:#fff;border:0;border-radius:8px;padding:14px;font-size:16px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;}
.teklif-wa-btn:hover{background:#1da851;color:#fff;}
.teklif-modal-uyari{color:#E09D11;font-size:13px;margin-bottom:12px;display:none;}
.teklif-sozlesme{display:flex;align-items:center;gap:10px;margin-bottom:14px;font-size:14px;color:#555;}
.teklif-sozlesme .teklif-checkbox{width:22px;height:22px;}
.teklif-sozlesme .teklif-checkbox:checked{background-size:14px;}
.teklif-sozlesme a{color:#E09D11;font-weight:600;text-decoration:underline;}
.teklif-sozlesme-overlay{z-index:100003;}
.teklif-sozlesme-modal{max-width:640px;}
.teklif-sozlesme-icerik{max-height:55vh;overflow-y:auto;font-size:14px;line-height:1.6;color:#444;margin-bottom:16px;padding-right:6px;}
.teklif-sozlesme-icerik p{margin:0 0 10px;}
.teklif-modal-basari{color:#1da851;font-size:14px;margin-bottom:12px;display:none;background:#eafaf0;border:1px solid #b7e6c9;border-radius:8px;padding:14px 16px;}
.teklif-basari-baslik{font-size:16px;font-weight:700;margin-bottom:6px;}
.teklif-basari-link{margin-top:10px;padding-top:10px;border-top:1px solid #b7e6c9;font-size:13px;color:#227a45;}
.teklif-basari-link a{color:#E09D11;font-weight:600;}
.teklif-kopyala-btn{display:inline-block;margin-top:8px;background:#272535;color:#fff;border:0;border-radius:6px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer;transition:.2s;}
.teklif-kopyala-btn:hover{background:#3a3850;}
.teklif-kopyala-btn.kopyalandi{background:#1da851;}

/* Teklif Detay Sayfası */
.teklif-detay-section{padding:50px 0;}
.teklif-detay-kutu{max-width:820px;margin:0 auto;background:#fff;border:1px solid #ececec;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.05);padding:30px;}
.teklif-detay-ust{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;border-bottom:1px solid #f0f0f0;padding-bottom:18px;margin-bottom:20px;}
.teklif-detay-no{font-size:17px;color:#272535;display:block;}
.teklif-detay-no strong{color:#E09D11;}
.teklif-detay-tarih{font-size:13px;color:#999;display:block;margin-top:4px;}
.teklif-detay-durum{font-size:13px;font-weight:700;padding:8px 16px;border-radius:30px;}
.teklif-detay-durum.bekliyor{background:#fff4e0;color:#d98600;}
.teklif-detay-durum.onayli{background:#eafaf0;color:#1da851;}
.teklif-detay-musteri{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:22px;}
.teklif-detay-musteri > div{flex:1;min-width:180px;background:#faf9fb;border-radius:10px;padding:12px 14px;}
.teklif-detay-musteri span{display:block;font-size:12px;color:#999;margin-bottom:3px;}
.teklif-detay-musteri strong{color:#272535;font-size:15px;word-break:break-word;}
.teklif-detay-tablo{width:100%;border-collapse:collapse;margin-bottom:20px;}
.teklif-detay-tablo th{background:#272535;color:#fff;padding:12px 14px;text-align:left;font-size:14px;}
.teklif-detay-tablo td{padding:12px 14px;border-bottom:1px solid #f0f0f0;font-size:15px;color:#333;}
.teklif-detay-tablo tr.teklif-detay-kat-baslik td{background:#f5f5f7;border-bottom:0;padding:14px 14px 8px;font-size:15px;font-weight:700;color:#272535;}
.teklif-detay-tablo tr.teklif-detay-kat-baslik + tr td{padding-top:10px;}
.teklif-detay-tablo .teklif-detay-hizmet{padding-left:28px;}
.teklif-detay-tablo .kat{color:#888;font-size:13px;}
.teklif-detay-tablo .sag{text-align:right;}
.teklif-detay-tablo tfoot td{border-bottom:0;font-size:16px;}
.teklif-detay-tablo .toplam{color:#E09D11;font-weight:700;font-size:20px;}
.teklif-detay-not{background:#f7f7f9;border-radius:10px;padding:16px;color:#555;font-size:14px;margin:0;}
.teklif-detay-aksiyon{margin-top:18px;text-align:right;}
.teklif-detay-aksiyon .teklif-detay-btn{margin-top:0;cursor:pointer;border:0;}
.teklif-detay-bulunamadi{text-align:center;}
.teklif-detay-bulunamadi h2{color:#272535;margin-top:0;}
.teklif-detay-btn{display:inline-block;margin-top:14px;background:#E09D11;color:#fff;padding:12px 24px;border-radius:8px;font-weight:600;text-decoration:none;}
.teklif-detay-btn:hover{background:#c2860c;color:#fff;}
@media(max-width:600px){.teklif-detay-kutu{padding:20px;}}

/* Mobil alt bar / sepet çekmecesi - masaüstünde gizli */
.teklif-mobil-bar{display:none;}
.teklif-sheet-backdrop{display:none;}
.teklif-sheet-kapat{display:none;}

@media (max-width:991px){
    /* özet kutusu alttan açılan çekmeceye dönüşür */
    .teklif-ozet{position:fixed;top:auto;left:0;right:0;bottom:0;margin:0;border-radius:18px 18px 0 0;transform:translateY(110%);transition:transform .3s ease;z-index:100000;max-height:82vh;display:flex;flex-direction:column;box-shadow:0 -10px 30px rgba(0,0,0,.18);}
    .teklif-ozet.acik{transform:translateY(0);}
    .teklif-ozet-baslik{border-radius:18px 18px 0 0;display:flex;justify-content:space-between;align-items:center;}
    .teklif-ozet-icerik{max-height:none;flex:1;overflow-y:auto;}
    .teklif-sheet-kapat{display:inline-flex;background:none;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0;}

    /* arka plan karartma */
    .teklif-sheet-backdrop{display:block;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:99999;opacity:0;visibility:hidden;transition:.3s;}
    .teklif-sheet-backdrop.acik{opacity:1;visibility:visible;}

    /* alt sabit bar */
    .teklif-mobil-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:99998;background:#272535;color:#fff;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;box-shadow:0 -6px 20px rgba(0,0,0,.2);}
    .teklif-mobil-bar-info{display:flex;flex-direction:column;line-height:1.3;flex:0 0 auto;}
    .teklif-mobil-bar-adet{font-size:12px;color:#cfcdd6;}
    .teklif-mobil-bar-adet b{color:#fff;font-size:14px;}
    .teklif-mobil-bar-tutar{font-size:18px;font-weight:700;color:#fff;}
    .teklif-mobil-bar-btnler{display:flex;gap:8px;flex:1;justify-content:flex-end;}
    .teklif-mobil-ac{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4);border-radius:9px;padding:11px 12px;font-weight:600;font-size:13px;white-space:nowrap;cursor:pointer;}
    .teklif-mobil-gonder{background:#E09D11;color:#fff;border:0;border-radius:9px;padding:11px 14px;font-weight:700;font-size:14px;white-space:nowrap;cursor:pointer;}
    .teklif-mobil-gonder:disabled{background:#6d6b7a;cursor:not-allowed;opacity:.7;}

    /* içerik alt bara denk gelmesin */
    .teklif-section{padding-bottom:90px;}
}
