/**
 * 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). */

.dc-root {
  --dc-accept: #1f2937;
  --dc-accept-text: #ffffff;
  --dc-reject: #1f2937;
  --dc-title: #111827;
  --dc-text: #4b5563;
  --dc-link: #111827;
  --dc-bg: #ffffff;
  --dc-accent: #374151;
  --dc-radius: 12px;
  --dc-btn-radius: 999px;
  --dc-max-width: 800px;
  --dc-overlay: .4;
  --dc-line: rgba(0, 0, 0, .1);
  --dc-soft: rgba(0, 0, 0, .04);
  --dc-soft-strong: #f3f4f6;
  --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.55;
  color: var(--dc-text);
  -webkit-font-smoothing: antialiased;
}

.dc-root { --dc-soft-strong: color-mix(in srgb, var(--dc-text) 7%, var(--dc-bg)); --dc-line: color-mix(in srgb, var(--dc-text) 16%, var(--dc-bg)); }

.dc-root.dc-theme-dark { --dc-line: rgba(255, 255, 255, .14); --dc-soft: rgba(255, 255, 255, .06); --dc-soft-strong: rgba(255, 255, 255, .05); }
.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 { margin: 0; padding: 0; border: 0; background: none; }
.dc-root button { margin: 0; font: inherit; box-shadow: none; height: auto; min-height: 0; float: none; }
.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; }

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

.dc-root .dc-backdrop {
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(15, 18, 24, var(--dc-overlay));
  animation: dc-fade .25s ease-out;
}

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

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

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

.dc-root.dc-accentbar .dc-layer { border-top: 5px solid var(--dc-accent); }
.dc-root.dc-panel-open .dc-layer--banner { display: none; }

/* First layer: centred window, corner card or bottom bar */
.dc-layout-center .dc-layer--banner {
  left: 50%;
  top: 50%;
  width: min(var(--dc-max-width), calc(100% - 32px));
  transform: translate(-50%, -50%);
  animation-name: dc-pop;
}

.dc-layout-box .dc-layer--banner { bottom: 20px; width: min(460px, calc(100% - 32px)); }
.dc-layout-box.dc-pos-right .dc-layer--banner { right: 20px; }
.dc-layout-box.dc-pos-left .dc-layer--banner { left: 20px; }

.dc-layout-bar .dc-layer--banner {
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85%;
  border-radius: var(--dc-radius) var(--dc-radius) 0 0;
}

.dc-root .dc-banner { position: relative; display: flex; flex-direction: column; min-height: 0; max-height: 100%; }
.dc-root .dc-banner__body { overflow-y: auto; overscroll-behavior: contain; padding: 34px 54px 6px; }
.dc-layout-box .dc-banner__body { padding: 26px 26px 6px; }
.dc-layout-bar .dc-banner__body { padding: 22px max(24px, calc((100% - 1180px) / 2)) 4px; }

.dc-root .dc-x {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dc-title);
  font-size: 28px;
  line-height: 1;
  opacity: .55;
  cursor: pointer;
  transition: opacity .15s, background-color .15s;
}

.dc-root .dc-x:hover { opacity: 1; background: var(--dc-soft); }

.dc-root .dc-logo { display: block; max-height: 40px; max-width: 150px; width: auto; height: auto; margin-bottom: 12px; }

.dc-root .dc-title {
  margin-right: 28px;
  margin-bottom: 8px;
  color: var(--dc-title);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.dc-root .dc-text { color: var(--dc-text); font-size: 14.5px; line-height: 1.6; }

.dc-root .dc-link {
  color: var(--dc-link);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dc-root .dc-link:hover { text-decoration-thickness: 2px; }

/* ── Categories of the first layer (checkboxes) ─────────────────────────── */

.dc-root .dc-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin: 20px 0 4px;
  border-top: 1px solid var(--dc-line);
  border-bottom: 1px solid var(--dc-line);
}

.dc-root .dc-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 14px 10px;
  color: var(--dc-title);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.dc-root .dc-cat + .dc-cat { border-left: 1px solid var(--dc-line); }
.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__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--dc-reject);
  border-radius: 6px;
  background: var(--dc-bg);
  color: transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}

