/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
  right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
padding: 20px;
    z-index: 9999;
    border-top: 1px solid #e0e0e0;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

    .cookie-banner-content p {
        margin: 0 0 15px 0;
        color: #333;
        line-height: 1.5;
    }

        .cookie-banner-content p:last-of-type {
 margin-bottom: 20px;
    }

.cookie-decline-text {
    font-size: 0.9em;
color: #666;
  margin-top: 10px !important;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

    .cookie-banner-buttons .btn {
    padding: 8px 16px;
        border-radius: 4px;
  text-decoration: none;
 cursor: pointer;
        font-size: 14px;
        border: 1px solid;
        transition: all 0.2s ease;
 }

    .cookie-banner-buttons .btn-dark {
   background-color: #333;
    color: white;
border-color: #333;
    }

        .cookie-banner-buttons .btn-dark:hover {
       background-color: #555;
            border-color: #555;
    }

    .cookie-banner-buttons .btn-outline-secondary {
    background-color: transparent;
        color: #666;
     border-color: #ccc;
 }

        .cookie-banner-buttons .btn-outline-secondary:hover {
    background-color: #f8f9fa;
  border-color: #999;
  }

/* Cookie Settings Modal Styles */
.cookie-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.cookie-settings-modal {
    position: fixed;
top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    z-index: 10001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cookie-settings-content {
  display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    flex-shrink: 0;
}

    .cookie-settings-header h3 {
      margin: 0;
  color: #333;
    }

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
  color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-close:hover {
        color: #333;
    }

.cookie-settings-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
min-height: 0;
}

  .cookie-settings-body p {
   line-height: 1.6;
        color: #555;
   margin-bottom: 15px;
    }

.cookie-more-info {
    color: #007bff;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
}

    .cookie-more-info:hover {
 text-decoration: underline;
  }

.cookie-categories {
    margin-top: 25px;
}

.cookie-category {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.cookie-category-header {
 display: flex;
align-items: center;
 justify-content: space-between;
    padding: 15px;
background: #f8f9fa;
 cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
}

.category-icon {
    margin-right: 10px;
    transition: transform 0.2s ease;
    color: #666;
}

/* Category expansion - rotate icon when expanded */
.cookie-category.expanded .category-icon {
    transform: rotate(90deg);
}

.category-title {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.category-status {
    color: #666;
  font-size: 0.9em;
    font-style: italic;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .cookie-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
  right: 0;
  bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

    .toggle-slider:before {
position: absolute;
    content: "";
height: 18px;
 width: 18px;
        left: 3px;
        bottom: 3px;
   background-color: white;
        transition: 0.3s;
 border-radius: 50%;
    }

.cookie-toggle input:checked + .toggle-slider {
    background-color: #007bff;
}

    .cookie-toggle input:checked + .toggle-slider:before {
      transform: translateX(26px);
    }

.cookie-toggle input:disabled + .toggle-slider {
background-color: #999;
cursor: not-allowed;
}

/* Category content - hidden by default, shown when expanded */
.cookie-category-content {
    padding: 15px;
    background: white;
    display: none;
    border-top: 1px solid #e0e0e0;
}

/* Show content when category is expanded */
.cookie-category.expanded .cookie-category-content {
    display: block;
}

    .cookie-category-content p {
   margin: 0;
        color: #666;
  font-size: 0.9em;
        line-height: 1.5;
    }

.cookie-settings-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    display: flex;
  gap: 10px;
    justify-content: flex-end;
 flex-shrink: 0;
}

    .cookie-settings-footer .btn {
      padding: 10px 20px;
     border-radius: 4px;
      cursor: pointer;
        font-size: 14px;
        border: 1px solid;
        text-decoration: none;
        transition: all 0.2s ease;
}

    .cookie-settings-footer .btn-dark {
        background-color: #333;
    color: white;
        border-color: #333;
    }

 .cookie-settings-footer .btn-dark:hover {
  background-color: #555;
  border-color: #555;
     }

    .cookie-settings-footer .btn-outline-secondary {
   background-color: transparent;
      color: #666;
  border-color: #ccc;
}

   .cookie-settings-footer .btn-outline-secondary:hover {
       background-color: #f8f9fa;
       border-color: #999;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 15px;
    }

    .cookie-banner-buttons {
  flex-direction: column;
        align-items: stretch;
    }

 .cookie-banner-buttons .btn {
      margin-bottom: 5px;
     text-align: center;
   }

    .cookie-settings-modal {
      width: 95%;
  max-height: 95vh;
   top: 2.5vh;
        transform: translateX(-50%);
    }

    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
   padding: 15px;
    }

    .cookie-settings-footer {
     flex-direction: column;
    }

    .cookie-category-header {
        padding: 12px;
    }

    .cookie-category-content {
  padding: 12px;
    }
}

@media (max-width: 480px) {
    .cookie-settings-modal {
      width: 98%;
        top: 1vh;
        left: 1%;
        transform: none;
        max-height: 98vh;
    }

.cookie-settings-content {
        max-height: 98vh;
 }

    .cookie-banner-content p {
        font-size: 0.9em;
  }

 .cookie-settings-header h3 {
        font-size: 1.2em;
    }

    .cookie-settings-header,
.cookie-settings-body,
    .cookie-settings-footer {
padding: 12px;
    }
}

/* Additional height constraints for very small screens */
@media (max-height: 600px) {
    .cookie-settings-modal {
        max-height: 95vh;
     top: 2.5vh;
transform: translateX(-50%);
    }

    .cookie-settings-content {
        max-height: 95vh;
    }

    .cookie-settings-header,
.cookie-settings-body,
    .cookie-settings-footer {
        padding: 10px;
    }
}

@media (max-height: 500px) {
 .cookie-settings-modal {
      max-height: 98vh;
    top: 1vh;
  transform: translateX(-50%);
  }

    .cookie-settings-content {
        max-height: 98vh;
    }

    .cookie-settings-header,
 .cookie-settings-footer {
   padding: 8px 15px;
 }

    .cookie-settings-body {
      padding: 10px 15px;
    }
}
