/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */

/* DES Cookies — colours, radius and widths come from the module settings as
   CSS variables (descookies.js). The root covers the visible part of the
   screen; its width drives the responsive rules (container queries).
   Design since 1.5.14: productosdefarmacia.com. The first layer is a card at
   the bottom (a long card on computers, .dc-layout-bar) or a larger card in
   the middle of the screen (.dc-layout-center); the preferences panel is a
   sheet from the bottom on phones and a centred window on computers. */

.dc-root {
  --dc-accept: #3f7a16;
  --dc-accept-text: #ffffff;
  --dc-reject: #1b2563;
  --dc-title: #1b2563;
  --dc-text: #3d4566;
  --dc-link: #23317a;
  --dc-bg: #ffffff;
  --dc-accent: #23317a;
  --dc-bar: #3f7a16;
  --dc-radius: 20px;
  --dc-btn-radius: 14px;
  --dc-max-width: 560px;
  --dc-overlay: .5;
  --dc-line: #e1e5f0;
  --dc-line-soft: #eef1f7;
  --dc-panel: #f6f7fb;
  --dc-soft: #f3f5fb;
  --dc-soft-strong: #e9edf8;
  --dc-z: 2147483000;
  position: fixed;
  inset: 0;
  z-index: var(--dc-z);
  pointer-events: none;
  container-type: inline-size;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--dc-text);
  -webkit-font-smoothing: antialiased;
}

/* Tints out of the shop's colours: the same design works with any palette. */
.dc-root {
  --dc-line: color-mix(in srgb, var(--dc-title) 13%, var(--dc-bg));
  --dc-line-soft: color-mix(in srgb, var(--dc-title) 7%, var(--dc-bg));
  --dc-panel: color-mix(in srgb, var(--dc-title) 4%, var(--dc-bg));
  --dc-soft: color-mix(in srgb, var(--dc-reject) 6%, var(--dc-bg));
  --dc-soft-strong: color-mix(in srgb, var(--dc-reject) 11%, var(--dc-bg));
  --dc-reject-line: color-mix(in srgb, var(--dc-reject) 26%, var(--dc-bg));
  --dc-switch-off: color-mix(in srgb, var(--dc-title) 30%, var(--dc-bg));
  --dc-pill-bg: color-mix(in srgb, var(--dc-accept) 12%, var(--dc-bg));
  --dc-pill-text: color-mix(in srgb, var(--dc-accept) 80%, var(--dc-title));
  --dc-accept-shadow: color-mix(in srgb, var(--dc-accept) 30%, transparent);
}

.dc-root.dc-font-system { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

/* Isolation from the theme */
.dc-root *,
.dc-root *::before,
.dc-root *::after {
  box-sizing: border-box;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
}

.dc-root [hidden] { display: none !important; }
.dc-root h2,
.dc-root h3,
.dc-root p,
.dc-root ul,
.dc-root li { margin: 0; padding: 0; border: 0; background: none; list-style: none; }
.dc-root button { margin: 0; font: inherit; box-shadow: none; height: auto; min-height: 0; float: none; cursor: pointer; }
.dc-root label,
.dc-root section,
.dc-root details,
.dc-root summary,
.dc-root table,
.dc-root td,
.dc-root th { margin: 0; background: transparent; box-shadow: none; float: none; width: auto; height: auto; }

.dc-root .dc-backdrop,
.dc-root .dc-layer,
.dc-root .dc-reopen { pointer-events: auto; }

.dc-root.dc-preview { position: absolute; z-index: 1; }

.dc-root :focus-visible { outline: 2px solid var(--dc-accent); outline-offset: 2px; }

/* ── Backdrop ───────────────────────────────────────────────────────────── */

.dc-root .dc-backdrop {
  position: absolute;
  /* Past the screen on every side (1.5.17): no light strip at the bottom on computers (productosdefarmacia.com)
     when the browser bars move, the page bounces at the end of the scroll or the zoom rounds the height. */
  inset: -50vh -10vw;
  display: none;
  background: rgba(17, 24, 60, var(--dc-overlay));
  animation: dc-fade .25s ease-out;
}

.dc-root.dc-open.dc-has-overlay .dc-backdrop { display: block; }

/* Until the first choice the card blocks the page (1.5.15, BLOCK_PAGE, on by default): the backdrop has the full
   OVERLAY and takes the clicks (they do nothing: only the buttons close the notice), and the page does not scroll
   (.dc-scroll-lock, descookies.js). Switched off, the card works as in 1.5.14: the page a little darker and usable. */
.dc-root.dc-layout-bar:not(.dc-block):not(.dc-panel-open) .dc-backdrop { background: rgba(17, 24, 60, calc(var(--dc-overlay) * .5)); pointer-events: none; }

html.dc-scroll-lock,
html.dc-scroll-lock body { overflow: hidden !important; overscroll-behavior: none; }

/* ── Layers ─────────────────────────────────────────────────────────────── */

.dc-root .dc-layer {
  position: absolute;
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 24px);
  background: var(--dc-bg);
  color: var(--dc-text);
  border-radius: var(--dc-radius);
  box-shadow: 0 0 36px rgba(20, 30, 70, .24);
  outline: none;
  overflow: hidden;
  animation: dc-rise .3s cubic-bezier(.2, .8, .2, 1);
}

