/* PRIVÉ Cars — brand theme for devrabiul/laravel-cookie-consent (layout: box).
   Loaded after the package stylesheet; matches the handoff's .cc card design. */

/* ---------- package tokens ---------- */
.cookie-consent-root,
.cookie-preferences-modal{
  --cc-card-bg-color:#fff;
  --cc-card-text-color:var(--ink);
  --cc-button-bg-color-rgb:11,11,12;
  --cc-button-text-color:#fff;
  --cc-border-color:var(--line);
  font-family:var(--sans);
}

/* ---------- page overlay while waiting for a choice ---------- */
.cookie-disable-interaction body::before{
  background:rgba(6,6,7,.45);
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
}

/* ---------- banner card (bottom-left) ---------- */
.cookie-consent-root{
  --cookie-consent-width:460px;
  inset-inline-start:20px;
  inset-inline-end:auto;
  width:min(460px,calc(100vw - 40px));
  max-width:none;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.45);
  overflow:hidden;
  transition:bottom .7s var(--ease);
}
.cookie-consent-root .cookie-consent-container{padding:26px 26px 18px}
.cookie-consent-root .cookie-consent-content-container{width:auto;gap:18px}

.cookie-consent-root .cookie-consent-content-title{
  font-family:var(--serif);
  font-weight:500;
  font-size:1.35rem;
  letter-spacing:-.02em;
  line-height:1.15;
  padding:0 0 8px;
}
.cookie-consent-root .cookie-consent-content-title::before{
  content:"";
  display:block;
  width:34px;
  height:1px;
  margin-bottom:14px;
  background:var(--gold);
}
.cookie-consent-root .cookie-consent-content-description{opacity:1}
.cookie-consent-root .cookie-consent-content-description p{
  margin:0;
  font-size:.86rem;
  line-height:1.6;
  color:var(--ink2);
}

/* ---------- buttons: same pill + gold sweep as the site's .btn ---------- */
.cookie-consent-root .cookie-consent-button-container{
  flex-direction:column;
  align-items:stretch;
  gap:10px;
}
.cookie-consent-root .cookie-consent-button-action{
  flex-direction:row;
  gap:10px;
}
.cookie-consent-root .cookie-consent-button-action.flip-button{flex-direction:row-reverse}

.cookie-consent-root .cookie-consent-button-container button,
.cookie-preferences-modal .primary-button{
  --sw:var(--gold);
  position:relative;
  overflow:hidden;
  isolation:isolate;
  flex:1 1 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 20px;
  border:1px solid var(--ink);
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  font-family:var(--sans);
  font-size:.78rem;
  font-weight:500;
  letter-spacing:.06em;
  transition:color .4s,border-color .4s;
}
.cookie-consent-root .cookie-consent-button-container button::before,
.cookie-preferences-modal .primary-button::before{
  content:"";
  position:absolute;
  inset:-1px;
  z-index:-1;
  border-radius:inherit;
  background:var(--sw);
  transform:translateY(102%);
  transition:transform .65s var(--ease);
}
.cookie-consent-root .cookie-consent-button-container button:hover::before,
.cookie-consent-root .cookie-consent-button-container button:focus-visible::before,
.cookie-preferences-modal .primary-button:hover::before,
.cookie-preferences-modal .primary-button:focus-visible::before{transform:translateY(0)}
.cookie-consent-root .cookie-consent-button-container button:hover,
.cookie-preferences-modal .primary-button:hover{border-color:var(--sw)}

/* Accept = gold, sweeps to ink */
.cookie-consent-root button.cookie-consent-accept,
.cookie-preferences-modal .primary-button.cookie-consent-accept{
  --sw:var(--ink);
  background:var(--gold);
  border-color:var(--gold);
}