.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-title); background: var(--dc-title); color: var(--dc-bg); opacity: .45; }
.dc-root .dc-cat input:focus-visible + .dc-cat__box { box-shadow: 0 0 0 3px rgba(0, 0, 0, .2); }
.dc-root .dc-cat:hover .dc-cat__box { border-color: var(--dc-accept); }

/* ── Footer and buttons ─────────────────────────────────────────────────── */

.dc-root .dc-banner__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 18px 54px 30px;
}

.dc-layout-box .dc-banner__foot { padding: 16px 26px 22px; }
.dc-layout-bar .dc-banner__foot { padding: 14px max(24px, calc((100% - 1180px) / 2)) 22px; }

.dc-root .dc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--dc-reject);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.dc-root .dc-more:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.dc-root .dc-more__icon { display: inline-flex; transition: transform .4s; }
.dc-root .dc-more:hover .dc-more__icon { transform: rotate(60deg); }

.dc-root .dc-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-left: auto; }

.dc-root .dc-btn,
.dc-embed .dc-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--dc-btn-radius, 999px);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, filter .15s, transform .1s;
}

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

.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 { background: var(--dc-accept, #2e7d32); border-color: var(--dc-accept, #2e7d32); color: var(--dc-accept-text, #ffffff); }
.dc-root .dc-btn--accept:hover,
.dc-embed .dc-btn--accept:hover { filter: brightness(.92); }

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

.dc-root.dc-equal .dc-btn--reject { background: var(--dc-reject); color: var(--dc-bg); }
.dc-root.dc-equal .dc-btn--reject:hover { filter: brightness(1.15); }

.dc-root .dc-btn--save { background: transparent; border-color: var(--dc-accept); color: var(--dc-accept); }
.dc-root .dc-btn--save:hover { background: var(--dc-accept); color: var(--dc-accept-text); }

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

/* ── Preferences panel ("Manage") ───────────────────────────────────────── */

.dc-root .dc-layer--panel {
  left: 50%;
  top: 50%;
  width: min(880px, calc(100% - 40px));
  height: min(780px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  animation-name: dc-pop;
}

.dc-root .dc-panel__top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 18px 32px;
  border-bottom: 1px solid var(--dc-line);
}

.dc-root .dc-panel__top .dc-logo { flex: 0 0 auto; margin: 0; max-height: 32px; max-width: 120px; }
.dc-root .dc-panel__title { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--dc-title); font-size: 19px; font-weight: 800; line-height: 1.3; }
.dc-root .dc-panel__top .dc-x { position: static; flex: 0 0 auto; }

.dc-root .dc-panel__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 32px 28px; background: var(--dc-bg); }
.dc-root .dc-panel__intro { margin: 0 0 20px; font-size: 14px; }

.dc-root .dc-tabs {
  position: sticky;
  top: -22px;
  z-index: 2;
  display: flex;
  gap: 4px;
  margin: 0 -32px 18px;
  padding: 10px 32px;
  background: var(--dc-bg);
  overflow-x: auto;
  scrollbar-width: none;
}

.dc-root .dc-tabs::-webkit-scrollbar { display: none; }

.dc-root .dc-tabs::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  height: 1px;
  background: var(--dc-line);
}

