/* ----------------------------------------------------------------
  Cookie Notification
-----------------------------------------------------------------*/
body.no-scroll {
    overflow: hidden;
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.cookie-consent {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 80%;
    max-width: 700px;
    display: none;
}

.cookie-content {
    position: relative;
    text-align: center;
}

.cookie-content h3 {
    margin-top: 50px;
    margin-left: 30px;
    margin-right: 30px;
}

.cookie-content p {
    padding-left: 40px;
    padding-right: 40px;
    text-align: left;
    margin: 10px 0;
}

.cookie-content button {
    background-color: var(--color-blue);
    color: #fff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 3px;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 25px;
    padding-right: 25px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    position: relative;
    z-index: 1;
    width: 210px;
}

.block-shadow {
    position: absolute;
    background-color: #f9f9f9;
    height: 120px;
    width: 100%;
    z-index: -1;
    margin-top: 30px;
}

.cookie-content button:hover {
    background-color: var(--theme-color2);
}

@media only screen and (min-width: 375px) and (max-width: 768px){
    .cookie-consent {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
    }

    .cookie-content h3 {
        font-size: 16px;
        margin-top: 30px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .cookie-content p {
        font-size: 14px;
        padding-left: 20px;
        padding-right: 10px;
        text-align: left;
        margin: 10px 0;
    }

    .cookie-content button {
        border-radius: 3px;
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 25px;
        padding-right: 25px;
        margin-top: 30px;
        margin-bottom: 10px;
        margin-left: 0px;
        margin-right: 0px;
        font-size: 10px;
    }

    .block-shadow {
        height: 80px;
        width: 100%;
        margin-top: 10px;
    }
}

@media only screen and (max-width: 575px) {
    .cookie-buttons button{
        padding: 10px !important;
    }
}
@media only screen and (max-width: 375px) {
    .cookie-consent {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
    }

    .cookie-content h3 {
        margin-top: 20px;
        margin-left: 30px;
        margin-right: 30px;
        font-size: 14px;
    }
    
    .cookie-content p {
        padding-left: 20px;
        padding-right: 20px;
        text-align: left;
        margin: 10px 0;
        font-size: 12px;
    }

    .cookie-content button {
        border-radius: 3px;
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 25px;
        padding-right: 25px;
        margin-top: 30px;
        margin-bottom: 10px;
        margin-left: 0px;
        margin-right: 0px;
    }

    .block-shadow {
        height: 80px;
        width: 100%;
        margin-top: 10px;
    }
}


.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Расстояние между кнопками */
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
}

.cookie-buttons button {
    border: none;
    padding: 18px 0px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.cookie-buttons .btn-primary {
    background-color: var(--color-blue);
    color: white;
}
.cookie-buttons .btn-primary:hover {
     background-color: var(--color-background);
     color: var(--color-blue);
}


.cookie-buttons .btn-secondary {
    background-color: #e9e9e9;
    color: #333;
}
.cookie-buttons .btn-secondary:hover {
    background-color: #dcdcdc;
}

/* Стили для второго окна (настроек) */
.cookie-settings {
    max-width: 800px; /* Делаем второе окно шире */
    padding: 0;
    overflow: hidden;
}

.settings-container {
    display: flex;
    width: 100%;
}

.settings-nav {
    width: 35%;
    background-color: #f7f7f7;
    border-right: 1px solid #e0e0e0;
}

.settings-nav .nav-item {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 14px;
}

.settings-nav .nav-item:hover {
    background-color: #efefef;
}

.settings-nav .nav-item.active {
    background-color: #fff;
    font-weight: bold;
    border-right: 2px solid var(--color-blue);
}

.settings-content {
    width: 65%;
    padding: 30px;
}

.content-tab {
    display: none; 
}

.content-tab.active {
    display: block; 
}

.settings-content h4 {
    margin-top: 0;
    font-size: 18px;
}

.settings-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.cookie-toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

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

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

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

input:checked + .slider {
  background-color: var(--color-blue);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--color-blue);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

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

.switch.always-active .slider {
    background-color: var(--color-blue);
    cursor: not-allowed;
}

.settings-buttons {
    margin-top: 30px;
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.settings-buttons .btn-primary {
     background-color: var(--color-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}
.settings-buttons .btn-primary:hover {
    background-color: var(--color-background);
    color: var(--color-blue);
}