/**
 * Cookie Consent Banner Styles
 * For use with static HTML sites
 */

/* Banner Container */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #ffffff;
  border-top: 2px solid #C7982C;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  display: none;
}

.cookie-consent-banner.show {
  display: block;
}

/* Simple Banner View */
.cookie-consent-simple {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cookie-consent-text {
  flex: 1;
  min-width: 0;
  color: #374151;
  line-height: 1.4;
}

.cookie-consent-text p {
  font-size: 0.75rem;
  margin: 0;
}

.cookie-consent-text a {
  color: #C7982C;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.75rem;
}

.cookie-consent-text a:hover {
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.375rem;
  flex-shrink: 0;
}

.cookie-consent-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-consent-btn-reject {
  background-color: #E5E7EB;
  color: #111827;
}

.cookie-consent-btn-reject:hover {
  background-color: #D1D5DB;
}

.cookie-consent-btn-settings {
  background-color: #ffffff;
  color: #C7982C;
  border: 1px solid #C7982C;
}

.cookie-consent-btn-settings:hover {
  background-color: #F9FAFB;
}

.cookie-consent-btn-accept {
  background-color: #C7982C;
  color: #ffffff;
}

.cookie-consent-btn-accept:hover {
  background-color: #B88825;
}

/* Detailed Modal View */
.cookie-consent-modal {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 10000;
  background-color: #ffffff;
  border-radius: 0.5rem;
  border: 2px solid #C7982C;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-width: 28rem;
  max-height: 80vh;
  overflow-y: auto;
  display: none;
}

.cookie-consent-modal.show {
  display: block;
}

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

.cookie-consent-modal-title {
  font-size: 1rem;
  font-weight: bold;
  color: #111827;
  margin: 0;
}

.cookie-consent-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #6B7280;
  cursor: pointer;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
}

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

.cookie-consent-modal-content {
  padding: 0.75rem;
}

.cookie-consent-category {
  border: 1px solid #E5E7EB;
  border-radius: 0.25rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.cookie-consent-category-essential {
  background-color: #F9FAFB;
}

.cookie-consent-category-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem;
}

.cookie-consent-category-info {
  flex: 1;
  min-width: 0;
}

.cookie-consent-category-title {
  font-size: 0.75rem;
  font-weight: bold;
  color: #111827;
  margin: 0 0 0.125rem 0;
}

.cookie-consent-category-description {
  font-size: 0.75rem;
  color: #4B5563;
  margin: 0 0 0.25rem 0;
}

.cookie-consent-category-services {
  font-size: 0.75rem;
  color: #6B7280;
  margin: 0;
  line-height: 1.4;
}

.cookie-consent-required-badge {
  padding: 0.125rem 0.5rem;
  background-color: #D1D5DB;
  color: #4B5563;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.cookie-consent-modal-footer {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #E5E7EB;
}

.cookie-consent-modal-footer .cookie-consent-btn {
  flex: 1;
  padding: 0.375rem 0.75rem;
}

.cookie-consent-settings-link {
  text-align: center;
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: 0.5rem;
}

.cookie-consent-settings-link a {
  color: #C7982C;
  text-decoration: none;
  font-size: 0.75rem;
}

.cookie-consent-settings-link a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 640px) {
  .cookie-consent-simple {
    padding: 0.5rem 1.5rem;
  }

  .cookie-consent-text {
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {
  .cookie-consent-modal {
    right: 1rem;
    left: auto;
  }
}

@media (max-width: 640px) {
  .cookie-consent-simple {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

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

  .cookie-consent-btn {
    width: 100%;
  }
}

/* Hidden state */
.hidden {
  display: none !important;
}
