/* =========================================================
COOKIE BANNER — GDPR consent
Self-contained. Classes prefixed with .eh-cookie- to avoid conflicts.
========================================================= */


/* =========================================================
TOKENS
========================================================= */

.eh-cookie-banner,
.eh-cookie-modal-overlay{
  --ck-navy:       #1a1f3c;
  --ck-navy-deep:  #0f1429;
  --ck-gold:       #c9a84c;
  --ck-gold-hover: #b89535;
  --ck-cream:      #faf6ee;
  --ck-text:       #1a1f3c;
  --ck-muted:      #6b7280;
  --ck-border:     #e8e0d0;

  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}


/* =========================================================
BANNER (bottom strip)
========================================================= */

.eh-cookie-banner{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;

  background: #fff;
  border-top: 3px solid var(--ck-gold);
  box-shadow: 0 -10px 40px rgba(15, 18, 36, 0.15);

  padding: 22px 28px;

  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.eh-cookie-banner.is-visible{
  transform: translateY(0);
}

.eh-cookie-banner-inner{
  max-width: 1280px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 28px;
}

.eh-cookie-content{
  flex: 1;
  min-width: 0;
}

.eh-cookie-title{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ck-navy);
  margin: 0 0 4px;
  line-height: 1.2;
}

.eh-cookie-text{
  font-size: 0.88rem;
  color: var(--ck-muted);
  line-height: 1.55;
  margin: 0;
}