/* Coloured line on top (on by default since 1.5.14): drawn over the edge, follows the rounded corners. */
.dc-root.dc-accentbar .dc-layer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 4px;
  background: var(--dc-bar);
  pointer-events: none;
}
.dc-root.dc-panel-open .dc-layer--banner { display: none; }

/* ── First layer: shared parts ──────────────────────────────────────────── */

.dc-root .dc-banner { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 0; max-height: 100%; padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
.dc-root .dc-banner__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dc-root .dc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dc-root .dc-head__text { min-width: 0; }
.dc-root .dc-kicker { display: block; margin-bottom: 2px; color: var(--dc-accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dc-root .dc-kicker:empty { display: none; }
.dc-root .dc-logo { display: block; max-height: 36px; max-width: 150px; width: auto; height: auto; }

.dc-root .dc-title { margin: 0; color: var(--dc-title); font-size: 19px; font-weight: 900; line-height: 1.25; }
.dc-root .dc-text { color: var(--dc-text); font-size: 14px; line-height: 1.5; }
.dc-root .dc-text p { margin: 0 0 .5em; }
.dc-root .dc-text p:last-child { margin-bottom: 0; }

/* Link to the policy: colour, weight and underline, as in the design. */
.dc-root .dc-link { color: var(--dc-link); font-weight: 700; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.dc-root .dc-link:hover { text-decoration-thickness: 2px; }

/* Gear that opens the preferences: in the header (phones, centred notice), next to the buttons (long card). */
.dc-root .dc-gear {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid var(--dc-line);
  border-radius: 12px;
  background: var(--dc-soft);
  color: var(--dc-accent);
  transition: background-color .15s;
}
.dc-root .dc-gear:hover { background: var(--dc-soft-strong); }
.dc-root .dc-gear svg { width: 20px; height: 20px; transition: transform .4s; }
.dc-root .dc-gear:hover svg { transform: rotate(60deg); }
.dc-root .dc-head .dc-gear { margin: -6px -4px -6px 0; }
.dc-root .dc-banner__foot > .dc-gear { display: none; }

/* × (optional): closes and rejects */
.dc-root .dc-x {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dc-title);
  font-size: 26px;
  line-height: 1;
  opacity: .55;
  transition: opacity .15s, background-color .15s;
}
.dc-root .dc-x:hover { opacity: 1; background: var(--dc-soft); }

/* Categories of the first layer (optional checkboxes) */
.dc-root .dc-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-root .dc-cat {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border: 1.5px solid var(--dc-line);
  border-radius: 999px;
  background: var(--dc-bg);
  color: var(--dc-title);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
.dc-root .dc-cat--locked { cursor: default; }
.dc-root .dc-cat input,
.dc-root .dc-switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.dc-root .dc-cat__name { order: 2; }
.dc-root .dc-cat__box {
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--dc-switch-off);
  border-radius: 6px;
  background: var(--dc-bg);
  color: transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.dc-root .dc-cat__box svg { width: 14px; height: 14px; }
.dc-root .dc-cat input:checked + .dc-cat__box { border-color: var(--dc-accept); background: var(--dc-accept); color: var(--dc-accept-text); }
.dc-root .dc-cat input:disabled + .dc-cat__box { border-color: var(--dc-pill-text); background: var(--dc-pill-text); color: var(--dc-bg); opacity: .5; }
.dc-root .dc-cat input:focus-visible + .dc-cat__box { outline: 2px solid var(--dc-accent); outline-offset: 2px; }
.dc-root .dc-cat:hover .dc-cat__box { border-color: var(--dc-accept); }

/* «Manage cookies» with text, for shop templates that use {{button_manage}} */
.dc-root .dc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--dc-accent);
  font-size: 14px;
  font-weight: 800;
}
.dc-root .dc-more__icon { display: inline-flex; transition: transform .4s; }
.dc-root .dc-more:hover .dc-more__icon { transform: rotate(60deg); }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.dc-root .dc-banner__foot { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.dc-root .dc-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dc-root .dc-buttons .dc-btn--save { grid-column: 1 / -1; }

.dc-root .dc-btn,
.dc-embed .dc-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 8px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--dc-btn-radius, 14px);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, color .15s, filter .15s, transform .05s;
}

.dc-root.dc-upper .dc-btn,
.dc-root.dc-upper .dc-more,
.dc-root.dc-upper .dc-back,
.dc-root.dc-upper .dc-more *,
.dc-root.dc-upper .dc-decl__more * { text-transform: uppercase; letter-spacing: .05em; }

.dc-root .dc-btn:active { transform: translateY(1px); }
.dc-root .dc-btn[hidden] { display: none; }

.dc-root .dc-btn--accept,
.dc-embed .dc-btn--accept {
  border: none;
  background: var(--dc-accept, #3f7a16);
  color: var(--dc-accept-text, #ffffff);
  box-shadow: 0 6px 16px var(--dc-accept-shadow, rgba(63, 122, 22, .3));
}
.dc-root .dc-btn--accept:hover,
.dc-embed .dc-btn--accept:hover { filter: brightness(1.08); }

/* Reject: same size and layer as accept, filled and with a border (AEPD: as easy and visible). */
.dc-root .dc-btn--reject { border-color: var(--dc-reject-line); background: var(--dc-soft); color: var(--dc-reject); }
.dc-root .dc-btn--reject:hover { background: var(--dc-soft-strong); }

.dc-root .dc-btn--save,
.dc-root .dc-btn--save-close { border-color: var(--dc-accent); background: var(--dc-bg); color: var(--dc-accent); }
.dc-root .dc-btn--save:hover,
.dc-root .dc-btn--save-close:hover { background: var(--dc-panel); }

/* ── Long card at the bottom (computers) ────────────────────────────────── */

.dc-layout-bar .dc-layer--banner { left: 12px; right: 12px; bottom: 12px; }

/* Tablets (768–1023 px): the phone card, wider and centred at the bottom. */
@container (min-width: 768px) and (max-width: 1023px) {
  .dc-layout-bar.dc-pos-bottom .dc-layer--banner { left: 0; right: 0; bottom: 24px; width: min(680px, calc(100% - 48px)); margin: 0 auto; }
  .dc-layout-bar.dc-pos-bottom .dc-banner { padding: 24px; }
}

@container (min-width: 1024px) {
  .dc-layout-bar.dc-pos-bottom .dc-layer--banner {
    left: 0;
    right: 0;
    bottom: 28px;
    width: min(1120px, calc(100% - 160px));
    margin: 0 auto;
  }
  .dc-layout-bar.dc-pos-bottom .dc-banner { flex-direction: row; align-items: center; gap: 40px; padding: 24px 28px 24px 34px; }
  .dc-layout-bar.dc-pos-bottom .dc-banner__body { flex: 1 1 auto; max-width: 600px; gap: 6px; }
  .dc-layout-bar.dc-pos-bottom .dc-title { font-size: 20px; }
  .dc-layout-bar.dc-pos-bottom .dc-text { line-height: 1.55; }
  .dc-layout-bar.dc-pos-bottom .dc-cats { margin-top: 6px; }
  .dc-layout-bar.dc-pos-bottom .dc-head .dc-gear { display: none; }
  .dc-layout-bar.dc-pos-bottom .dc-banner__foot { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 12px; margin-left: auto; padding-top: 0; }
  .dc-layout-bar.dc-pos-bottom .dc-banner__foot > .dc-gear { display: flex; flex-basis: 50px; width: 50px; height: 50px; border-radius: var(--dc-btn-radius); }
  .dc-layout-bar.dc-pos-bottom .dc-banner__foot > .dc-gear svg { width: 22px; height: 22px; }
  .dc-layout-bar.dc-pos-bottom .dc-buttons { display: flex; align-items: center; gap: 12px; }
  .dc-layout-bar.dc-pos-bottom .dc-btn { font-size: 15px; white-space: nowrap; }
  .dc-layout-bar.dc-pos-bottom .dc-btn--reject { min-width: 170px; }
  .dc-layout-bar.dc-pos-bottom .dc-btn--accept { min-width: 200px; }
  .dc-layout-bar.dc-pos-bottom .dc-btn--save { min-width: 0; }
  .dc-layout-bar.dc-pos-bottom .dc-x { position: absolute; top: 10px; right: 10px; margin: 0; }
}

/* ── Card in a bottom corner (tablets and computers) ────────────────────── */

@container (min-width: 768px) {
  .dc-layout-bar.dc-pos-left .dc-layer--banner,
  .dc-layout-bar.dc-pos-right .dc-layer--banner { left: auto; right: auto; bottom: 24px; width: min(440px, calc(100% - 48px)); }
  .dc-layout-bar.dc-pos-left .dc-layer--banner { left: 24px; }
  .dc-layout-bar.dc-pos-right .dc-layer--banner { right: 24px; }
  .dc-layout-bar.dc-pos-left .dc-banner,
  .dc-layout-bar.dc-pos-right .dc-banner { padding: 22px; }
}

/* Phones (below 768 px): a compact card (1.5.15), so it covers as little of the shop as possible. */
@container (max-width: 767px) {
  .dc-layout-bar .dc-banner { gap: 10px; padding: 16px 16px 14px; }
  .dc-layout-bar .dc-banner__body { gap: 8px; }
  .dc-layout-bar .dc-title { font-size: 17px; }
  .dc-layout-bar .dc-text { font-size: 13.5px; line-height: 1.45; }
  .dc-layout-bar .dc-btn { min-height: 46px; }
}

/* Narrow phones: the two buttons keep their text on one line. */
@container (max-width: 420px) {
  .dc-root .dc-buttons .dc-btn { padding-left: 8px; padding-right: 8px; font-size: 13.5px; }
}

/* ── Centred card: the same card, larger, in the middle of the screen ──── */

.dc-layout-center .dc-layer--banner {
  left: 50%;
  top: 50%;
  width: min(var(--dc-max-width), calc(100% - 32px));
  max-height: calc(100% - 32px);
  transform: translate(-50%, -50%);
  animation-name: dc-pop;
}
.dc-layout-center .dc-banner { gap: 18px; padding: 26px 24px 24px; }
.dc-layout-center .dc-banner__body { gap: 14px; }
.dc-layout-center .dc-title { font-size: 22px; }
.dc-layout-center .dc-text { font-size: 15px; line-height: 1.6; }
.dc-layout-center .dc-head .dc-gear { flex-basis: 44px; width: 44px; height: 44px; }
.dc-layout-center .dc-head .dc-gear svg { width: 22px; height: 22px; }
.dc-layout-center .dc-btn { min-height: 54px; font-size: 15px; }

@container (min-width: 768px) {
  .dc-layout-center .dc-banner { gap: 22px; padding: 36px 36px 32px; }
  .dc-layout-center .dc-title { font-size: 26px; }
  .dc-layout-center .dc-text { font-size: 16px; }
  .dc-layout-center .dc-head .dc-gear { flex-basis: 48px; width: 48px; height: 48px; border-radius: 14px; }
  .dc-layout-center .dc-btn { min-height: 56px; font-size: 16px; }
  .dc-layout-center .dc-buttons { gap: 12px; }
}

/* ── Preferences panel: sheet from the bottom on phones ─────────────────── */

.dc-root .dc-layer--panel {
  left: 0;
  right: 0;
  bottom: 0;
  top: 48px;
  max-height: none;
  background: var(--dc-panel);
  border-radius: 22px 22px 0 0;
  animation-name: dc-rise;
}

.dc-root .dc-panel__top { display: flex; flex-direction: column; gap: 10px; padding: 12px 20px 16px; border-bottom: 1px solid var(--dc-line); background: var(--dc-bg); }
.dc-root .dc-panel__grip { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--dc-line); }
.dc-root .dc-panel__bar { display: flex; align-items: center; gap: 12px; }
.dc-root .dc-panel__title { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--dc-title); font-size: 20px; font-weight: 900; line-height: 1.25; }
.dc-root .dc-panel__intro { color: var(--dc-text); font-size: 13px; line-height: 1.5; opacity: .92; }

.dc-root .dc-back {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--dc-reject-line);
  border-radius: 10px;
  background: var(--dc-bg);
  color: var(--dc-title);
  font-size: 13px;
  font-weight: 800;
}
.dc-root .dc-back:hover { background: var(--dc-soft); }

