/* bixci-cookie-public.css */

.bixci-hidden {
    display: none !important;
}

/* Banner Styles */
.bixci-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--ast-global-color-5, #ffffff);
    color: var(--ast-global-color-3, #333333);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: inherit; /* Heredar tipografía del tema */
}

@media (min-width: 768px) {
    .bixci-cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 5%;
    }
}

.bixci-cookie-banner-content {
    flex: 1;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .bixci-cookie-banner-content {
        margin-bottom: 0;
        margin-right: 20px;
    }
}

.bixci-cookie-banner-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.bixci-cookie-banner-content a {
    color: var(--ast-global-color-0, #0073a8);
    text-decoration: underline;
    margin-left: 5px;
}

.bixci-cookie-banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .bixci-cookie-banner-buttons {
        flex-direction: row;
        width: auto;
    }
}

/* Buttons */
.bixci-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px; /* O variable global del tema */
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: opacity 0.3s ease;
    font-family: inherit;
}

.bixci-btn:hover {
    opacity: 0.85;
}

.bixci-btn-primary {
    background-color: var(--ast-global-color-0, #000000);
    color: #ffffff;
}

.bixci-btn-secondary {
    background-color: var(--ast-global-color-4, #e5e5e5);
    color: var(--ast-global-color-3, #333333);
}

.bixci-btn-link {
    background: transparent;
    color: var(--ast-global-color-3, #333333);
    text-decoration: underline;
    padding: 10px 0;
}

/* Modal Styles */
.bixci-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bixci-cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.bixci-cookie-modal-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-family: inherit;
}

.bixci-cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eeeeee;
}

.bixci-cookie-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--ast-global-color-3, #333333);
}

.bixci-btn-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.bixci-cookie-modal-body {
    padding: 20px;
}

.bixci-cookie-modal-body p {
    font-size: 14px;
    color: #666;
    margin-top: 0;
    margin-bottom: 20px;
}

.bixci-cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.bixci-cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.bixci-cookie-category-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--ast-global-color-3, #333333);
}

.bixci-cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #eeeeee;
    display: flex;
    justify-content: flex-end;
}

/* Toggle Switch Styles */
.bixci-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.bixci-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.bixci-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.bixci-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .bixci-slider {
  background-color: var(--ast-global-color-0, #000000);
}

input:focus + .bixci-slider {
  box-shadow: 0 0 1px var(--ast-global-color-0, #000000);
}

input:checked + .bixci-slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.bixci-slider.round {
  border-radius: 24px;
}

.bixci-slider.round:before {
  border-radius: 50%;
}

input:disabled + .bixci-slider {
    background-color: var(--ast-global-color-0, #000000);
    opacity: 0.6;
    cursor: not-allowed;
}