.eh-cookie-text a{
  color: var(--ck-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.eh-cookie-text a:hover{
  color: var(--ck-gold-hover);
}


/* =========================================================
ACTIONS (banner buttons)
========================================================= */

.eh-cookie-actions{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* =========================================================
BUTTONS — shared
========================================================= */

.eh-cookie-btn{
  padding: 11px 22px;

  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;

  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;

  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.eh-cookie-btn:active{
  transform: scale(0.97);
}


/* link style — discreet customize */
.eh-cookie-btn-link{
  background: transparent;
  border: 0;
  color: var(--ck-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 11px 14px;
}

.eh-cookie-btn-link:hover{
  color: var(--ck-gold);
}


/* outline — secondary */
.eh-cookie-btn-secondary{
  background: #fff;
  border: 1.5px solid var(--ck-navy);
  color: var(--ck-navy);
}

.eh-cookie-btn-secondary:hover{
  background: var(--ck-navy);
  color: #fff;
}


/* solid gold — primary */
.eh-cookie-btn-primary{
  background: var(--ck-gold);
  border: 1.5px solid var(--ck-gold);
  color: var(--ck-navy);
  font-weight: 600;
}

.eh-cookie-btn-primary:hover{
  background: var(--ck-gold-hover);
  border-color: var(--ck-gold-hover);
}


/* =========================================================
MODAL OVERLAY
========================================================= */

.eh-cookie-modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 99999;

  background: rgba(15, 18, 36, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;

  opacity: 0;
  transition: opacity .25s ease;
}

.eh-cookie-modal-overlay.is-open{
  display: flex;
  opacity: 1;
}

body.eh-cookie-lock{ overflow: hidden; }


/* =========================================================
MODAL CARD
========================================================= */

.eh-cookie-modal{
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;

  background: #fff;
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 30px 80px rgba(15, 18, 36, 0.4);

  transform: translateY(20px) scale(0.96);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);

  display: flex;
  flex-direction: column;
}

.eh-cookie-modal-overlay.is-open .eh-cookie-modal{
  transform: translateY(0) scale(1);
}


/* =========================================================
MODAL HEADER
========================================================= */

.eh-cookie-modal-header{
  position: relative;
  padding: 22px 28px 20px;
  background: var(--ck-navy);
  color: #fff;
  flex-shrink: 0;
}

.eh-cookie-modal-header::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ck-gold);
}

.eh-cookie-modal-title{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
  line-height: 1.2;
}

.eh-cookie-modal-sub{
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 6px 0 0;
}

.eh-cookie-modal-close{
  position: absolute;
  top: 16px;
  right: 16px;

  width: 34px;
  height: 34px;

  background: rgba(255, 255, 255, 0.10);
  border: 0;
  border-radius: 50%;
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: background .2s ease;
}

.eh-cookie-modal-close:hover{
  background: rgba(255, 255, 255, 0.20);
}

.eh-cookie-modal-close svg{
  width: 18px;
  height: 18px;
}


/* =========================================================
MODAL BODY
========================================================= */

.eh-cookie-modal-body{
  padding: 22px 28px;
  overflow-y: auto;
  flex: 1;
}


/* =========================================================
CATEGORIES
========================================================= */

.eh-cookie-category{
  background: var(--ck-cream);
  border: 1px solid var(--ck-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.eh-cookie-category:last-child{
  margin-bottom: 0;
}

.eh-cookie-category-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.eh-cookie-category-name{
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ck-text);
  letter-spacing: 0.01em;
}

.eh-cookie-category-desc{
  font-size: 0.84rem;
  color: var(--ck-muted);
  line-height: 1.5;
  margin: 0;
}


/* =========================================================
TOGGLE SWITCH
========================================================= */

.eh-cookie-toggle{
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.eh-cookie-toggle input{
  opacity: 0;
  width: 0;
  height: 0;
}

.eh-cookie-toggle-slider{
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  border-radius: 26px;
  transition: background .25s ease;
}

.eh-cookie-toggle-slider::before{
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

.eh-cookie-toggle input:checked + .eh-cookie-toggle-slider{
  background: var(--ck-gold);
}

.eh-cookie-toggle input:checked + .eh-cookie-toggle-slider::before{
  transform: translateX(20px);
}

.eh-cookie-toggle input:disabled + .eh-cookie-toggle-slider{
  background: var(--ck-gold);
  opacity: 0.55;
  cursor: not-allowed;
}


/* =========================================================
MODAL FOOTER
========================================================= */

.eh-cookie-modal-footer{
  padding: 16px 28px;
  border-top: 1px solid var(--ck-border);
  background: #fff;

  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}


/* =========================================================
PRIVACY CHECKBOX — used in forms (contact, request-demo)
========================================================= */

.eh-privacy-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin: 14px 0 16px;
  padding: 12px 14px;

  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;

  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.83rem;
  color: #4b5563;
  line-height: 1.5;

  transition: border-color .2s ease, background .2s ease;
}

.eh-privacy-check input[type="checkbox"]{
  flex-shrink: 0;

  width: 18px;
  height: 18px;
  margin: 1px 0 0;

  accent-color: #c9a84c;
  cursor: pointer;
}

.eh-privacy-check label{
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.eh-privacy-check a{
  color: #c9a84c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.eh-privacy-check a:hover{
  color: #b89535;
}

.eh-privacy-check.has-error{
  background: rgba(192, 57, 43, 0.06);
  border-color: rgba(192, 57, 43, 0.4);
  color: #c0392b;
}

.eh-privacy-check.has-error input[type="checkbox"]{
  outline: 2px solid #c0392b;
  outline-offset: 2px;
}


/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 768px){

  .eh-cookie-banner{
    padding: 18px 18px 16px;
  }

  .eh-cookie-banner-inner{
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .eh-cookie-actions{
    flex-direction: column-reverse;
    width: 100%;
  }

  .eh-cookie-actions .eh-cookie-btn{
    width: 100%;
    text-align: center;
  }

  .eh-cookie-btn-link{
    order: 3;
  }

  .eh-cookie-modal{
    max-height: 90vh;
  }

  .eh-cookie-modal-header,
  .eh-cookie-modal-body,
  .eh-cookie-modal-footer{
    padding-left: 20px;
    padding-right: 20px;
  }

  .eh-cookie-modal-footer{
    flex-direction: column-reverse;
  }

  .eh-cookie-modal-footer .eh-cookie-btn{
    width: 100%;
  }

}