.dc-root .dc-panel__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px; }
.dc-root .dc-decl { display: flex; flex-direction: column; gap: 10px; }

/* One card per category */
.dc-root .dc-decl__cat { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--dc-line); border-radius: 14px; background: var(--dc-bg); }
.dc-root .dc-decl__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.dc-root .dc-decl__name { margin: 0; color: var(--dc-title); font-size: 15px; font-weight: 800; line-height: 1.3; }
.dc-root .dc-decl__desc { color: var(--dc-text); font-size: 13px; line-height: 1.45; opacity: .92; }

.dc-root .dc-decl__more {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dc-accent);
  font-size: 13px;
  font-weight: 800;
}
.dc-root .dc-decl__more i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.dc-root .dc-decl__more[aria-expanded="true"] i { transform: rotate(-135deg) translate(-2px, 0); }
.dc-root .dc-decl__cat--about .dc-decl__more { color: var(--dc-title); font-size: 15px; }

.dc-root .dc-always {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--dc-pill-bg);
  color: var(--dc-pill-text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* Switch */
.dc-root .dc-switch { position: relative; flex: 0 0 auto; display: block; margin: 0; cursor: pointer; }
.dc-root .dc-switch__track { position: relative; display: block; width: 48px; height: 28px; border-radius: 14px; background: var(--dc-switch-off); transition: background-color .2s; }
.dc-root .dc-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .2s;
}
.dc-root .dc-switch input:checked + .dc-switch__track { background: var(--dc-accept); }
.dc-root .dc-switch input:checked + .dc-switch__track::after { transform: translateX(20px); }
.dc-root .dc-switch input:focus-visible + .dc-switch__track { outline: 2px solid var(--dc-accent); outline-offset: 2px; }