.dc-root .dc-tab {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
  margin: 0;
  padding: 10px 4px 12px;
  margin-right: 22px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--dc-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.dc-root .dc-tab:hover { color: var(--dc-title); }
.dc-root .dc-tab.is-active { z-index: 1; border-bottom-color: var(--dc-accent); color: var(--dc-title); }

.dc-root .dc-decl { display: block; }

.dc-root .dc-decl__cat { padding: 20px 0; border-bottom: 1px solid var(--dc-line); }
.dc-root .dc-decl__cat:first-child { padding-top: 6px; }
.dc-root .dc-decl__cat:last-child { border-bottom: 0; padding-bottom: 4px; }

.dc-root .dc-decl__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; }
.dc-root .dc-decl__name { margin: 0; padding: 0; border: 0; background: none; color: var(--dc-title); font-size: 16px; font-weight: 800; line-height: 1.3; }
.dc-root .dc-decl__desc { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; }

.dc-root .dc-decl__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dc-link);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.dc-root .dc-decl__more:hover span { text-decoration: underline; text-underline-offset: 3px; }

.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__cookies { margin: 14px 0 0; border: 1px solid var(--dc-line); border-radius: calc(var(--dc-radius) * .7); overflow: hidden; }

.dc-root .dc-always {
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--dc-soft-strong);
  color: var(--dc-title);
  font-size: 12px;
  font-weight: 700;
  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: 46px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dc-text) 30%, var(--dc-bg));
  transition: background-color .2s;
}

.dc-root .dc-switch__track::after {
  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, .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 { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dc-accept) 35%, transparent); }

/* Cookie tables (panel and policy page) */
.dc-table-wrap { overflow-x: auto; background: var(--dc-bg, #fff); }
.dc-root .dc-table thead th { background: var(--dc-soft-strong); }
.dc-table,
.dc-root table.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; }
.dc-root .dc-empty { padding: 14px 22px; font-size: 13px; opacity: .8; }

/* About cookies */
.dc-root .dc-about { padding: 6px 0 0; font-size: 14px; line-height: 1.7; }
.dc-root .dc-about p { margin: 0 0 12px; }
.dc-root .dc-about p:last-child { margin-bottom: 0; }
.dc-root .dc-about a { color: var(--dc-link); font-weight: 700; }
.dc-root .dc-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--dc-line); border-radius: calc(var(--dc-radius) * .7); font-size: 13px; }
.dc-root .dc-consent dt { color: var(--dc-title); font-weight: 700; }
.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: 12.5px; overflow-wrap: anywhere; }

.dc-root .dc-panel__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-top: 1px solid var(--dc-line);
  background: var(--dc-bg);
}

.dc-root .dc-panel__foot .dc-btn { flex: 1 1 0; min-width: 0; padding: 12px 18px; }

/* ── 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; }

/* ── Small screens: the visible width, not the page width ───────────────── */

