:root {
  --kvkk-bg: #ffffff;
  --kvkk-text: #1f2937;
  --kvkk-muted: #6b7280;
  --kvkk-border: #e5e7eb;
  --kvkk-primary: #2563eb;
  --kvkk-primary-dark: #1d4ed8;
  --kvkk-danger: #dc2626;
  --kvkk-radius: 18px;
  --kvkk-shadow: 0 20px 60px rgba(15, 23, 42, .18);
}

.kvkk-hidden {
  display: none !important;
}

.kvkk-cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  background: var(--kvkk-bg);
  color: var(--kvkk-text);
  border: 1px solid var(--kvkk-border);
  border-radius: var(--kvkk-radius);
  box-shadow: var(--kvkk-shadow);
  padding: 15px;
  max-width: 1120px;
  margin: 0 auto;
  font-family: Poppins, sans-serif;
}

.kvkk-cookie-banner h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.kvkk-cookie-banner p {
  margin: 0;
  line-height: 1.55;
  color: var(--kvkk-muted);
  font-size: 14px;
}

.kvkk-cookie-banner a,
.kvkk-cookie-modal a {
  color: var(--kvkk-primary);
  text-decoration: underline;
}

.kvkk-cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.kvkk-btn {
  appearance: none;
  border: 1px solid var(--kvkk-border);
  border-radius: 999px;
  padding: 11px 18px;
  background: #fff;
  color: var(--kvkk-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: .2s ease;
}

.kvkk-btn:hover {
  transform: translateY(-1px);
}

.kvkk-btn-primary {
  border-color: var(--kvkk-primary);
  background: var(--kvkk-primary);
  color: #fff;
}

.kvkk-btn-primary:hover {
  background: var(--kvkk-primary-dark);
}

.kvkk-btn-danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: var(--kvkk-danger);
}

.kvkk-cookie-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 999998;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--kvkk-border);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
  cursor: pointer;
  font-size: 22px;
}

.kvkk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-family: Poppins, sans-serif;
}

.kvkk-cookie-modal {
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  color: var(--kvkk-text);
  border-radius: 22px;
  box-shadow: var(--kvkk-shadow);
}

.kvkk-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--kvkk-border);
}

.kvkk-modal-header h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.kvkk-modal-header p {
  margin: 0;
  color: var(--kvkk-muted);
  line-height: 1.5;
  font-size: 14px;
}

.kvkk-modal-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.kvkk-modal-body {
  padding: 20px 24px;
}

.kvkk-category {
  border: 1px solid var(--kvkk-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.kvkk-category-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.kvkk-category h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.kvkk-category p {
  margin: 0;
  color: var(--kvkk-muted);
  font-size: 14px;
  line-height: 1.5;
}

.kvkk-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  min-width: 52px;
  height: 30px;
}

.kvkk-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.kvkk-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: .2s;
}

.kvkk-slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: .2s;
}

.kvkk-switch input:checked+.kvkk-slider {
  background: var(--kvkk-primary);
}

.kvkk-switch input:checked+.kvkk-slider:before {
  transform: translateX(22px);
}

.kvkk-switch input:disabled+.kvkk-slider {
  opacity: .65;
  cursor: not-allowed;
}

.kvkk-services {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 13px;
}

.kvkk-services th,
.kvkk-services td {
  border-top: 1px solid var(--kvkk-border);
  padding: 9px 6px;
  text-align: left;
  vertical-align: top;
}

.kvkk-services th {
  color: var(--kvkk-muted);
  font-weight: 700;
}

.kvkk-modal-footer {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--kvkk-border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .kvkk-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
  }

  .kvkk-cookie-actions,
  .kvkk-modal-footer {
    flex-direction: column;
  }

  .kvkk-btn {
    width: 100%;
  }

  .kvkk-services {
    display: block;
    overflow-x: auto;
  }
}

.kvkk-google-map {
  width: 100%;
  min-height: 450px;
  background: #f3f4f6;
}

.kvkk-map-placeholder {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 30px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #1f2937;
}

.kvkk-map-placeholder strong {
  font-size: 22px;
}

.kvkk-map-placeholder p {
  margin: 0;
  max-width: 460px;
  color: #6b7280;
  line-height: 1.5;
}