/* Cookies of a category */
.dc-root .dc-decl__cookies { border-top: 1px solid var(--dc-line); }
.dc-root .dc-ck { padding: 8px 0; border-bottom: 1px solid var(--dc-line-soft); font-size: 12px; }
.dc-root .dc-ck:last-child { border-bottom: 0; padding-bottom: 0; }
.dc-root .dc-ck__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dc-root .dc-ck__name { padding: 0; background: none; color: var(--dc-title); font-family: inherit; font-size: inherit; font-weight: 800; overflow-wrap: anywhere; }
.dc-root .dc-ck__meta { flex: 0 1 auto; color: var(--dc-text); text-align: right; opacity: .92; }
.dc-root .dc-ck__meta .dc-provider { color: inherit; font-weight: 700; text-decoration: none; }
.dc-root .dc-ck__meta a.dc-provider:hover { text-decoration: underline; }
.dc-root .dc-ck__purpose { margin-top: 3px; color: var(--dc-text); line-height: 1.45; opacity: .85; }
.dc-root .dc-empty { padding: 10px 0 0; font-size: 13px; opacity: .8; }

/* About cookies */
.dc-root .dc-about { padding: 2px 0 0; font-size: 13px; line-height: 1.6; }
.dc-root .dc-about p { margin: 0 0 10px; }
.dc-root .dc-about p:last-child { margin-bottom: 0; }
.dc-root .dc-about a { color: var(--dc-link); font-weight: 700; text-decoration: none; }
.dc-root .dc-about a:hover { text-decoration: underline; }
.dc-root .dc-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--dc-line); border-radius: 10px; font-size: 12.5px; }
.dc-root .dc-consent dt { color: var(--dc-title); font-weight: 800; }
.dc-root .dc-consent dd { margin: 0; min-width: 0; }
.dc-root .dc-consent code { padding: 0; background: none; color: var(--dc-title); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }

