/* Cookie consent popup, floating icon & preferences dialog (see /assets/js/cookie-consent.js) */
.yy-cc-banner,
.yy-cc-fab,
.yy-cc-modal {
  --yy-cc-primary: #000555;
  --yy-cc-secondary: #3bc7f5;
  --yy-cc-text: #4a4d6b;
  --yy-cc-border: #e3e6f0;
  --yy-cc-bg: #ffffff;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--yy-cc-text);
  line-height: 1.5;
  box-sizing: border-box;
}

.yy-cc-banner *,
.yy-cc-modal * {
  box-sizing: border-box;
}

.yy-cc-banner {
  position: fixed;
  z-index: 99990;
  left: 24px;
  bottom: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 18px 20px 14px;
  background: var(--yy-cc-bg);
  border: 1px solid var(--yy-cc-border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 5, 85, 0.18);
  animation: yy-cc-up 0.35s ease-out;
}

.yy-cc-banner[dir="rtl"] {
  left: auto;
  right: 24px;
}

@keyframes yy-cc-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes yy-cc-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.yy-cc-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.yy-cc-banner-header .yy-cc-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 16px;
}

.yy-cc-banner-header .yy-cc-close {
  align-self: flex-start;
  margin-inline-end: -6px;
  font-size: 24px;
}

.yy-cc-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(59, 199, 245, 0.18);
  color: var(--yy-cc-primary);
}

.yy-cc-icon svg {
  width: 20px;
  height: 20px;
}

.yy-cc-banner .yy-cc-text {
  margin-bottom: 14px;
  font-size: 13px;
}

.yy-cc-banner .yy-cc-actions {
  gap: 8px;
}

.yy-cc-banner .yy-cc-actions .yy-cc-btn {
  padding: 10px 14px;
  font-size: 13px;
  white-space: normal;
}

.yy-cc-banner .yy-cc-btn-primary,
.yy-cc-banner .yy-cc-btn-outline {
  flex: 1 1 calc(50% - 4px);
}

.yy-cc-banner .yy-cc-actions .yy-cc-btn-ghost {
  flex: 1 1 100%;
  padding: 4px 8px;
}

/* Floating icon shown once the popup is closed; re-opens the popup */
.yy-cc-fab {
  position: fixed;
  z-index: 99980;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--yy-cc-border);
  border-radius: 50%;
  background: var(--yy-cc-bg);
  color: var(--yy-cc-primary);
  box-shadow: 0 8px 24px rgba(0, 5, 85, 0.18);
  cursor: pointer;
  animation: yy-cc-pop 0.3s ease-out;
  transition:
    transform 0.2s,
    background-color 0.2s,
    color 0.2s;
}

.yy-cc-fab[hidden] {
  display: none;
}

.yy-cc-fab[dir="rtl"] {
  left: auto;
  right: 20px;
}

.yy-cc-fab:hover {
  background: var(--yy-cc-primary);
  color: #fff;
  transform: rotate(-15deg) scale(1.05);
}

.yy-cc-fab svg {
  width: 26px;
  height: 26px;
}

.yy-cc-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--yy-cc-primary);
}

.yy-cc-text {
  margin: 0;
  font-size: 14px;
}

.yy-cc-link {
  color: var(--yy-cc-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yy-cc-link:hover {
  color: var(--yy-cc-secondary);
}

.yy-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.yy-cc-btn {
  appearance: none;
  border: 1px solid var(--yy-cc-primary);
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.yy-cc-btn:focus-visible,
.yy-cc-close:focus-visible,
.yy-cc-fab:focus-visible,
.yy-cc-switch input:focus-visible + .yy-cc-slider {
  outline: 3px solid var(--yy-cc-secondary);
  outline-offset: 2px;
}

.yy-cc-btn-primary {
  background: var(--yy-cc-primary);
  color: #fff;
}

.yy-cc-btn-primary:hover {
  background: var(--yy-cc-secondary);
  border-color: var(--yy-cc-secondary);
  color: var(--yy-cc-primary);
}

.yy-cc-btn-outline {
  background: #fff;
  color: var(--yy-cc-primary);
}

.yy-cc-btn-outline:hover {
  background: var(--yy-cc-primary);
  color: #fff;
}

.yy-cc-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--yy-cc-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 8px;
  padding-right: 8px;
}

.yy-cc-btn-ghost:hover {
  color: var(--yy-cc-secondary);
}

/* Preferences dialog */
html.yy-cc-open,
html.yy-cc-open body {
  overflow: hidden;
}

.yy-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 5, 85, 0.55);
}

.yy-cc-dialog {
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  background: var(--yy-cc-bg);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.yy-cc-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.yy-cc-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--yy-cc-primary);
  font-size: 28px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.yy-cc-dialog > .yy-cc-text {
  margin-bottom: 18px;
}

.yy-cc-category {
  padding: 16px 0;
  border-top: 1px solid var(--yy-cc-border);
}

.yy-cc-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yy-cc-category-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--yy-cc-primary);
  cursor: pointer;
}

.yy-cc-always {
  font-size: 12px;
  font-weight: 600;
  color: #02a257;
}

.yy-cc-category-text {
  margin: 6px 0 0;
  font-size: 13px;
}

.yy-cc-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
}

.yy-cc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.yy-cc-switch input:disabled {
  cursor: not-allowed;
}

.yy-cc-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c9cde0;
  transition: background-color 0.2s;
}

.yy-cc-slider::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.2s;
}

.yy-cc-switch input:checked + .yy-cc-slider {
  background: var(--yy-cc-primary);
}

.yy-cc-switch input:disabled + .yy-cc-slider {
  opacity: 0.6;
}

.yy-cc-switch input:checked + .yy-cc-slider::before {
  transform: translateX(20px);
}

[dir="rtl"] .yy-cc-slider::before {
  left: auto;
  right: 3px;
}

[dir="rtl"] .yy-cc-switch input:checked + .yy-cc-slider::before {
  transform: translateX(-20px);
}

.yy-cc-dialog .yy-cc-actions {
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--yy-cc-border);
}

/* Footer "Cookie Preferences" link next to social icons */
.footer-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  margin: 0 20px;
  background: rgba(255, 255, 255, 0.35);
}

.footer-cookie-link {
  white-space: nowrap;
}

/* Cookie policy page table (rendered from the CMS) */
.cookie-table-wrap {
  overflow-x: auto;
  margin: 10px 0 20px;
}

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

.cookie-table th,
.cookie-table td {
  padding: 12px 14px;
  border: 1px solid #e3e6f0;
  text-align: start;
  vertical-align: top;
}

.cookie-table th {
  background: #000555;
  color: #fff;
  font-weight: 600;
}

.cookie-table tr:nth-child(even) td {
  background: #f6f7fb;
}

@media (max-width: 575px) {
  .yy-cc-banner,
  .yy-cc-banner[dir="rtl"] {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 16px 16px 12px;
  }

  .yy-cc-banner .yy-cc-text {
    max-height: 30vh;
    overflow-y: auto;
  }

  .yy-cc-fab {
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }

  .yy-cc-fab[dir="rtl"] {
    left: auto;
    right: 12px;
  }

  .yy-cc-actions .yy-cc-btn-primary,
  .yy-cc-actions .yy-cc-btn-outline {
    flex: 1 1 calc(50% - 5px);
  }

  .yy-cc-dialog {
    padding: 20px;
  }

  .yy-cc-dialog .yy-cc-actions .yy-cc-btn {
    flex: 1 1 100%;
  }
}