.kvkk-map-link {
  color: #2563eb;
}

.kvkk-page {
  position: relative;
  overflow: hidden;
}

.kvkk-page::before,
.kvkk-page::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.kvkk-page::before {
  width: 420px;
  height: 420px;
  left: -180px;
  top: 80px;
  background: radial-gradient(circle, rgba(37, 99, 235, .16) 0%, rgba(37, 99, 235, 0) 70%);
}

.kvkk-page::after {
  width: 520px;
  height: 520px;
  right: -230px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(16, 185, 129, .14) 0%, rgba(16, 185, 129, 0) 70%);
}

.kvkk-layout {
  position: relative;
  z-index: 1;
}

.kvkk-page .rs-breadcrumb-title {
  line-height: 1.15;
}

.kvkk-header-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 14px;
}

.kvkk-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  padding: 34px;
}

.kvkk-intro {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px dashed #cbd5e1;
}

.kvkk-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #475569;
}

.kvkk-content {
  color: #1e293b;
  font-size: 17px;
  line-height: 1.85;
  word-break: break-word;
}

.kvkk-content>*:first-child {
  margin-top: 0;
}

.kvkk-content>*:last-child {
  margin-bottom: 0;
}

.kvkk-content h1,
.kvkk-content h2,
.kvkk-content h3,
.kvkk-content h4,
.kvkk-content h5,
.kvkk-content h6 {
  margin-top: 34px;
  margin-bottom: 14px;
  line-height: 1.3;
  color: #0f172a;
  font-weight: 700;
}

.kvkk-content h2 {
  font-size: 30px;
}

.kvkk-content h3 {
  font-size: 24px;
}

.kvkk-content p {
  margin: 0 0 16px;
}

.kvkk-content ul,
.kvkk-content ol {
  margin: 0 0 18px 22px;
  padding: 0;
}

.kvkk-content li {
  margin-bottom: 8px;
}

.kvkk-content a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.kvkk-content blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  border-radius: 0 12px 12px 0;
  color: #1e3a8a;
}

.kvkk-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 14px;
  overflow: hidden;
}

.kvkk-content th,
.kvkk-content td {
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.kvkk-content th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.kvkk-content img,
.kvkk-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 10px 0;
}

@media (max-width: 991px) {
  .kvkk-page::before {
    width: 300px;
    height: 300px;
    left: -150px;
    top: 100px;
  }

  .kvkk-page::after {
    width: 360px;
    height: 360px;
    right: -180px;
    bottom: -120px;
  }

  .kvkk-card {
    padding: 24px;
    border-radius: 18px;
  }

  .kvkk-intro {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .kvkk-intro p {
    font-size: 15px;
    line-height: 1.7;
  }

  .kvkk-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .kvkk-content h2 {
    font-size: 24px;
  }

  .kvkk-content h3 {
    font-size: 20px;
  }
}

@media (max-width: 575px) {

  .kvkk-page::before,
  .kvkk-page::after {
    display: none;
  }

  .kvkk-card {
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
  }

  .kvkk-header-chip {
    font-size: 11px;
    padding: 7px 12px;
    margin-bottom: 10px;
  }

  .kvkk-page .rs-breadcrumb-title {
    font-size: 32px;
  }

  .kvkk-content {
    font-size: 15px;
    line-height: 1.7;
  }

  .kvkk-content h2 {
    font-size: 21px;
    margin-top: 24px;
    margin-bottom: 10px;
  }

  .kvkk-content h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .kvkk-content ul,
  .kvkk-content ol {
    margin-left: 18px;
  }

  .kvkk-content blockquote {
    padding: 12px 14px;
    margin: 14px 0;
  }

  .kvkk-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    white-space: nowrap;
  }

  .kvkk-content th,
  .kvkk-content td {
    min-width: 140px;
    padding: 10px 12px;
    white-space: normal;
  }

  .kvkk-content iframe {
    min-height: 220px;
  }
}

/* Cookie redesign */
:root {
  --kvkk-primary: #302e4a;
  --kvkk-primary-dark: #232137;
  --kvkk-text: #302e4a;
  --kvkk-muted: #656573;
  --kvkk-border: #e7e6eb;
}