.dc-root .dc-panel__foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--dc-line);
  background: var(--dc-bg);
}
.dc-root .dc-panel__foot .dc-btn--save-close { grid-column: 1 / -1; order: 3; }

/* ── Preferences panel: centred window on computers ─────────────────────── */

@container (min-width: 768px) {
  .dc-root .dc-layer--panel {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(680px, calc(100% - 48px));
    height: min(700px, calc(100% - 48px));
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(10, 15, 40, .4);
    transform: translate(-50%, -50%);
    animation-name: dc-pop;
  }
  .dc-root .dc-panel__grip { display: none; }
  .dc-root .dc-panel__top { gap: 8px; padding: 26px 30px 18px; }
  .dc-root .dc-panel__title { font-size: 22px; }
  .dc-root .dc-panel__intro { font-size: 14px; }
  .dc-root .dc-back { padding: 0 16px; font-size: 14px; }
  .dc-root .dc-panel__scroll { padding: 20px 30px; }
  .dc-root .dc-decl { gap: 12px; }
  .dc-root .dc-decl__cat { padding: 16px 20px; }
  .dc-root .dc-decl__name { font-size: 16px; }
  .dc-root .dc-decl__desc { font-size: 14px; }
  .dc-root .dc-ck { font-size: 13px; }
  .dc-root .dc-panel__foot { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px 30px 22px; }
  .dc-root .dc-panel__foot .dc-btn--save-close { grid-column: auto; order: 0; }
}

