/* ============================================================
   OPTIMAL ACCOUNTING — cookies.css
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  border-top: 3px solid var(--primary);
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  padding: 1.5rem 0;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}

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

.cookie-banner-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .35rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cookie-text p {
  font-size: .83rem;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: #1C4A42;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .65rem 1.4rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #1C4A42;
  color: #fff;
  border-color: #1C4A42;
}
.cookie-btn-accept:hover {
  background: #143830;
  border-color: #143830;
}

.cookie-btn-reject {
  background: transparent;
  color: #6B7280;
  border-color: #D1E0DC;
}
.cookie-btn-reject:hover {
  border-color: #6B7280;
  color: #374151;
}

.cookie-btn-settings {
  background: transparent;
  color: #1C4A42;
  border-color: #1C4A42;
}
.cookie-btn-settings:hover {
  background: #1C4A42;
  color: #fff;
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: scale(.95);
  transition: transform .3s ease;
}
.cookie-modal-overlay.visible .cookie-modal {
  transform: scale(1);
}

.cookie-modal h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #111827;
  margin-bottom: .5rem;
}
.cookie-modal > p {
  font-size: .88rem;
  color: #6B7280;
  margin-bottom: 1.5rem;
}

.cookie-category {
  border: 1px solid #E8EDEC;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .4rem;
}
.cookie-category-header h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.cookie-category p {
  font-size: .82rem;
  color: #6B7280;
  margin: 0;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #D1E0DC;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s ease;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: #1C4A42; }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle input:disabled + .toggle-slider { opacity: .6; cursor: not-allowed; }

.cookie-modal-footer {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    justify-content: stretch;
    flex-direction: column;
  }
  .cookie-btn { width: 100%; text-align: center; }
  .cookie-modal-footer { flex-direction: column; }
  .cookie-modal-footer .cookie-btn { width: 100%; text-align: center; }
}
