:root{
  --yhcc-green:#0d6657;
  --yhcc-green-dark:#0a5247;
  --yhcc-ink:#162c31;
  --yhcc-muted:#617276;
  --yhcc-line:#dce6e2;
  --yhcc-soft:#f5f8f7;
  --yhcc-white:#fff;
  --yhcc-banner-bg:#f4f9f7;
  --yhcc-banner-line:#9fc4b8;
  --yhcc-heading:var(--yh-font-heading,"Quicksand","DM Sans",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);
  --yhcc-body:var(--yh-font-body,"DM Sans",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif)
}
.yh-cookie-consent,.yh-cookie-consent *{box-sizing:border-box;font-family:var(--yhcc-body)}
.yh-cookie-banner{
  position:fixed;
  z-index:2147483000;
  left:50%;
  bottom:18px;
  width:min(calc(100% - 32px),1080px);
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:22px;
  align-items:center;
  padding:18px 20px;
  border:1px solid var(--yhcc-banner-line);
  border-top:4px solid var(--yhcc-green);
  border-radius:16px;
  background:var(--yhcc-banner-bg);
  box-shadow:0 18px 46px rgba(7,46,38,.20);
  contain:layout paint style;
  isolation:isolate
}
.yh-cookie-banner[hidden],.yh-cookie-modal[hidden],.yh-cookie-backdrop[hidden],.yh-cookie-floating[hidden]{display:none!important}
.yh-cookie-eyebrow{display:block;margin-bottom:5px;color:var(--yhcc-green);font-size:9px;font-weight:800;letter-spacing:.13em}
.yh-cookie-banner h2,.yh-cookie-modal h2{margin:0!important;color:var(--yhcc-ink)!important;font:700 21px/1.2 var(--yhcc-heading)!important;letter-spacing:-.02em!important}
.yh-cookie-banner p{max-width:700px;margin:6px 0 0!important;color:var(--yhcc-muted)!important;font-size:12.5px!important;line-height:1.5!important}
.yh-cookie-banner a,.yh-cookie-modal a{color:var(--yhcc-green)!important;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.yh-cookie-actions,.yh-cookie-modal-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.yh-cookie-btn{appearance:none;border:1px solid transparent;border-radius:10px;min-height:40px;padding:0 14px;cursor:pointer;font-size:11.5px;font-weight:800;line-height:1;transition:border-color .14s ease,background .14s ease,color .14s ease}
.yh-cookie-btn-primary{background:var(--yhcc-green);border-color:var(--yhcc-green);color:#fff}
.yh-cookie-btn-primary:hover{background:var(--yhcc-green-dark);border-color:var(--yhcc-green-dark)}
.yh-cookie-btn-secondary{background:#fff;border-color:#8fb8ac;color:var(--yhcc-green)}
.yh-cookie-btn-ghost{background:#eaf3f0;border-color:#c6dbd4;color:var(--yhcc-ink)}
.yh-cookie-backdrop{position:fixed;z-index:2147483001;inset:0;background:rgba(8,31,27,.48)}
.yh-cookie-modal{
  position:fixed;
  z-index:2147483002;
  left:50%;
  top:50%;
  width:min(calc(100% - 32px),680px);
  max-height:min(740px,calc(100vh - 40px));
  max-height:min(740px,calc(100dvh - 40px));
  transform:translate(-50%,-50%);
  overflow:auto;
  overscroll-behavior:contain;
  padding:24px;
  border:1px solid var(--yhcc-line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 22px 60px rgba(5,32,27,.25);
  contain:layout paint style;
  isolation:isolate
}
.yh-cookie-modal-head{display:flex;gap:20px;align-items:flex-start;justify-content:space-between}
.yh-cookie-close{appearance:none;display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:1px solid var(--yhcc-line);border-radius:10px;background:#fff;color:#344b4f;cursor:pointer;font-size:24px;line-height:1}
.yh-cookie-modal-intro{margin:14px 0 18px!important;color:var(--yhcc-muted)!important;font-size:12.5px!important;line-height:1.6!important}
.yh-cookie-category-list{display:grid;gap:9px}
.yh-cookie-category{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:15px 16px;border:1px solid var(--yhcc-line);border-radius:13px;background:#fff;cursor:pointer}
.yh-cookie-category.is-required{background:var(--yhcc-soft);cursor:default}
.yh-cookie-category h3{margin:0 0 4px!important;color:var(--yhcc-ink)!important;font:700 15px/1.25 var(--yhcc-heading)!important}
.yh-cookie-category p{margin:0!important;color:var(--yhcc-muted)!important;font-size:12px!important;line-height:1.5!important}
.yh-cookie-required-label{white-space:nowrap;color:var(--yhcc-green);font-size:11px;font-weight:800}
.yh-cookie-switch{position:relative;width:46px;height:26px;flex:0 0 46px}
.yh-cookie-switch input{position:absolute;opacity:0;pointer-events:none}
.yh-cookie-switch span{position:absolute;inset:0;border-radius:999px;background:#cbd7d3;transition:background .16s ease}
.yh-cookie-switch span:after{content:"";position:absolute;left:4px;top:4px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18);transition:transform .16s ease}
.yh-cookie-switch input:checked+span{background:var(--yhcc-green)}
.yh-cookie-switch input:checked+span:after{transform:translateX(20px)}
.yh-cookie-switch input:focus-visible+span{outline:3px solid rgba(13,102,87,.2);outline-offset:2px}
.yh-cookie-modal-footer{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-top:20px;padding-top:18px;border-top:1px solid var(--yhcc-line)}
.yh-cookie-modal-footer>a{font-size:12px}
html.yh-cookie-modal-open{overflow:hidden}
.yh-cookie-floating{position:fixed;z-index:2147482998;left:14px;bottom:14px;appearance:none;border:1px solid #cbdcd6;border-radius:999px;padding:8px 11px;background:#fff;box-shadow:0 6px 18px rgba(20,54,47,.10);color:var(--yhcc-green);cursor:pointer;font-size:10.5px;font-weight:800;contain:layout paint style}
.yh-cookie-footer-link,.yh-cookie-inline-link{appearance:none;border:0;padding:0;background:none;color:inherit;cursor:pointer;font:inherit;text-align:left}
.yh-cookie-footer-link{color:rgba(255,255,255,.72)!important;font-size:13px!important;font-weight:500!important;line-height:1.45!important;text-decoration:none!important;transition:color .14s ease,padding-left .14s ease}
.yh-cookie-footer-link:hover{color:#fff!important;padding-left:2px}
.yh-cookie-inline-link{color:var(--yhcc-green)!important;font-weight:800!important;text-decoration:underline;text-underline-offset:2px}
.yh-cookie-policy-summary{margin:24px 0}.yh-cookie-policy-summary h2{font-family:var(--yhcc-heading)!important}.yh-cookie-policy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.yh-cookie-policy-grid article{padding:18px;border:1px solid var(--yhcc-line);border-radius:14px;background:#fff}.yh-cookie-policy-grid h3{margin:0 0 8px!important;font:700 16px/1.25 var(--yhcc-heading)!important;color:var(--yhcc-ink)!important}.yh-cookie-policy-grid p{margin:0!important;color:var(--yhcc-muted)!important;font-size:13px!important;line-height:1.6!important}

/* Tablet: metin üstte, üç eylem tek satır. Sabit katman sayfa akışına girmez. */
@media (min-width:641px) and (max-width:1023px){
  .yh-cookie-banner{bottom:14px;width:calc(100% - 24px);grid-template-columns:1fr;gap:12px;padding:16px 18px}
  .yh-cookie-actions{justify-content:flex-start;flex-wrap:nowrap}
  .yh-cookie-actions .yh-cookie-btn{flex:1 1 0}
  .yh-cookie-policy-grid{grid-template-columns:1fr}
}

/* Mobil: kompakt alt kart, blur yok, güvenli alan desteği. */
@media (max-width:640px){
  .yh-cookie-banner{
    bottom:max(8px,env(safe-area-inset-bottom));
    width:calc(100% - 16px);
    grid-template-columns:1fr;
    gap:12px;
    padding:14px;
    border-top-width:3px;
    border-radius:14px;
    box-shadow:0 14px 34px rgba(7,46,38,.20)
  }
  .yh-cookie-banner .yh-cookie-eyebrow{display:none}
  .yh-cookie-banner h2,.yh-cookie-modal h2{font-size:18px!important}
  .yh-cookie-banner p{font-size:12px!important;line-height:1.45!important}
  .yh-cookie-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%}
  .yh-cookie-actions .yh-cookie-btn{width:100%;min-height:38px;padding:0 10px;font-size:11px}
  .yh-cookie-actions .yh-cookie-btn-secondary{grid-column:1}
  .yh-cookie-actions .yh-cookie-btn-primary{grid-column:2;grid-row:1}
  .yh-cookie-actions .yh-cookie-btn-ghost{grid-column:1/-1;grid-row:2}
  .yh-cookie-modal{
    left:8px;
    right:8px;
    top:auto;
    bottom:max(8px,env(safe-area-inset-bottom));
    width:auto;
    max-height:calc(100vh - 16px);
    max-height:calc(100dvh - 16px);
    transform:none;
    padding:18px 15px;
    border-radius:16px
  }
  .yh-cookie-modal-intro{margin:12px 0 15px!important}
  .yh-cookie-category{padding:13px 12px;gap:12px}
  .yh-cookie-modal-footer{align-items:stretch;flex-direction:column;gap:12px;margin-top:16px;padding-top:15px}
  .yh-cookie-modal-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .yh-cookie-modal-actions .yh-cookie-btn{width:100%;min-height:38px}
  .yh-cookie-floating{left:8px;bottom:max(8px,env(safe-area-inset-bottom))}
  .yh-cookie-policy-grid{grid-template-columns:1fr}
}

@media (max-width:390px){
  .yh-cookie-actions,.yh-cookie-modal-actions{grid-template-columns:1fr}
  .yh-cookie-actions .yh-cookie-btn-secondary,.yh-cookie-actions .yh-cookie-btn-primary,.yh-cookie-actions .yh-cookie-btn-ghost{grid-column:1;grid-row:auto}
  .yh-cookie-category{grid-template-columns:minmax(0,1fr) auto}
  .yh-cookie-required-label{white-space:normal;text-align:right}
}

@media (hover:hover) and (pointer:fine){
  .yh-cookie-btn:hover{filter:brightness(.985)}
}

@media (prefers-reduced-motion:reduce){
  .yh-cookie-btn,.yh-cookie-switch span,.yh-cookie-switch span:after,.yh-cookie-footer-link{transition:none!important}
}