/* Cookie tables (policy page) */
.dc-table-wrap { overflow-x: auto; background: var(--dc-bg, #fff); }
.dc-table,
.dc-policy table.dc-table { width: 100%; max-width: none; margin: 0; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.dc-table th,
.dc-table td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--dc-line, #e5e7eb); text-align: left; vertical-align: top; }
.dc-table th:first-child,
.dc-table td:first-child { padding-left: 22px; }
.dc-table th:last-child,
.dc-table td:last-child { padding-right: 22px; }
.dc-table tbody tr:last-child td { border-bottom: 0; }
.dc-table th { color: var(--dc-text, #6b7280); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.dc-table .dc-cookie { display: inline-block; max-width: 100%; padding: 2px 7px; border-radius: 5px; background: var(--dc-soft-strong, #f3f4f6); color: var(--dc-title, #111827); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: normal; overflow-wrap: anywhere; }
.dc-table .dc-provider { display: block; color: var(--dc-title, #111827); font-weight: 700; text-decoration: none; }
.dc-table a.dc-provider:hover { text-decoration: underline; }
.dc-table .dc-domain { display: block; color: var(--dc-text, #6b7280); font-size: 12px; opacity: .85; }

/* ── Reopen button ──────────────────────────────────────────────────────── */

.dc-root .dc-reopen {
  position: absolute;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dc-accept);
  color: var(--dc-accept-text);
  box-shadow: 0 6px 18px rgba(15, 18, 24, .25);
  cursor: pointer;
  transition: transform .15s;
}

.dc-root .dc-reopen:hover { transform: scale(1.07); }
.dc-root .dc-reopen--left { left: 16px; }
.dc-root .dc-reopen--right { right: 16px; }

/* ── Blocked embeds ─────────────────────────────────────────────────────── */

.dc-embed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 200px;
  margin: 0 auto 1em;
  padding: 28px;
  border-radius: 12px;
  background: #f3f5f7;
  color: #1d2b4f;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: normal;
  text-transform: none;
}

.dc-embed__icon { color: var(--dc-accent, #2e7d32); }
.dc-embed__text { max-width: 440px; margin: 0; }

/* ── Cookie tables on the policy page ───────────────────────────────────── */

.dc-policy .dc-policy__cat { margin: 1.6em 0 .3em; }
.dc-policy .dc-table-wrap { margin: .8em 0 1.4em; }
.dc-policy.dc-theme-dark .dc-table-wrap { background: transparent; border-color: rgba(255, 255, 255, .2); }
.dc-policy.dc-theme-dark .dc-table th,
.dc-policy.dc-theme-dark .dc-table td { border-color: rgba(255, 255, 255, .15); color: inherit; }

/* Browsers without container queries: the same breakpoint on the page width */
@supports not (container-type: inline-size) {
  @media (min-width: 1024px) {
    .dc-layout-bar.dc-pos-bottom .dc-layer--banner { left: 0; right: 0; bottom: 28px; width: min(1120px, calc(100% - 160px)); margin: 0 auto; }
    .dc-layout-bar.dc-pos-bottom .dc-banner { flex-direction: row; align-items: center; gap: 40px; padding: 24px 28px 24px 34px; }
    .dc-layout-bar.dc-pos-bottom .dc-head .dc-gear { display: none; }
    .dc-layout-bar.dc-pos-bottom .dc-banner__foot { flex-direction: row; align-items: center; margin-left: auto; padding-top: 0; }
    .dc-layout-bar.dc-pos-bottom .dc-banner__foot > .dc-gear { display: flex; width: 50px; height: 50px; }
    .dc-layout-bar.dc-pos-bottom .dc-buttons { display: flex; }
    .dc-root .dc-layer--panel { top: 50%; left: 50%; right: auto; bottom: auto; width: 680px; height: min(700px, calc(100% - 48px)); border-radius: 22px; transform: translate(-50%, -50%); }
    .dc-root .dc-panel__grip { display: none; }
    .dc-root .dc-panel__foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dc-root .dc-panel__foot .dc-btn--save-close { grid-column: auto; order: 0; }
  }
}

@keyframes dc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dc-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dc-pop { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }

@media (prefers-reduced-motion: reduce) {
  .dc-root *,
  .dc-root .dc-layer,
  .dc-root .dc-backdrop { animation: none !important; transition: none !important; }
}

@media print {
  .dc-root { display: none !important; }
}

/* Cookie table of the policy page on phones: one card per cookie, like in the panel. */
@media (max-width: 680px) {
  .dc-policy .dc-table-wrap { border: 1px solid var(--dc-line, #e5e7eb); border-radius: 10px; }
  .dc-policy .dc-table thead { display: none; }
  .dc-policy .dc-table,
  .dc-policy .dc-table tbody { display: block; }
  .dc-policy .dc-table tr { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 7px 12px; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid var(--dc-line, #e5e7eb); }
  .dc-policy .dc-table tbody tr:last-child { border-bottom: 0; }
  .dc-policy .dc-table td { display: contents; }
  .dc-policy .dc-table td::before { content: attr(data-label); color: var(--dc-text, #6b7280); font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; text-transform: uppercase; opacity: .75; }
  .dc-policy .dc-table td > * { min-width: 0; }
}