.kvkk-cookie-banner,
.kvkk-cookie-banner *,
.kvkk-modal-backdrop,
.kvkk-modal-backdrop * {
  box-sizing: border-box;
}

.kvkk-cookie-banner {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--kvkk-border);
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 36px;
  box-shadow: 0 -8px 36px #302e4a12;
  max-height: 65dvh;
  overflow: auto;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  animation: kvkk-rise .25s ease-out;
}

.kvkk-cookie-banner h3 {
  font-size: 19px;
  grid-column: 1;
}

.kvkk-cookie-banner p {
  grid-column: 1;
}

.kvkk-cookie-actions {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  margin: 0;
  flex-wrap: nowrap;
}

.kvkk-btn {
  border-radius: 7px;
  font-weight: 600;
  line-height: 1.4;
  padding: 12px 18px;
}

.kvkk-btn-danger {
  background: white;
  border-color: var(--kvkk-border);
  color: var(--kvkk-text);
}

.kvkk-btn:hover {
  transform: none;
  box-shadow: 0 2px 8px #302e4a12;
}

.kvkk-btn:focus-visible,
.kvkk-accordion:focus-visible,
.kvkk-modal-close:focus-visible {
  outline: 3px solid #dba900;
  outline-offset: 3px;
}

.kvkk-cookie-actions #kvkk-open-preferences {
  order: -1;
}

.kvkk-cookie-actions #kvkk-accept-all {
  order: 2;
}

.kvkk-cookie-modal {
  max-width: 900px;
  max-height: 90vh;
  max-height: 90dvh;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kvkk-modal-header {
  position: relative;
  display: block;
  padding: 24px 28px 22px;
}

.kvkk-brand {
  display: block;
  width: 100px;
  height: auto;
  object-fit: contain;
  margin: 0 0 16px;
}

.kvkk-modal-header h3 {
  font-size: 23px;
}

.kvkk-modal-close {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--kvkk-text);
  background: #f4f3f6;
}

.kvkk-modal-body {
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding: 0 28px;
}

.kvkk-category {
  border: 0;
  border-bottom: 1px solid var(--kvkk-border);
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.kvkk-category:last-child {
  border-bottom: 0;
}

.kvkk-category-top {
  align-items: center;
  gap: 16px;
  padding: 19px 0;
}

.kvkk-accordion {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  text-align: left;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  color: var(--kvkk-text);
  font: 600 15px/1.5 Arial, sans-serif;
}

.kvkk-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin: 0 3px;
  flex-shrink: 0;
  transition: transform .2s;
}

.kvkk-accordion[aria-expanded=true] .kvkk-chevron {
  transform: rotate(45deg);
}

.kvkk-category-panel {
  padding: 0 0 22px 28px;
}

.kvkk-category-panel[hidden] {
  display: none !important;
}

.kvkk-switch {
  width: 44px;
  min-width: 44px;
  height: 26px;
}

.kvkk-slider:before {
  width: 18px;
  height: 18px;
}

.kvkk-switch input:checked+.kvkk-slider:before {
  transform: translateX(18px);
}

.kvkk-switch input:focus-visible+.kvkk-slider {
  outline: 3px solid #dba900;
  outline-offset: 3px;
}

.kvkk-service-scroll {
  overflow-x: auto;
}

.kvkk-services {
  line-height: 1.5;
}

.kvkk-services td {
  overflow-wrap: anywhere;
}

.kvkk-modal-footer {
  padding: 18px 28px;
  background: #faf9fb;
  flex-shrink: 0;
}