/* Reject = outlined, sweeps to ink */
.cookie-consent-root button.cookie-consent-reject,
.cookie-preferences-modal .primary-button.cookie-consent-reject{
  --sw:var(--ink);
  background:transparent;
  color:var(--ink);
}
.cookie-consent-root button.cookie-consent-reject:hover,
.cookie-preferences-modal .primary-button.cookie-consent-reject:hover{color:#fff}

/* Preferences = quiet text link */
.cookie-consent-root .cookie-consent-button-container button.preferences-btn{
  flex:none;
  align-self:center;
  padding:6px 4px;
  border:0;
  border-radius:0;
  background:none;
  color:var(--ink2);
  font-size:.78rem;
  letter-spacing:.04em;
  text-decoration:underline;
  text-underline-offset:3px;
}
.cookie-consent-root .cookie-consent-button-container button.preferences-btn::before{content:none}
.cookie-consent-root .cookie-consent-button-container button.preferences-btn:hover{color:var(--gold-d)}

/* ---------- policy links strip ---------- */
.cookie-consent-root .cookie-consent-links-container{
  padding:12px 26px 14px;
  text-align:left;
  background:var(--soft);
  border-top:1px solid var(--line);
}
.cookie-consent-root .cookie-consent-links-container ul{
  width:auto;
  justify-content:flex-start;
  gap:4px 16px;
}
.cookie-consent-root .cookie-consent-links-container a{
  color:var(--gold-d);
  font-size:.72rem;
  letter-spacing:.04em;
  border-bottom:1px solid rgba(154,119,66,.35);
}
.cookie-consent-root .cookie-consent-links-container a:hover{
  text-decoration:none;
  border-color:var(--gold-d);
}

/* ---------- preferences modal ---------- */
.cookie-preferences-modal .cookie-preferences-modal-overlay{
  background:rgba(6,6,7,.55);
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
}
.cookie-preferences-modal .cookie-preferences-modal-content{
  max-width:560px;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.5);
}
.cookie-preferences-modal .cookie-preferences-modal-header{
  padding:22px 26px;
  border-bottom:1px solid var(--line);
}
.cookie-preferences-modal .cookie-preferences-modal-header h2{
  font-family:var(--serif);
  font-weight:500;
  font-size:1.35rem;
  letter-spacing:-.02em;
}
.cookie-preferences-modal .cookie-preferences-modal-close{
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:var(--ink);
  transition:background .3s,color .3s,border-color .3s;
}
.cookie-preferences-modal .cookie-preferences-modal-close:hover,
.cookie-preferences-modal .cookie-preferences-modal-close:focus-visible{
  background:var(--ink);
  border-color:var(--ink);
  color:#fff;
}
.cookie-preferences-modal .cookie-preferences-modal-body{padding:20px 26px}
.cookie-preferences-modal p{opacity:1;color:var(--ink2);font-size:.84rem;line-height:1.55}
.cookie-preferences-modal .cookie-preferences-intro{margin-bottom:8px}

.cookie-preferences-modal .cookie-category{
  padding:16px 0;
  border-bottom:1px solid var(--line);
}
.cookie-preferences-modal .cookie-category:last-child{border-bottom:0;padding-bottom:4px}
.cookie-preferences-modal .cookie-category-header{margin-bottom:6px}
.cookie-preferences-modal .cookie-category-header h3{font-size:.92rem;font-weight:600;color:var(--ink)}
.cookie-preferences-modal .cookie-category-description{font-size:.78rem}

/* Toggles: same gold switch as the handoff's .cc-sw */
.cookie-preferences-modal .cookie-toggle-slider{background:#d8d3c9}
.cookie-preferences-modal .cookie-toggle input:checked+.cookie-toggle-slider{background:var(--gold)}
.cookie-preferences-modal .cookie-toggle input:disabled+.cookie-toggle-slider{background:var(--gold);opacity:.55}
.cookie-preferences-modal .cookie-toggle input:focus-visible+.cookie-toggle-slider{box-shadow:0 0 0 3px rgba(184,147,90,.35)}

.cookie-preferences-modal .cookie-preferences-modal-footer{
  gap:10px;
  padding:18px 26px 22px;
  background:var(--soft);
  border-top:1px solid var(--line);
}
.cookie-preferences-modal .cookie-preferences-modal-button-group{gap:10px}
.cookie-preferences-modal .cookie-preferences-save.primary-button{--sw:var(--gold)}

/* ---------- mobile: full width, above the sticky Call/WhatsApp bar ---------- */
@media (max-width:959px){
  .cookie-consent-root{
    inset-inline-start:12px;
    inset-inline-end:12px;
    width:auto;
    max-height:calc(100svh - 100px);
    overflow:auto;
  }
  .cookie-consent-root:not(.cookie-consent-hide){--cookie-consent-bottom:70px}
}
@media (max-width:640px){
  .cookie-consent-root{border-radius:16px}
  .cookie-consent-root .cookie-consent-container{padding:18px 18px 12px}
  .cookie-consent-root .cookie-consent-content-title{font-size:1.1rem}
  .cookie-consent-root .cookie-consent-content-title::before{margin-bottom:10px}
  .cookie-consent-root .cookie-consent-content-description p{font-size:.78rem;line-height:1.5}
  .cookie-consent-root .cookie-consent-button-container button{padding:10px 14px;font-size:.72rem}
  .cookie-consent-root .cookie-consent-links-container{padding:10px 18px 12px}
  .cookie-preferences-modal .cookie-preferences-modal-header,
  .cookie-preferences-modal .cookie-preferences-modal-body,
  .cookie-preferences-modal .cookie-preferences-modal-footer{padding-left:18px;padding-right:18px}
}
