.cookie-panel,
.cookie-embed {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #2b261f;
}

.cookie-panel {
  position: fixed;
  z-index: 1040;
  left: 16px;
  bottom: 84px;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 20px 20px 16px;
  background: #fffdf8;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(40, 18, 8, 0.08), 0 20px 48px rgba(40, 18, 8, 0.22);
  font-size: 15px;
}

.cookie-panel h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
}

.cookie-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4a4238;
}

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

.cookie-actions-main .cookie-btn {
  flex: 1 1 0;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

.cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.cookie-btn-primary {
  background: #689a34;
  color: #fff;
}

.cookie-btn-primary:hover {
  background: #567f2b;
}

.cookie-btn-dark {
  background: #3a3129;
  color: #fff;
}

.cookie-btn-dark:hover {
  background: #241e18;
}

.cookie-btn-quiet {
  background: transparent;
  color: #3a3129;
  border-color: #d9d0c4;
}

.cookie-btn-quiet:hover {
  background: #f3ede3;
}

.cookie-btn:focus-visible,
.cookie-panel summary:focus-visible,
.cookie-switch input:focus-visible {
  outline: 2px solid #689a34;
  outline-offset: 2px;
}

.cookie-panel summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-weight: 600;
  color: #3d5f22;
}

.cookie-panel summary::-webkit-details-marker {
  display: none;
}

.cookie-panel summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s;
}

.cookie-panel details[open] > summary::before {
  transform: rotate(45deg);
}

.cookie-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ede5d9;
}

.cookie-details > summary {
  font-size: 0.95rem;
}

.cookie-switches {
  margin-top: 12px;
  border: 1px solid #ede5d9;
  border-radius: 12px;
  background: #fff;
}

.cookie-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  cursor: pointer;
}

.cookie-switch + .cookie-switch {
  border-top: 1px solid #f1ebe2;
}

.cookie-switch-text {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.cookie-switch-text small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #7a6d60;
}

.cookie-switch input {
  appearance: none;
  flex: none;
  position: relative;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: #d6cec3;
  cursor: pointer;
  transition: background-color 0.15s;
}

.cookie-switch input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}

.cookie-switch input:checked {
  background: #689a34;
}

.cookie-switch input:checked::before {
  transform: translateX(18px);
}

.cookie-switch input:disabled {
  opacity: 0.55;
  cursor: default;
}

.cookie-list {
  margin-top: 16px;
}

.cookie-list > summary {
  font-size: 0.88rem;
  font-weight: 500;
}

.cookie-group {
  margin-top: 14px;
}

.cookie-group h3 {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a6d60;
}

.cookie-group-text,
.cookie-meta {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b6258;
}

.cookie-meta {
  margin-top: 12px;
}

.cookie-meta a {
  color: #3d5f22;
}

.cookie-rows {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  border-radius: 10px;
  background: #f6f1e9;
}

.cookie-rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.cookie-rows li + li {
  border-top: 1px solid #ebe3d7;
}

.cookie-rows code {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2b261f;
  background: none;
  padding: 0;
}

.cookie-rows em {
  grid-column: 2;
  grid-row: 1;
  font-style: normal;
  color: #7a6d60;
  white-space: nowrap;
}

.cookie-rows span {
  grid-column: 1 / -1;
  color: #4a4238;
}

html.cookie-choice-known #cookie-panel {
  display: none;
}

html.cookie-choice-known #cookie-panel.is-open {
  display: block;
}

.cookie-embed {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #2b261f;
}

.cookie-embed-maps {
  min-height: 400px;
}

.cookie-embed-video {
  width: min(560px, calc(100% - 16px));
  aspect-ratio: 16 / 9;
  margin: 12px 8px;
  display: inline-block;
  vertical-align: top;
  text-align: left;
}

.cookie-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cookie-embed.is-loaded .cookie-embed-fallback {
  display: none;
}

.cookie-embed-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
  text-align: center;
  color: #f4ede2;
  background: radial-gradient(circle at 50% 40%, #4a3f34 0%, #2b261f 70%);
}

.cookie-embed-maps .cookie-embed-fallback {
  background: radial-gradient(circle at 50% 40%, #5b6b4a 0%, #2f3a26 75%);
}

.cookie-embed-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d8cbb8;
}

.cookie-embed-fallback p {
  margin: 0;
  max-width: 30rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-embed-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cookie-embed .cookie-btn-quiet {
  color: #f4ede2;
  border-color: rgba(244, 237, 226, 0.4);
}

.cookie-embed .cookie-btn-quiet:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cookie-embed-link {
  font-size: 0.85rem;
  color: #d8cbb8;
  text-decoration: underline;
}

.cookie-embed-link:hover {
  color: #fff;
}

.cookie-play {
  appearance: none;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: #689a34;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  position: relative;
  flex: none;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
}

.cookie-play:hover {
  background: #77ab3f;
  transform: scale(1.06);
}

.cookie-play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cookie-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

@media (max-width: 640px) {
  .cookie-panel {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 76px;
    max-height: calc(100vh - 96px);
  }

  .cookie-embed-fallback p {
    font-size: 0.82rem;
  }
}
