/**
 * DPS Telecom — Cookie Consent Banner styles
 * Loaded via <link rel="stylesheet"> from templates/html/cookie_banner.php
 * (kept external so the include stays valid HTML — <style> is not allowed inside <body>)
 */
 :root {
    --cb-dark: #1d2026;
    --cb-blue: #1515e8;
    --cb-red:  #af111c;   /* matches site .red-btn */
    --cb-link: #6a8fff;
    --cb-font: Roboto, sans-serif;
  }
  
  #cb-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--cb-dark);
    border-top: 3px solid var(--cb-blue);
    box-shadow: 0 -4px 24px rgba(0,0,0,.25);
    font-family: var(--cb-font);
  }
  
  /* ── State A — Strip ─────────────────────── */
  #cb-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 40px;
  }
  
  #cb-strip-emoji {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
  }
  
  #cb-strip-text {
    flex: 1;
  }
  
  #cb-strip-headline {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
  }
  
  #cb-strip-sub {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,.5);
    line-height: 1.5;
  }
  
  #cb-strip-sub a {
    color: var(--cb-link);
    text-decoration: none;
    border-bottom: 1px solid rgba(106,143,255,.35);
    font-weight: 400;
  }
  
  #cb-strip-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
  }
  
  #cb-btn-manage {
    background: none;
    border: none;
    font-family: var(--cb-font);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    cursor: pointer;
    letter-spacing: .04em;
    padding: 10px 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  
  #cb-btn-accept-strip {
    background: var(--cb-red);
    border: none;
    font-family: var(--cb-font);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: 40px;
    cursor: pointer;
  }
  
  /* ── State B — Expanded ─────────────────── */
  #cb-expanded {
    display: none;
    padding: 24px 40px 20px;
  }
  
  #cb-exp-inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
  }
  
  #cb-exp-left {
    flex: 1;
  }
  
  #cb-exp-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .01em;
    margin-bottom: 6px;
  }
  
  #cb-exp-body {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
    max-width: 480px;
  }
  
  #cb-exp-body a {
    color: var(--cb-link);
    text-decoration: none;
    border-bottom: 1px solid rgba(106,143,255,.35);
    font-weight: 400;
  }
  
  #cb-toggles {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
  }
  
  .cb-toggle-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 180px;
    flex: 1;
  }
  
  .cb-toggle-label {
    flex: 1;
  }
  
  .cb-toggle-name {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
  
  .cb-toggle-sub {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,.38);
    margin-top: 2px;
  }
  
  .cb-track {
    width: 38px;
    height: 22px;
    border-radius: 40px;
    position: relative;
    flex-shrink: 0;
    transition: background .2s;
    cursor: pointer;
  }
  
  .cb-track[data-locked="true"] {
    cursor: default;
    opacity: .45;
  }
  
  .cb-track[data-locked="true"] .cb-thumb {
    background: rgba(255,255,255,.7);
  }
  
  /* Essential locked tooltip */
  #cb-essential-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #0d0f13;
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    font-family: var(--cb-font);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 6px;
    width: 200px;
    text-align: center;
    pointer-events: none;
    z-index: 1;
  }
  
  #cb-essential-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(255,255,255,.18);
  }
  
  .cb-toggle-card--essential {
    position: relative;
  }
  
  .cb-toggle-card--essential.cb-tooltip-visible #cb-essential-tooltip {
    display: block;
    animation: cb-fade-in 150ms ease both;
  }
  
  .cb-thumb {
    position: absolute;
    top: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: left .2s;
  }
  
  #cb-exp-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 2px;
    min-width: 160px;
  }
  
  #cb-btn-accept-exp {
    background: var(--cb-red);
    border: none;
    font-family: var(--cb-font);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 13px 24px;
    border-radius: 40px;
    cursor: pointer;
    white-space: nowrap;
  }
  
  #cb-btn-save {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    font-family: var(--cb-font);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 13px 24px;
    border-radius: 40px;
    cursor: pointer;
    white-space: nowrap;
  }
  
  #cb-btn-reject {
    background: none;
    border: none;
    font-family: var(--cb-font);
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,.38);
    cursor: pointer;
    text-align: center;
    padding: 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  
  /* ── Animations ──────────────────────────── */
  @keyframes cb-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
  
  @keyframes cb-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  #cb-banner.cb-anim-strip {
    animation: cb-slide-up 400ms cubic-bezier(.22,1,.36,1) both;
  }
  
  #cb-expanded.cb-anim-expand {
    animation: cb-fade-in 250ms ease both;
  }
  
  /* ── Responsive ──────────────────────────── */
  @media (max-width: 600px) {
    #cb-strip {
      flex-wrap: wrap;
      padding: 16px 20px;
    }
  
    #cb-strip-actions {
      width: 100%;
      justify-content: flex-end;
    }
  
    #cb-exp-inner {
      flex-direction: column;
    }
  
    #cb-exp-right {
      width: 100%;
      flex-direction: row;
      flex-wrap: wrap;
    }
  
    #cb-btn-reject {
      width: 100%;
      text-align: center;
    }
  
    #cb-expanded {
      padding: 20px;
    }
  }
  
  @media (max-width: 400px) {
    #cb-strip {
      padding: 14px 16px;
    }
  }
  