/* AHM Ajans - ortak kaydirma cubugu. Yalnizca gorunumu degistirir;
   kaydirma alanlarini, konumunu veya dikey/yatay tasma mantigini degistirmez. */
:root {
  --ahm-scrollbar-thumb: #5578c9;
  --ahm-scrollbar-thumb-hover: #1e4bb4;
  --ahm-scrollbar-track: rgba(22, 59, 121, 0.075);
}

/* Root-level scrollbar colors are mapped to the current page's theme.
   The class is rendered by PHP on <html> so Firefox, WebKit and Chromium
   can color the document scrollbar without JavaScript or :has() support. */
html.theme-home,
html.theme-blue {
  --ahm-scrollbar-thumb: #0052ff;
  --ahm-scrollbar-thumb-hover: #263cca;
}
html.theme-purple {
  --ahm-scrollbar-thumb: #6735c9;
  --ahm-scrollbar-thumb-hover: #4231a6;
}
html.theme-pink {
  --ahm-scrollbar-thumb: #c72977;
  --ahm-scrollbar-thumb-hover: #9228a0;
}
html.theme-green {
  --ahm-scrollbar-thumb: #087966;
  --ahm-scrollbar-thumb-hover: #086d86;
}
html.theme-orange {
  --ahm-scrollbar-thumb: #c84a1c;
  --ahm-scrollbar-thumb-hover: #aa2c49;
}
html.theme-cyan {
  --ahm-scrollbar-thumb: #087e96;
  --ahm-scrollbar-thumb-hover: #064a70;
}
html.theme-quote {
  --ahm-scrollbar-thumb: #c69216;
  --ahm-scrollbar-thumb-hover: #a57238;
}
html.theme-contact {
  --ahm-scrollbar-thumb: #9f3455;
  --ahm-scrollbar-thumb-hover: #6c233d;
}
html.theme-legal {
  --ahm-scrollbar-thumb: #5d749b;
  --ahm-scrollbar-thumb-hover: #486188;
}
html.theme-error {
  --ahm-scrollbar-thumb: #60748f;
  --ahm-scrollbar-thumb-hover: #44566e;
}

/* Firefox and browsers with standard scrollbar properties. */
html,
body,
.scroll-services,
.site-menu,
.ahm-cookie-consent,
.legal-table-wrap,
textarea,
pre {
  scrollbar-width: thin;
  scrollbar-color: var(--ahm-scrollbar-thumb) var(--ahm-scrollbar-track);
}

/* Legacy WebKit and browsers that support pseudo-element customization. */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ahm-scrollbar-track);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb {
  background: var(--ahm-scrollbar-thumb);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
  min-height: 40px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ahm-scrollbar-thumb-hover);
  background-clip: padding-box;
}
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 7px;
    height: 7px;
  }
  ::-webkit-scrollbar-thumb {
    border-width: 1px;
  }
}


/* 2.0.165 - Alt sayfalarda tarayiciya bagli yatay viewport tasmasini keser.
   clip, hidden gibi yeni bir kaydirma konteyneri olusturmaz; dikey
   kaydirma ve .legal-table-wrap gibi icerik ici kaydirma alanlari korunur. */
html:not(.theme-home),
body:not(.home) {
  overflow-x: clip;
}

/* Eski tarayicilar icin guvenli geriye uyumluluk. */
@supports not (overflow: clip) {
  html:not(.theme-home),
  body:not(.home) {
    overflow-x: hidden;
  }
}
