/* Cookie consent — AEPD-oriented first layer */

.vk-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 0.6rem;
  pointer-events: none;
}

.vk-cookie-banner[hidden] {
  display: none !important;
}

.vk-cookie-banner__panel {
  pointer-events: auto;
  max-width: 420px;
  margin: 0 0 0 auto;
  background: #ffffff;
  color: #5c6b7a;
  border: 1px solid #d4dce6;
  border-radius: 10px;
  box-shadow: 0 10px 28px -14px rgba(13, 33, 55, 0.4);
  padding: 0.75rem 0.85rem 0.85rem;
  font-family: 'Onest', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.vk-cookie-banner__title {
  margin: 0 0 0.35rem;
  color: #0d2137;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.vk-cookie-banner__text {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  line-height: 1.4;
}

.vk-cookie-banner__text a {
  color: #0d2137;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vk-cookie-banner__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.vk-cookie-btn {
  flex: 1 1 0;
  min-height: 34px;
  padding: 0.4rem 0.55rem;
  border-radius: 4px;
  border: 1.5px solid #0d2137;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Same size, weight and prominence for accept / reject (AEPD) */
.vk-cookie-btn--accept {
  background-color: #0d2137;
  color: #ffffff;
}

.vk-cookie-btn--accept:hover,
.vk-cookie-btn--accept:focus {
  background-color: #1a3558;
  border-color: #1a3558;
}

.vk-cookie-btn--reject {
  background-color: #ffffff;
  color: #0d2137;
}

.vk-cookie-btn--reject:hover,
.vk-cookie-btn--reject:focus {
  background-color: #e8edf3;
}

.vk-cookie-settings {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 9999;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #d4dce6;
  border-radius: 999px;
  background: #ffffff;
  color: #0d2137;
  box-shadow: 0 8px 20px -12px rgba(13, 33, 55, 0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.vk-cookie-settings[hidden] {
  display: none !important;
}

.vk-cookie-settings:hover,
.vk-cookie-settings:focus {
  background: #e8edf3;
}

.vk-cookie-settings svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* Cookie policy table */
.legal-cookie-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
  border: 1px solid #d4dce6;
  border-radius: 10px;
}

.legal-cookie-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}

.legal-cookie-table th,
.legal-cookie-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid #e8edf3;
  text-align: left;
  vertical-align: top;
  color: #5c6b7a;
  line-height: 1.5;
}

.legal-cookie-table th {
  background: #f7f9fc;
  color: #0d2137;
  font-weight: 700;
}

.legal-cookie-table tr:last-child td {
  border-bottom: none;
}

.legal-cookie-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: #0d2137;
  background: #e8edf3;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.site-footer-legal-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

@media (max-width: 575px) {
  .vk-cookie-banner {
    padding: 0.5rem;
  }

  .vk-cookie-banner__panel {
    max-width: none;
    margin: 0;
    padding: 0.7rem 0.75rem 0.8rem;
    border-radius: 8px;
  }

  .vk-cookie-banner__actions {
    flex-wrap: wrap;
  }

  .vk-cookie-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }
}