@keyframes kvkk-rise {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@media(max-width:1050px) {
  .kvkk-cookie-banner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kvkk-cookie-actions {
    grid-column: 1;
    grid-row: auto;
    margin-top: 10px;
  }
}

@media(max-width:640px) {
  .kvkk-cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .kvkk-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .kvkk-cookie-actions #kvkk-open-preferences {
    grid-column: 1 / -1;
  }

  .kvkk-btn {
    font-size: 13px;
    padding: 11px 10px;
  }

  .kvkk-modal-backdrop {
    padding: 10px;
  }

  .kvkk-modal-header {
    padding: 20px;
  }

  .kvkk-modal-header h3 {
    font-size: 20px;
  }

  .kvkk-modal-body {
    padding: 0 20px;
  }

  .kvkk-modal-footer {
    padding: 14px 20px;
    gap: 8px;
  }

  .kvkk-brand {
    width: 145px;
    height: 50px;
    margin-bottom: 10px;
  }

  .kvkk-accordion {
    font-size: 14px;
    gap: 10px;
  }

  .kvkk-category-panel {
    padding-left: 0;
  }

  .kvkk-services {
    display: table;
    min-width: 440px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .kvkk-cookie-banner {
    animation: none;
  }

  .kvkk-chevron,
  .kvkk-slider,
  .kvkk-slider:before {
    transition: none;
  }
}

/* Çerez bileşeninin yazı stilini site temasından ayırır. */
#kvkk-cookie-banner,
#kvkk-cookie-banner *,
#kvkk-modal-backdrop,
#kvkk-modal-backdrop * {
  font-family: Poppins, Helvetica, sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#kvkk-cookie-banner,
#kvkk-modal-backdrop .kvkk-cookie-modal {
  background: #f8f8f8 !important;
  color: #3d4555 !important;
  text-align: left !important;
}

#kvkk-cookie-banner h3 {
  color: #212121;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  margin: 0 0 8px !important;
}

#kvkk-modal-backdrop h3 {
  color: #3d4555 !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

#kvkk-cookie-banner p,
#kvkk-modal-backdrop p {
  color: #212121 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 22px !important;
}

#kvkk-cookie-banner a,
#kvkk-modal-backdrop a {
  color: #1863dc !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

#kvkk-cookie-banner .kvkk-btn,
#kvkk-modal-backdrop .kvkk-btn {
  appearance: none !important;
  background: #ffffff;
  background-image: none !important;
  color: #1863dc !important;
  border: 1px solid #1863dc !important;
  border-radius: 7px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  padding: 12px 18px !important;
  height: auto !important;
  min-height: 44px !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

#kvkk-cookie-banner .kvkk-btn-primary,
#kvkk-modal-backdrop .kvkk-btn-primary {
  background: #1863dc;
  color: #ffffff !important;
  border-color: #1863dc !important;
}

#kvkk-cookie-banner .kvkk-btn:hover,
#kvkk-modal-backdrop .kvkk-btn:hover {
  background: #f3f3f7 !important;
  color: #1863dc !important;
}

#kvkk-cookie-banner .kvkk-btn-primary:hover,
#kvkk-modal-backdrop .kvkk-btn-primary:hover {
  background: #232137 !important;
  color: #ffffff !important;
}

#kvkk-modal-backdrop .kvkk-accordion {
  background: transparent !important;
  color: #3d4555 !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

#kvkk-modal-backdrop .kvkk-modal-close {
  background: transparent !important;
  color: gray  !important;
  font-size: 28px !important;
  line-height: 1 !important;
}

#kvkk-modal-backdrop .kvkk-services {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #65718a !important;
}

#kvkk-modal-backdrop .kvkk-services th {
  background: #f7f7fa !important;
  color: #3d4555 !important;
  font-weight: 600 !important;
}

#kvkk-modal-backdrop .kvkk-services td {
  background: #ffffff !important;
  color: #65718a !important;
  font-weight: 400 !important;
}

#kvkk-modal-backdrop .kvkk-slider {
  background: #cbd0da !important;
}

#kvkk-modal-backdrop .kvkk-switch input:checked+.kvkk-slider {
  background: #1863dc !important;
}

#kvkk-modal-backdrop .kvkk-slider::before {
  background: #ffffff !important;
}

#kvkk-cookie-banner .kvkk-btn::before,
#kvkk-cookie-banner .kvkk-btn::after,
#kvkk-modal-backdrop .kvkk-btn::before,
#kvkk-modal-backdrop .kvkk-btn::after,
#kvkk-modal-backdrop .kvkk-accordion::before,
#kvkk-modal-backdrop .kvkk-accordion::after {
  content: none !important;
}

@media (max-width: 640px) {

  #kvkk-cookie-banner .kvkk-btn,
  #kvkk-modal-backdrop .kvkk-btn {
    font-size: 13px !important;
    padding: 11px 10px !important;
  }
}

