/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  padding: 20px;
  z-index: 9999;
  border-top: 3px solid #1D5F6B;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.cookie-text h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #1f2937;
  font-weight: 600;
}

.cookie-text p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.cookie-link {
  color: #1D5F6B;
  text-decoration: underline;
  font-size: 14px;
}

.cookie-link:hover {
  color: #3EC1C1;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #1D5F6B;
  color: white;
}

.cookie-btn-accept:hover {
  background: #164a54;
}

.cookie-btn-reject {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.cookie-btn-reject:hover {
  background: #e5e7eb;
}

.cookie-btn-manage {
  background: transparent;
  color: #1D5F6B;
  border: 1px solid #1D5F6B;
}

.cookie-btn-manage:hover {
  background: #f0fdfa;
}

/* Minimized Cookie Icon */
.cookie-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 54px;
  height: 54px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 4px 15px rgba(139, 90, 43, 0.3),
    0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #e8dcc8;
}

.cookie-icon:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow:
    0 6px 20px rgba(139, 90, 43, 0.4),
    0 3px 8px rgba(0,0,0,0.15);
}

.cookie-icon svg {
  filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.2));
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.cookie-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cookie-modal-content h3 {
  margin: 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.cookie-modal-close:hover {
  color: #374151;
}

.cookie-option {
  padding: 15px 0;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-option:last-of-type {
  border-bottom: none;
}

.cookie-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cookie-option label strong {
  color: #1f2937;
  font-size: 15px;
}

.cookie-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1D5F6B;
  cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-option p {
  margin: 8px 0 0 28px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.cookie-modal-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 15px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

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

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    min-width: 100px;
  }

  .cookie-modal-content {
    padding: 20px;
  }

  .cookie-modal-buttons {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .cookie-icon {
    width: 45px;
    height: 45px;
    bottom: 15px;
    left: 15px;
  }

  .cookie-icon svg {
    width: 24px;
    height: 24px;
  }
}
