﻿#drs-cookie-consent[hidden],
#drs-cookie-settings[hidden] {
    display: none !important;
}

.drs-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: #e5edf8;
    border-top: 1px solid #c8d8f1;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.15);
}

.drs-cookie-consent__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.drs-cookie-consent__text {
    flex: 1;
}

    .drs-cookie-consent__text h2 {
        margin: 0 0 8px;
        font-size: 20px;
    }

    .drs-cookie-consent__text p {
        margin: 0 0 8px;
        line-height: 1.5;
    }

.drs-cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.drs-cookie-consent__button {
    border: 1px solid #ccc;
    padding: 9px 16px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight:bold;
    border-radius:4px;
}

    .drs-cookie-consent__button:hover {
        opacity: 0.85;
    }

.drs-cookie-consent__button--primary {
    background: #ff2732;
    border-color: #ff2732;
    color: #fff;
}

.drs-cookie-consent__button--secondary {
    background: #fff;
    color: #333;
}


/* Settings */

.drs-cookie-settings {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000000;
}

.drs-cookie-settings__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.55);
}

.drs-cookie-settings__dialog {
    position: relative;
    width: 600px;
    max-width: calc(100% - 30px);
    margin: 60px auto;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.drs-cookie-settings__header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .drs-cookie-settings__header h2 {
        margin: 0;
    }

.drs-cookie-settings__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.drs-cookie-settings__body {
    padding: 20px;
}

.drs-cookie-category {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

    .drs-cookie-category h3 {
        margin: 0 0 5px;
        font-size: 16px;
    }

    .drs-cookie-category p {
        margin: 0;
        color: #666;
    }


/* Switch */

.drs-cookie-switch {
    position: relative;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

    .drs-cookie-switch input {
        display: none;
    }

    .drs-cookie-switch span {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ccc;
        border-radius: 20px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .drs-cookie-switch span:before {
            content: "";
            position: absolute;
            width: 18px;
            height: 18px;
            left: 3px;
            top: 3px;
            background: white;
            border-radius: 50%;
            transition: transform 0.2s;
        }

    .drs-cookie-switch input:checked + span {
        background: #333;
    }

        .drs-cookie-switch input:checked + span:before {
            transform: translateX(24px);
        }

    .drs-cookie-switch input:disabled + span {
        cursor: not-allowed;
        opacity: 0.7;
    }


.drs-cookie-settings__footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}


@media (max-width: 767px) {

    .drs-cookie-consent__content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .drs-cookie-consent__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .drs-cookie-consent__button {
        width: 100%;
    }

    .drs-cookie-settings__dialog {
        margin: 20px auto;
    }
}
