.cookie-consent,
.cookie-consent-launcher {
  position: fixed;
  z-index: 1100;
  color: var(--kcs-text);
  background: var(--kcs-white);
  border: 1px solid var(--kcs-line);
  box-shadow: var(--kcs-shadow);
}

.cookie-consent {
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(34rem, calc(100% - 2.5rem));
  max-height: calc(100vh - 2.5rem);
  max-height: calc(100dvh - 2.5rem);
  overflow: auto;
  padding: 1.15rem 1.3rem;
  border-radius: 8px;
  font-size: .875rem;
  line-height: 1.55;
}

.cookie-consent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--kcs-line);
}

.cookie-consent-header h2 {
  margin: 0;
  color: var(--kcs-navy);
  font-size: 1.1rem;
  font-weight: 700;
}

.cookie-consent-close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  flex: none;
  color: var(--kcs-navy);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 1.45rem;
  line-height: 1;
}

.cookie-consent-intro {
  margin: .8rem 0 1rem;
}

.cookie-consent-intro a,
.cookie-policy-page a:not(.cookie-consent-action),
.contact-map-placeholder a {
  color: var(--kcs-navy);
  text-decoration: underline;
  text-underline-offset: .16em;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.cookie-consent-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .5rem .7rem;
  border: 1px solid var(--kcs-navy);
  border-radius: 5px;
  color: var(--kcs-navy);
  background: var(--kcs-white);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.cookie-consent-action:hover,
.cookie-consent-launcher:hover {
  color: var(--kcs-white);
  background: var(--kcs-navy);
}

.cookie-consent-options {
  display: grid;
  gap: .4rem;
  margin-bottom: .8rem;
}

.cookie-consent-category {
  position: relative;
  border-radius: 5px;
  background: var(--kcs-soft);
}

.cookie-consent-category summary {
  min-height: 2.75rem;
  padding: .6rem .7rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent-optional summary {
  padding-right: 4rem;
}

.cookie-consent-category p {
  margin: 0;
  padding: 0 .7rem .7rem;
}

.cookie-consent-required {
  margin-inline-start: .4rem;
  color: #27613e;
  font-size: .8rem;
}

.cookie-consent-switch {
  appearance: none;
  position: absolute;
  top: .35rem;
  right: .65rem;
  width: 2.85rem;
  height: 2.05rem;
  border: 1px solid var(--kcs-muted);
  border-radius: 1.1rem;
  background: var(--kcs-muted);
  cursor: pointer;
}

.cookie-consent-switch::before {
  content: "";
  display: block;
  width: 1.3rem;
  height: 1.3rem;
  margin: .29rem;
  border-radius: 50%;
  background: var(--kcs-white);
}

.cookie-consent-switch:checked {
  border-color: var(--kcs-navy);
  background: var(--kcs-navy);
}

.cookie-consent-switch:checked::before {
  margin-left: 1.1rem;
}

.cookie-consent-note {
  margin: .25rem 0 0;
  font-size: .8rem;
}

.cookie-consent-launcher {
  bottom: 0;
  left: 1rem;
  padding: .45rem .75rem;
  border-radius: 6px 6px 0 0;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}

.cookie-consent [hidden],
.cookie-consent[hidden],
.cookie-consent-launcher[hidden] {
  display: none;
}

.cookie-consent :focus-visible,
.cookie-consent-launcher:focus-visible {
  outline: 2px solid var(--kcs-navy);
  outline-offset: 2px;
}

.cookie-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.25rem;
  padding: 0 1rem 2.65rem;
  font-size: .85rem;
}

.cookie-footer-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.cookie-policy-page .kvkk-content {
  display: block;
  max-width: 64rem;
}

.cookie-policy-page .kvkk-title {
  margin-bottom: 2rem;
}

.cookie-policy-page h2,
.cookie-policy-page h3 {
  margin: 1.65rem 0 .65rem;
  color: var(--kcs-navy);
  font-weight: 700;
}

.cookie-policy-page h2 {
  font-size: 1.25rem;
}

.cookie-policy-page h3 {
  font-size: 1.05rem;
}

.cookie-policy-page li + li {
  margin-top: .45rem;
}

.cookie-policy-table th,
.cookie-policy-table td {
  padding: .65rem;
  vertical-align: top;
}

.contact-map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .75rem;
  padding: 1.5rem;
  text-align: center;
}

.contact-map-placeholder p {
  margin: 0;
}

@media (max-width: 37.5rem) {
  .cookie-consent {
    right: .6rem;
    bottom: max(.6rem, env(safe-area-inset-bottom));
    width: calc(100% - 1.2rem);
    padding: .9rem 1rem;
  }

  .cookie-consent-actions {
    grid-template-columns: 1fr;
  }
}