@container (max-width: 680px) {
  .dc-root .dc-layer--banner,
  .dc-layout-center .dc-layer--banner,
  .dc-layout-box .dc-layer--banner,
  .dc-layout-bar .dc-layer--banner {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    width: auto;
    max-height: calc(100% - 20px);
    transform: none;
    border-radius: var(--dc-radius);
    animation-name: dc-rise;
  }

  .dc-root .dc-layer--panel {
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    transform: none;
    border-radius: 0;
    animation-name: dc-rise;
  }

  .dc-root .dc-banner__body,
  .dc-layout-box .dc-banner__body,
  .dc-layout-bar .dc-banner__body { padding: 24px 20px 4px; }

  .dc-root .dc-title { font-size: 19px; }
  .dc-root .dc-text { font-size: 14px; }

  .dc-root .dc-cats { grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .dc-root .dc-cat { flex-direction: row-reverse; justify-content: flex-end; gap: 10px; padding: 10px 4px; text-align: left; }
  .dc-root .dc-cat:nth-child(odd) { border-left: 0; }

  .dc-root .dc-banner__foot,
  .dc-layout-box .dc-banner__foot,
  .dc-layout-bar .dc-banner__foot { flex-direction: column-reverse; align-items: stretch; gap: 10px; padding: 14px 20px 18px; }

  .dc-root .dc-buttons { flex-direction: column-reverse; margin-left: 0; gap: 10px; }
  .dc-root .dc-btn { width: 100%; min-width: 0; }
  .dc-root .dc-more { justify-content: center; }

  .dc-root .dc-panel__top { padding: 14px 12px 14px 20px; }
  .dc-root .dc-panel__title { font-size: 17px; }
  .dc-root .dc-panel__top .dc-logo { max-width: 92px; max-height: 28px; }
  .dc-root .dc-panel__scroll { padding: 18px 16px 22px; }
  .dc-root .dc-panel__intro { font-size: 13.5px; }
  .dc-root .dc-tabs { top: -18px; margin: 0 -16px 14px; padding: 6px 16px; }
  .dc-root .dc-tabs::before { left: 16px; right: 16px; }
  .dc-root .dc-tab { margin-right: 18px; font-size: 13.5px; }
  .dc-root.dc-upper .dc-tab { margin-right: 14px; font-size: 12px; letter-spacing: .03em; }
  .dc-root .dc-decl__desc { font-size: 13px; }
  .dc-root .dc-decl__cat { padding: 18px 0; }
  .dc-root .dc-decl__name { font-size: 15.5px; }
  .dc-root .dc-decl__head { gap: 14px; }
  .dc-root .dc-panel__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .dc-root .dc-panel__foot .dc-btn { width: 100%; padding: 12px 10px; font-size: 13px; white-space: normal; }
  .dc-root .dc-panel__foot .dc-btn--save-close { grid-column: 1 / -1; order: 3; }

  .dc-root .dc-table thead { display: none; }
  .dc-root .dc-table,
  .dc-root .dc-table tbody { display: block; }
  .dc-root .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); }
  .dc-root .dc-table tbody tr:last-child { border-bottom: 0; }
  .dc-root .dc-table td { display: contents; }
  .dc-root .dc-table td::before { content: attr(data-label); color: var(--dc-text); font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; text-transform: uppercase; opacity: .75; }
  .dc-root .dc-table td > * { min-width: 0; }
}

@container (min-width: 681px) {
  .dc-layout-bar .dc-banner { flex-direction: row; align-items: flex-end; }
  .dc-layout-bar .dc-banner__body { flex: 1 1 auto; padding-bottom: 22px; }
  .dc-layout-bar .dc-banner__foot { flex: 0 0 auto; flex-direction: column-reverse; align-items: flex-end; padding-left: 0; }
  .dc-layout-bar .dc-cats { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 12px; border: 0; }
  .dc-layout-bar .dc-cat { flex-direction: row-reverse; gap: 8px; padding: 4px 0; border: 0 !important; }
  .dc-layout-box .dc-cats { grid-template-columns: 1fr 1fr; }
  .dc-layout-box .dc-cat { flex-direction: row-reverse; justify-content: flex-end; gap: 10px; padding: 9px 4px; text-align: left; }
  .dc-layout-box .dc-cat:nth-child(odd) { border-left: 0; }
  .dc-layout-box .dc-banner__foot { flex-direction: column-reverse; align-items: stretch; }
  .dc-layout-box .dc-buttons { flex-direction: column-reverse; margin-left: 0; }
  .dc-layout-box .dc-btn { width: 100%; }
}

/* Browsers without container queries */
@supports not (container-type: inline-size) {
  @media (max-width: 680px) {
    .dc-root .dc-layer--banner { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; transform: none; }
    .dc-root .dc-layer--panel { inset: 0; width: 100%; height: 100%; max-height: none; transform: none; border-radius: 0; }
    .dc-root .dc-cats { grid-template-columns: 1fr 1fr; }
    .dc-root .dc-banner__foot,
    .dc-root .dc-buttons,
    .dc-root .dc-panel__foot { flex-direction: column-reverse; align-items: stretch; }
    .dc-root .dc-btn { width: 100%; }
  }
}

@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; }
}
