/**
 * @license   Proprietary
 * @copyright 2014-2026 Atanasz
 * @author    Atanasz
 */

.atanasz-cookies-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
}

body.atanasz-cookies-modal-open {
    overflow: hidden;
}

.atanasz-cookies-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    width: 90%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 30px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    opacity: var(--atanasz-opacity, 1);
}

/* Position variants only affect where the modal sits vertically on larger screens */
.atanasz-cookies-position-top {
    top: 15%;
    transform: translate(-50%, 0);
}

.atanasz-cookies-position-bottom {
    top: auto;
    bottom: 5%;
    transform: translate(-50%, 0);
}

.atanasz-cookies-inner {
    text-align: center;
}

.atanasz-cookies-text {
    margin-bottom: 20px;
}

.atanasz-cookies-text a,
.atanasz-cookies-more-link {
    text-decoration: underline;
}

.atanasz-cookies-text a:hover,
.atanasz-cookies-more-link:hover {
    text-decoration: none;
}

.atanasz-cookies-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.atanasz-cookies-btn {
    display: block;
    width: 100%;
    border: none;
    border-radius: 3px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}

.atanasz-cookies-divider {
    border: none;
    border-top: 1px solid;
    opacity: 0.3;
    margin: 20px 0;
}

.atanasz-cookies-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
}

.atanasz-cookies-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

.atanasz-cookies-cat input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #F1C600;
}

.atanasz-cookies-cat-necessary input[type="checkbox"] {
    cursor: default;
}

@media (max-width: 767px) {
    .atanasz-cookies-banner {
        width: 94%;
        padding: 20px 15px;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .atanasz-cookies-categories {
        gap: 12px;
        justify-content: flex-start;
        text-align: left;
    }
}

/* Footer "change cookie settings" link */
.atanasz-cookies-footer-link-wrapper {
    text-align: center;
    padding: 5px 0;
}

.atanasz-cookies-footer-link {
    cursor: pointer;
    text-decoration: underline;
    font-size: 12px;
}

.atanasz-cookies-footer-link:hover {
    text-decoration: none;
}
