.consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  max-width: 440px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(8,20,30,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  color: var(--text);
  animation: consent-enter .5s var(--ease) both;
}

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

.consent-title {
  margin: 0 0 12px;
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 600;
}

.consent-text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.consent-text a,
.map-consent a,
.form-note a {
  color: var(--cyan);
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.consent-summary .consent-actions .btn {
  flex: 1 1 0;
  min-width: 100px;
}

.consent-link {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.consent-link:hover {
  text-decoration: underline;
}

.consent-row {
  display: grid;
  grid-template-columns: 1fr 20px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.consent-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--cyan);
}

.map-consent {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: radial-gradient(circle at 60% 50%, rgba(25,195,240,.10), transparent 60%), var(--bg-2);
}

.map-consent > div {
  max-width: 380px;
}

.map-consent p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 14.5px;
}

.map.is-loaded .map-consent {
  display: none;
}

/* keep the placeholder text clear of the "Atölyemiz" card on wide screens */
@media (min-width: 561px) {
  .map-consent {
    padding-left: min(460px, 45%);
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}

.footer-legal a,
.footer-legal button {
  color: inherit;
}

.footer-legal button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--cyan);
}

@keyframes consent-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    max-height: calc(100dvh - 24px);
  }

  .consent .consent-actions button {
    flex: 1 1 auto;
  }

  .consent-summary .consent-actions .btn {
    flex-basis: 0;
  }

  .map-consent {
    position: relative;
    inset: auto;
    height: 320px;
  }

  .map:not(.is-loaded) .map-frame {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent {
    animation: none;
  }
}
