/* DCS DOG PAW — Cookie-consent CENTER-MODAL (Consent Mode v2). Lumi design, DCS brand.
 * Semantic classes + data-consent-action kept identical to the shared plugin so consent.js
 * works unchanged; only the theme (cream/green/lime center modal) differs. */

.bebrand-consent, .bebrand-consent * { box-sizing: border-box; }

/* Center modal card */
.bebrand-consent {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fcffeb;
  color: #20430f;
  border-radius: 22px;
  border-top: 6px solid #d6e24e;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  padding: 34px 38px 30px;
  z-index: 2147483000;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}
.bebrand-consent[hidden] { display: none; }

/* Dimmed overlay (dark-green tint) — Consent Mode v2: döntés kötelező, nem kikerülhető */
.bebrand-consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 40, 14, 0.62);
  z-index: 2147482990;
}
.bebrand-consent-backdrop[hidden] { display: none; }
body.bebrand-consent-open { overflow: hidden; }

.bebrand-consent__logo { display: block; height: 40px; width: auto; margin: 0 auto 16px; }

.bebrand-consent__title { font-size: clamp(22px, 3vw, 27px); font-weight: 900; color: #1b5e2f; margin: 0 0 12px; letter-spacing: -0.3px; }
.bebrand-consent__body { margin: 0 0 18px; color: #4a5a3a; font-size: 15px; }
.bebrand-consent__body a { color: #1b5e2f; font-weight: 700; text-decoration: underline; }

/* Nyelv + pénznem választó sor */
.bebrand-consent__pref { margin: 18px 0 22px; }
.bebrand-consent__pref-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8a9470; margin: 0 0 10px;
}
.bebrand-consent__selectors { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bebrand-consent__selbox {
  background: #fff; border: 1.5px solid #d9dec4; border-radius: 12px;
  padding: 7px 14px; min-width: 128px; min-height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #2a3320;
}
/* Tame the embedded TP + WOOCS widgets so they sit cleanly inside .selbox */
.bebrand-consent__selbox .trp-language-switcher,
.bebrand-consent__selbox .woocommerce-currency-switcher-form,
.bebrand-consent__selbox .woocs-style-1,
.bebrand-consent__selbox form { margin: 0; width: 100%; }
.bebrand-consent__selbox select { border: 0; background: transparent; font: inherit; color: inherit; font-weight: 700; width: 100%; cursor: pointer; }
.bebrand-consent__selbox .dd-container { width: 100% !important; }
/* A deviza-választó flag felesleges (Lumi dizájn: csak 'HUF'/'EUR' kód) + a ddslick flag-img néha 404 -> rejtsd */
.bebrand-consent__selbox--cur img,
.bebrand-consent__selbox--cur .dd-selected-image,
.bebrand-consent__selbox--cur .dd-option-image { display: none !important; }
.bebrand-consent__selbox--cur .dd-selected-text,
.bebrand-consent__selbox--cur .dd-selected { font-weight: 700; color: #2a3320; padding-left: 0 !important; }

/* Action buttons (Lumi: Elfogadom lime pill / Beállítások light-green / Elutasítom green-outline) */
.bebrand-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.bebrand-consent__btn {
  padding: 13px 26px; border-radius: 32px; font-size: 15px; font-weight: 800;
  cursor: pointer; border: 1.5px solid transparent; transition: background .15s, transform .15s, border-color .15s;
  font-family: inherit;
}
.bebrand-consent__btn--accept { background: #d6e24e; color: #1b3d12; font-size: 16px; font-weight: 900; padding: 14px 40px; box-shadow: 0 10px 22px rgba(214, 226, 78, 0.55); order: 1; }
.bebrand-consent__btn--accept:hover { background: #cbd93e; transform: translateY(-1px); }
.bebrand-consent__btn--settings { background: #eef2dd; color: #1b5e2f; border-color: #cdd6a8; order: 2; }
.bebrand-consent__btn--settings:hover { background: #e6eccf; }
.bebrand-consent__btn--reject { background: #fff; color: #1b5e2f; border: 2px solid #1b5e2f; order: 3; }
.bebrand-consent__btn--reject:hover { background: #f1f5e4; }
.bebrand-consent__btn--save { background: #d6e24e; color: #1b3d12; font-weight: 900; box-shadow: 0 10px 22px rgba(214, 226, 78, 0.55); }
.bebrand-consent__btn--save:hover { background: #cbd93e; }
.bebrand-consent__btn:focus-visible,
.bebrand-consent__switch input:focus-visible + .bebrand-consent__slider { outline: 2px solid #1b5e2f; outline-offset: 2px; }

/* Granular settings panel */
.bebrand-consent__settings { margin: 6px 0 18px; display: none; text-align: left; }
.bebrand-consent.is-settings .bebrand-consent__settings { display: block; }
.bebrand-consent.is-settings .bebrand-consent__actions--main { display: none; }
.bebrand-consent.is-settings .bebrand-consent__pref { display: none; }
.bebrand-consent:not(.is-settings) .bebrand-consent__actions--settings { display: none; }

.bebrand-consent__cat {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-top: 1px solid #e2e7cf;
}
.bebrand-consent__cat-label { font-weight: 800; font-size: 14px; color: #20430f; }
.bebrand-consent__cat-desc { color: #6a7a52; font-size: 12.5px; margin-top: 3px; }

/* Toggle switch (green) */
.bebrand-consent__switch { position: relative; flex-shrink: 0; width: 44px; height: 24px; }
.bebrand-consent__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bebrand-consent__switch input:disabled { cursor: not-allowed; }
.bebrand-consent__slider { position: absolute; inset: 0; border-radius: 999px; background: #cdd6a8; transition: background .15s; }
.bebrand-consent__slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.bebrand-consent__switch input:checked + .bebrand-consent__slider { background: #1b5e2f; }
.bebrand-consent__switch input:checked + .bebrand-consent__slider::before { transform: translateX(20px); }
.bebrand-consent__switch input:disabled + .bebrand-consent__slider { background: #8bbf4d; opacity: .7; }

/* Footer reopen link */
.bebrand-cookie-settings { background: none; border: none; padding: 0; margin-left: 8px; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; opacity: .85; }
.bebrand-cookie-settings:hover { opacity: 1; }

@media (max-width: 520px) {
  .bebrand-consent { padding: 26px 18px 22px; }
  .bebrand-consent__btn { flex-basis: 100%; }
  .bebrand-consent__btn--accept { order: 1; }
  .bebrand-consent__btn--settings { order: 2; }
  .bebrand-consent__btn--reject { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .bebrand-consent__btn, .bebrand-consent__slider, .bebrand-consent__slider::before { transition: none; }
}