/* İlk ölçümde bandın gerçek konumu kullanılsın. */
#kvkk-cookie-banner {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

#kvkk-cookie-banner .kvkk-banner-heading {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  grid-column: 1 !important;
  min-width: 0 !important;
}

#kvkk-cookie-banner .kvkk-banner-heading .kvkk-brand {
  display: block !important;
  max-width: 135px !important;
  object-fit: contain !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

#kvkk-cookie-banner .kvkk-banner-heading h3 {
  margin: 0 !important;
}

@media (max-width: 640px) {
  #kvkk-cookie-banner .kvkk-banner-heading {
    gap: 12px !important;
  }

  #kvkk-cookie-banner .kvkk-banner-heading .kvkk-brand {
    width: 105px !important;
    max-width: 105px !important;
    height: 38px !important;
  }

  #kvkk-cookie-banner .kvkk-banner-heading h3 {
    font-size: 16px !important;
  }
}

/* Final layout: fixed 12px horizontal spacing at every breakpoint. */
#kvkk-cookie-banner {
  padding-left: 25px !important;
  padding-right: 25px !important;
}

#kvkk-modal-backdrop {
  padding: 12px !important;
}

#kvkk-modal-backdrop .kvkk-modal-header,
#kvkk-modal-backdrop .kvkk-modal-body,
#kvkk-modal-backdrop .kvkk-modal-footer {
  padding-left: 25px !important;
  padding-right: 25px !important;
}

#kvkk-modal-backdrop .kvkk-modal-header {
  flex-shrink: 0;
}

#kvkk-modal-backdrop .kvkk-category-panel {
  padding-left: 0 !important;
}

#kvkk-modal-backdrop .kvkk-category-caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#kvkk-modal-backdrop .kvkk-category-count {
  color: #65718a !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
}

#kvkk-modal-backdrop .kvkk-service-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

#kvkk-modal-backdrop .kvkk-service-card {
  background: #f5f5f7 !important;
  border: 1px solid #e7e6eb;
  border-radius: 8px;
  padding: 14px 12px;
  min-width: 0;
}

#kvkk-modal-backdrop .kvkk-service-card dl {
  margin: 0 !important;
}

#kvkk-modal-backdrop .kvkk-service-field {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  padding: 5px 0;
}

#kvkk-modal-backdrop .kvkk-service-field dt,
#kvkk-modal-backdrop .kvkk-service-field dd {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  overflow-wrap: anywhere;
}

#kvkk-modal-backdrop .kvkk-service-field dt {
  color: #3d4555 !important;
  font-weight: 600 !important;
}

#kvkk-modal-backdrop .kvkk-service-field dd {
  font-weight: 500 !important;
}

#kvkk-modal-backdrop .kvkk-modal-footer {
  display: flex;
  flex-flow: row wrap;
}

#kvkk-modal-backdrop .kvkk-powered {
  display: block;
  flex: 0 0 100%;
  text-align: right !important;
  color: #7b8190 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

#kvkk-modal-backdrop .kvkk-cookie-modal {
  outline: none;
}

@media(max-width:640px) {
  #kvkk-modal-backdrop .kvkk-modal-footer .kvkk-btn {
    flex: 1 0 100%;
  }

  #kvkk-modal-backdrop .kvkk-service-field {
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 8px;
  }
}

/* Keep the decision buttons reachable on short screens and at large zoom. */
@media(max-height:650px) {
  #kvkk-modal-backdrop .kvkk-cookie-modal {
    display: block;
    overflow-y: auto;
    max-height: calc(100dvh - 24px);
  }

  #kvkk-modal-backdrop .kvkk-modal-body {
    overflow: visible;
  }
}


/* MODAL: Başlık solda, logo sağda */
#kvkk-modal-backdrop .kvkk-modal-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px 16px !important;
}

#kvkk-modal-backdrop .kvkk-modal-header>h3 {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  min-width: 0 !important;
}

#kvkk-modal-backdrop .kvkk-modal-header>.kvkk-brand {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  width: 125px !important;
  max-width: 125px !important;
  height: 45px !important;
  object-fit: contain !important;
  object-position: right center !important;
  margin: 0 !important;
}

