/* Cookie Consent Banner - Coffee Marketing Digital
   Brand colours: #e09900 (orange), #4c4c4c (dark grey), #0a0a0a (near black)
   Font: Poppins (matches site) */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a1a;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.cookie-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
}

.cookie-consent__main {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

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

.cookie-consent__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #cccccc;
}

.cookie-consent__text a {
  color: #e09900;
  text-decoration: underline;
}

.cookie-consent__text a:hover {
  color: #edb059;
}

.cookie-consent__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-consent__btn {
  padding: 10px 24px;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.cookie-consent__btn--accept {
  background: #e09900;
  color: #ffffff;
  border-color: #e09900;
}

.cookie-consent__btn--accept:hover {
  background: #d35a00;
  border-color: #d35a00;
}

.cookie-consent__btn--reject {
  background: transparent;
  color: #ffffff;
  border-color: #666666;
}

.cookie-consent__btn--reject:hover {
  border-color: #ffffff;
}

.cookie-consent__btn--manage {
  background: transparent;
  color: #e09900;
  border: none;
  padding: 10px 12px;
  text-decoration: underline;
  font-weight: 400;
}

.cookie-consent__btn--manage:hover {
  color: #edb059;
}

/* Preferences panel */
.cookie-consent__preferences {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #333333;
}

.cookie-consent__preferences--visible {
  display: block;
}

.cookie-consent__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #2a2a2a;
}

.cookie-consent__category:last-child {
  border-bottom: none;
}

.cookie-consent__category-info {
  flex: 1;
}

.cookie-consent__category-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 2px;
}

.cookie-consent__category-desc {
  font-size: 12px;
  color: #999999;
  margin: 0;
}

/* Toggle switch */
.cookie-consent__toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 16px;
}

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

.cookie-consent__toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #444444;
  border-radius: 24px;
  transition: background 0.2s ease;
}

.cookie-consent__toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-slider {
  background: #e09900;
}

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

.cookie-consent__toggle input:disabled + .cookie-consent__toggle-slider {
  background: #e09900;
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-consent__save-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.cookie-consent__btn--save {
  background: #e09900;
  color: #ffffff;
  border-color: #e09900;
}

.cookie-consent__btn--save:hover {
  background: #d35a00;
  border-color: #d35a00;
}

/* Mobile */
@media (max-width: 768px) {
  .cookie-consent__inner {
    padding: 16px 20px;
  }

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

  .cookie-consent__actions {
    justify-content: center;
  }

  .cookie-consent__text {
    min-width: auto;
  }
}
