/* ekskluzywne.net — baner zgody na cookies
   Fonty: Open Sans (to samo, co body na produkcji).
   Kontener wewnętrzny śledzi szerokości .td-container motywu Newspaper. */

:root {
  --eks-cookie-bg: #0D0D0D;
  --eks-cookie-text: #EAEAEA;
  --eks-cookie-gold: #C9A45C;
  --eks-cookie-hairline: rgba(201, 164, 92, 0.55);
  --eks-cookie-focus: #C9A45C;
  --eks-cookie-container: 1068px;
  --eks-cookie-font: "Open Sans", Arial, Helvetica, sans-serif;
  --eks-cookie-z: 10000;
}

.eks-cookie {
  box-sizing: border-box;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: var(--eks-cookie-z);
  margin: 0;
  padding: 0;
  background: var(--eks-cookie-bg);
  color: var(--eks-cookie-text);
  border: 0;
  border-top: 1px solid var(--eks-cookie-hairline);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
  font-family: var(--eks-cookie-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#eks-cookie[hidden] {
  display: none;
}

.eks-cookie *,
.eks-cookie *::before,
.eks-cookie *::after {
  box-sizing: border-box;
}

.eks-cookie-inner {
  width: var(--eks-cookie-container);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 24px 0;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.eks-cookie-text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 18ch;
  font-family: var(--eks-cookie-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0;
  color: var(--eks-cookie-text);
}

.eks-cookie-link {
  color: var(--eks-cookie-gold);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.eks-cookie-link:hover,
.eks-cookie-link:active {
  color: var(--eks-cookie-text);
}

.eks-cookie-link:focus-visible {
  outline: 2px solid var(--eks-cookie-focus);
  outline-offset: 3px;
}

.eks-cookie-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 12px;
  flex: 0 0 auto;
}

.eks-cookie-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 0 22px;
  border: 1px solid var(--eks-cookie-text);
  border-radius: 0;
  background: transparent;
  color: var(--eks-cookie-text);
  font-family: var(--eks-cookie-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.eks-cookie-btn:hover,
.eks-cookie-btn:active,
.eks-cookie-btn.is-hover {
  background: var(--eks-cookie-text);
  color: var(--eks-cookie-bg);
}

.eks-cookie-btn:focus-visible,
.eks-cookie-btn.is-focus {
  outline: 2px solid var(--eks-cookie-focus);
  outline-offset: 3px;
}

/* Newspaper .td-container breakpoints, zmierzone 28.11.2026 na ekskluzywne.net */
@media (max-width: 1140px) {
  .eks-cookie-inner {
    width: 980px;
  }
}

@media (max-width: 1018px) {
  .eks-cookie-inner {
    width: 740px;
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .eks-cookie-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 10px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .eks-cookie-text {
    min-width: 0;
    flex-basis: auto;
  }

  .eks-cookie-actions {
    width: 100%;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 10px;
  }

  .eks-cookie-btn {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    text-align: center;
    padding: 0 10px;
    letter-spacing: 0.04em;
  }
}

/* Cookie settings in the Newspaper desktop and mobile sub-footers. */
:is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) a.eks-cookie-settings {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0 2px;
  min-height: 44px;
  color: #CCCCCC;
  font-family: "Open Sans", arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 18px;
  letter-spacing: normal;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 0;
}

:is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) a.eks-cookie-settings:hover,
:is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) a.eks-cookie-settings:active,
:is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) a.eks-cookie-settings.is-hover {
  color: #FFFFFF;
  text-decoration: none;
}

:is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) a.eks-cookie-settings:focus {
  outline: none;
}

:is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) a.eks-cookie-settings:focus-visible,
:is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) a.eks-cookie-settings.is-focus {
  outline: 2px solid #C9A45C;
  outline-offset: 2px;
  color: #FFFFFF;
}

:is(.td-sub-footer-container, .td-mobile-sub-footer-wrap):has(a.eks-cookie-settings) {
  min-height: 44px;
  box-sizing: border-box;
  background-color: #0D0D0D;
}

:is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) .td-sub-footer-menu:has(> a.eks-cookie-settings),
:is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) .td-sub-footer-menu.eks-cookie-settings-host {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  /* Keep Newspaper's column gutters and center copyright alongside the link. */
  .td-sub-footer-container .td-pb-row:has(> .td-sub-footer-menu > a.eks-cookie-settings) {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
  }

  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap).eks-cookie-settings--no-menu .td-pb-row,
  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap).eks-cookie-settings--no-menu > .td-container:not(:has(.td-pb-row)) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    box-sizing: border-box;
  }

  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap).eks-cookie-settings--no-menu .td-pb-row {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Newspaper's clearfix must stay out of the flex layout. */
  .td-sub-footer-container .td-pb-row:has(> .td-sub-footer-menu > a.eks-cookie-settings)::before,
  .td-sub-footer-container .td-pb-row:has(> .td-sub-footer-menu > a.eks-cookie-settings)::after,
  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap).eks-cookie-settings--no-menu .td-pb-row::before,
  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap).eks-cookie-settings--no-menu .td-pb-row::after {
    display: none;
    content: none;
  }

  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap).eks-cookie-settings--no-menu .td-sub-footer-copy {
    float: none;
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 767px) {
  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap):has(a.eks-cookie-settings) {
    text-align: center;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap):has(a.eks-cookie-settings) .td-pb-row,
  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap):has(a.eks-cookie-settings) > .td-container:not(:has(.td-pb-row)) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
  }

  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap):has(a.eks-cookie-settings) .td-sub-footer-copy {
    float: none;
    width: auto;
    margin: 8px 0 0;
    padding: 0;
    order: 1;
    line-height: 18px;
    text-align: center;
  }

  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) .td-sub-footer-menu:has(> a.eks-cookie-settings),
  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) .td-sub-footer-menu.eks-cookie-settings-host,
  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) a.eks-cookie-settings {
    float: none;
    width: auto;
    order: 2;
    justify-content: center;
  }

  :is(.td-sub-footer-container, .td-mobile-sub-footer-wrap) a.eks-cookie-settings {
    display: inline-flex;
    margin: 0;
  }
}