#kvkk-modal-backdrop .kvkk-modal-header>p {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  margin: 0 !important;
}


/* BANT: Logo sağda, butonların üstünde */
#kvkk-cookie-banner {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  /*gap: 10px 28px !important;*/
}

/* İçindeki başlık ve logoyu ana grid'e yerleştirir. */
#kvkk-cookie-banner .kvkk-banner-heading {
  display: contents !important;
}

#kvkk-cookie-banner .kvkk-banner-heading>h3 {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
}

#kvkk-cookie-banner .kvkk-banner-heading>.kvkk-brand {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  width: 150px !important;
  max-width: 150px !important;
  height: 45px !important;
  object-fit: contain !important;
  object-position: right center !important;
  margin: 0 !important;
}

#kvkk-cookie-banner>p {
  grid-column: 1 !important;
  grid-row: 2 !important;
  margin: 0 !important;
}

#kvkk-cookie-banner>.kvkk-cookie-actions {
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-self: end !important;
  align-self: start !important;
  margin: 0 !important;
}


/* Dar ekranlarda logo yine butonların hemen üstünde kalır. */
@media (max-width: 1050px) {
  #kvkk-cookie-banner {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  #kvkk-cookie-banner .kvkk-banner-heading>h3 {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  #kvkk-cookie-banner>p {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  #kvkk-cookie-banner .kvkk-banner-heading>.kvkk-brand {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-self: end !important;
  }

  #kvkk-cookie-banner>.kvkk-cookie-actions {
    grid-column: 1 !important;
    grid-row: 4 !important;
    justify-self: end !important;
  }
}

@media (max-width: 640px) {
  #kvkk-modal-backdrop .kvkk-modal-header {
    gap: 12px !important;
  }

  #kvkk-modal-backdrop .kvkk-modal-header>h3 {
    font-size: 19px !important;
  }

  #kvkk-modal-backdrop .kvkk-modal-header>.kvkk-brand {
    width: 95px !important;
    max-width: 95px !important;
    height: 36px !important;
  }

  #kvkk-cookie-banner>.kvkk-cookie-actions {
    width: 100% !important;
  }
}

@media (min-width: 641px) and (max-width: 1050px) {
  #kvkk-cookie-banner>.kvkk-cookie-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 10px !important;
    justify-self: stretch !important;
  }

  #kvkk-cookie-banner .kvkk-cookie-actions>.kvkk-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
  }

  #kvkk-cookie-banner .kvkk-banner-heading>.kvkk-brand {
    justify-self: center !important;
    object-position: center !important;
    margin: 0 !important;
  }
}

@media (max-width: 641px) {

  #kvkk-cookie-banner .kvkk-banner-heading>.kvkk-brand {
    justify-self: center !important;
    object-position: center !important;
    margin: 0 !important;
  }
}

/* Başlık, sayı ve zorunlu çerez açıklaması */
#kvkk-modal-backdrop .kvkk-category-caption {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px 8px !important;
  min-width: 0 !important;
}

#kvkk-modal-backdrop .kvkk-category-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 5px !important;
  margin: 0 !important;
  border: 1px solid #dedee7 !important;
  border-radius: 999px !important;
  background: #f5f5f8 !important;
  color: #55546b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

#kvkk-modal-backdrop .kvkk-necessary-note {
  color: #65718a !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

#kvkk-modal-backdrop .kvkk-necessary-note::before {
  content: "(";
}

#kvkk-modal-backdrop .kvkk-necessary-note::after {
  content: ")";
}

#kvkk-cookie-banner .kvkk-banner-heading > h3 {
    align-self: end !important;
}

/* Banttaki logo daha küçük */
#kvkk-cookie-banner .kvkk-banner-heading > .kvkk-brand {
width: 115px !important;
    max-width: 115px !important;
    height: 45px !important;
}

/* Modal başlığı: başlık, logo, kapatma */
#kvkk-modal-backdrop .kvkk-modal-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 10px 12px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

#kvkk-modal-backdrop .kvkk-modal-header > h3 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
}

