:root {
    --sytech-popup-bg: #2c2c2c;
    --sytech-text-color: #ffffff;
    --sytech-button-border-radius: 4px;
    --sytech-popup-padding: 30px;
    --sytech-popup-width: 380px;
    --sytech-transition-duration: 0.3s;
    --sytech-accept-color: #333333; /* Default Accept Button Color */
    --sytech-reject-color: #555555; /* Default Reject Button Color */
    --sytech-background-color: #2c2c2c; /* Default Popup Background Color */
    --sytech-popup-text-color: #ffffff; /* Default Popup Text Color */
    --sytech-link-color: #1e90ff; /* Default Link Color */
    --sytech-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --sytech-font-size: 16px;
}

/* Cookie Consent Popup */
.sytech-cookie-consent-popup {
    position: fixed;
    bottom: 20px;
    width: var(--sytech-popup-width);
    background-color: var(--sytech-background-color);
    color: var(--sytech-popup-text-color);
    padding: var(--sytech-popup-padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--sytech-transition-duration) ease, transform var(--sytech-transition-duration) ease, visibility var(--sytech-transition-duration) ease;
    font-family: var(--sytech-font-family);
    font-size: var(--sytech-font-size);
}

.sytech-cookie-consent-popup.left {
    left: 20px;
    transform: translateX(-100%);
}

.sytech-cookie-consent-popup.right {
    right: 20px;
    transform: translateX(100%);
}

.sytech-cookie-consent-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sytech-cookie-consent-popup p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.sytech-cookie-consent-popup p a {
    color: var(--sytech-link-color);
    text-decoration: underline;
}

.sytech-cookie-buttons {
    display: flex;
    gap: 10px;
}

.sytech-cookie-button {
    flex: 1;
    padding: 12px 0;
    border: none;
    cursor: pointer;
    color: var(--sytech-text-color);
    border-radius: var(--sytech-button-border-radius);
    font-size: 16px;
    transition: background-color var(--sytech-transition-duration) ease, transform var(--sytech-transition-duration) ease;
}

.sytech-cookie-button.accept {
    background-color: var(--sytech-accept-color);
}

.sytech-cookie-button.reject {
    background-color: var(--sytech-reject-color);
}

.sytech-cookie-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Preferences Modal */
.sytech-cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.sytech-cookie-preferences-modal.show {
    display: flex;
}

.sytech-cookie-modal-content {
    background-color: var(--sytech-background-color);
    color: var(--sytech-popup-text-color);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    font-family: var(--sytech-font-family);
    font-size: var(--sytech-font-size);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sytech-cookie-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.sytech-cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sytech-cookie-label {
    flex: 1;
    margin-right: 10px;
    cursor: pointer;
}

.sytech-cookie-description {
    display: block;
    font-size: 12px;
    color: #cccccc;
    margin-top: 5px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--sytech-accept-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Modal Buttons */
.sytech-cookie-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.sytech-cookie-modal-buttons .sytech-cookie-button {
    flex: none;
    width: auto;
    padding: 10px 20px;
}

@media (max-width: 600px) {
    :root {
        --sytech-popup-padding: 20px;
    }
    .sytech-cookie-consent-popup {
        width: 90%;
        left: 5%;
        right: 5%;
    }

    .sytech-cookie-buttons {
        flex-direction: column;
    }

    .sytech-cookie-button {
        margin-bottom: 10px;
    }

    .sytech-cookie-preferences-modal .sytech-cookie-modal-content {
        padding: 20px;
    }

    .sytech-cookie-modal-content h2 {
        font-size: 18px;
    }
    .sytech-cookie-modal-buttons .sytech-cookie-button, .sytech-cookie-modal-buttons .sytech-cookie-button {
        flex: 1;
        padding: 10px;
    }
}