#kvkk-modal-backdrop .kvkk-modal-header > .kvkk-brand {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 90px !important;
    max-width: 90px !important;
    height: 32px !important;
    margin: 0 !important;
    justify-self: end !important;
    object-fit: contain !important;
}

/* Kapatma düğmesi */
#kvkk-modal-backdrop .kvkk-modal-close {
    position: static !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: gray !important;
    font-size: 25px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}


/* Kısa açıklama ve açılır uzun açıklama */
#kvkk-modal-backdrop .kvkk-modal-intro {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
}

#kvkk-modal-backdrop .kvkk-modal-intro p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
}

#kvkk-modal-backdrop .kvkk-more-details {
    margin-top: 10px !important;
}

#kvkk-modal-backdrop .kvkk-more-details > summary {
    display: inline-block !important;
    list-style: none !important;
    padding: 6px 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
}

#kvkk-modal-backdrop .kvkk-more-details > summary:hover {
    background: #1d4ed8 !important;
}

#kvkk-modal-backdrop .kvkk-more-details > summary::-webkit-details-marker {
    display: none !important;
}

#kvkk-modal-backdrop .kvkk-less-label {
    display: none !important;
}

#kvkk-modal-backdrop .kvkk-more-details[open] .kvkk-more-label {
    display: none !important;
}

#kvkk-modal-backdrop .kvkk-more-details[open] .kvkk-less-label {
    display: inline !important;
}

#kvkk-modal-backdrop .kvkk-more-content {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid #e7e6eb !important;
}

/* Uzun açıklama açıkken üst bölüm çok büyümesin */
#kvkk-modal-backdrop .kvkk-more-content {
    max-height: 150px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
}

/* Kategori satırlarındaki fazla boşlukları azalt */
#kvkk-modal-backdrop .kvkk-category-top {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    gap: 12px !important;
}

#kvkk-modal-backdrop .kvkk-accordion {
    min-width: 0 !important;
}

/* Her zaman açık yazısı switch'in yanında */
#kvkk-modal-backdrop .kvkk-category-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 9px !important;
    flex-shrink: 0 !important;
}

#kvkk-modal-backdrop .kvkk-necessary-note {
    max-width: 95px !important;
    margin: 0 !important;
    color: #65718a !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: right !important;
}

#kvkk-modal-backdrop .kvkk-necessary-note::before,
#kvkk-modal-backdrop .kvkk-necessary-note::after {
    content: none !important;
}

/* Bant ve modal butonları köşeli */
#kvkk-cookie-banner .kvkk-btn,
#kvkk-modal-backdrop .kvkk-btn {
    border-radius: 0 !important;
}

/* Modalın tüm işlem butonları aynı mavi */
#kvkk-modal-backdrop .kvkk-btn,
#kvkk-modal-backdrop .kvkk-btn-primary,
#kvkk-modal-backdrop .kvkk-btn-danger {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

#kvkk-modal-backdrop .kvkk-btn:hover,
#kvkk-modal-backdrop .kvkk-btn-primary:hover,
#kvkk-modal-backdrop .kvkk-btn-danger:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Kurumsal renkte, alt çizgisiz imza */
#kvkk-modal-backdrop .kvkk-powered {
    color: #65718a !important;
}

#kvkk-modal-backdrop .kvkk-powered a,
#kvkk-modal-backdrop .kvkk-powered a:hover,
#kvkk-modal-backdrop .kvkk-powered a:visited,
#kvkk-modal-backdrop .kvkk-powered a:focus {
    color: #312f4d !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    font-weight: 600 !important;
}

@media (max-width: 640px) {
    #kvkk-modal-backdrop .kvkk-modal-header {
        gap: 10px 8px !important;
    }

    #kvkk-modal-backdrop .kvkk-modal-header > h3 {
        font-size: 18px !important;
    }

    #kvkk-modal-backdrop .kvkk-modal-header > .kvkk-brand {
        width: 75px !important;
        max-width: 75px !important;
        height: 28px !important;
    }

    #kvkk-modal-backdrop .kvkk-category-top {
        gap: 8px !important;
    }

    #kvkk-modal-backdrop .kvkk-necessary-note {
        max-width: 65px !important;
        font-size: 10px !important;
    }
}

#kvkk-reject-all {
  background: #5797ff !important;
}
