/* Consent dialog formats */

.dxw3-consent {
    font-family: sans-serif;
    font-size: 16px;
}

.dxw3-consent p {
    font-family: sans-serif;
    font-size: 16px;
    margin: 0 0 15px;
    line-height: 1.4;
}

.dxw3-consent .cookie-settings-checkboxes label {
    width: 100%;
}

.dxw3-consent .cookie-settings-container h2 {
    font-family: sans-serif;
    font-size: 20px;
    margin-bottom: 16px;
}

.dxw3-consent .dxw3-btn {
    padding: 2px 0;
    margin: 5px;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    width: 200px;
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.dxw3-consent #consent-notice {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px 10px 5px;
    border: 1px solid lightgrey;
    border-radius: 8px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    width: 680px;
    max-width: 95%;
    text-align: center;
    display: none;
    z-index: 10000;
}

.dxw3-consent .policies {
    display: block;
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

.dxw3-consent #cookie-settings-modal a {
    color: darkgrey;
    text-decoration: underline;
    margin-right: 15px;
    font-size: 14px;
}

.dxw3-consent #cookie-settings-modal a:hover {
    text-decoration: none;
}

.dxw3-consent .dxw3-consent-buttons {
    margin-top: 10px;
}

.dxw3-consent .accept-all { background: darkgreen; color: white; }
.dxw3-consent .reject-all { background: darkred; color: white; }
.dxw3-consent .open-cookie-settings { background: lightgrey; color: black; }
.dxw3-consent .save-cookie-settings { background: lightgrey; color: black; }

.dxw3-consent #cookie-settings-modal {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: flex;
    flex-wrap: wrap;
    position: fixed;
    bottom: 250px;
    border: 1px solid lightgrey;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    left: 50%;
    transform: translate(-50%);
    z-index: 100000;
    background: white;
    width: 360px;
    max-width: 95%;
}
.dxw3-consent #cookie-settings-modal input[type="checkbox"]:checked {
    background-color: #0073aa;
    border-color: #005a87;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dxw3-consent #cookie-settings-modal input[type="checkbox"]:checked::before {
    content: none !important;
}

.dxw3-consent #cookie-settings-modal button {
    margin: 10px auto 0;
}

.dxw3-consent .cookie-settings-container {
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px 2px;
}

.dxw3-consent .close-it {
    width: 100%;
    text-align: right;
    margin-bottom: -20px;
}

.dxw3-consent #close-cookie-settings .cross {
    padding: 8px 20px 20px;
    cursor: pointer;
    font-size: 30px;
    z-index: 1;
    position: relative;
}

.dxw3-consent .cookie-settings-checkboxes {
    display: flex;
    flex-wrap: wrap;
    margin-left: 20px;
}

/* Switch container */
.dxw3-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 12px;
}

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

.dxw3-slider {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 34px;
    transition: background 0.3s ease-in-out;
}

.dxw3-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

.dxw3-switch input:checked + .dxw3-slider {
    background-color: #0073aa;
}

.dxw3-switch input:checked + .dxw3-slider:before {
    transform: translateX(20px);
}

.dxw3-switch input:disabled + .dxw3-slider {
    background-color: #aaa;
}

/* Reopen button */
.dxw3-consent button.cookie-button {
    position: fixed;
    bottom: 0;
    left: 0;
    cursor: pointer;
    z-index: 10000;
    animation: bounce 5s infinite ease-in-out;
    width: initial;
    padding: 0;
    margin: 0 4px;
    background: transparent;
    border: 0;
}

.dxw3-consent button.cookie-button:hover {
    background-color: transparent;
    animation: pulse 2s infinite ease-in-out;
}

.dxw3-consent button.cookie-button:focus {
    outline: unset;
}

.dxw3-consent #consent-notice.active ~ .cookie-button,
.dxw3-consent #cookie-settings-modal.active ~ .cookie-button {
    display: none;
}

.dxw3-consent #cookie-settings-modal input[type="checkbox"] {
    transform: scale(1.5);
    cursor: pointer;
    margin-right: 10px;
}

.dxw3-consent #cookie-settings-modal input[type="checkbox"]:checked::before {
    content: "✔";
    font-size: 18px;
    color: white;
    position: absolute;
    left: 4px;
    top: 0;
}

.dxw3-consent #cookie-settings-modal input[type="checkbox"]:checked {
    background-color: #0073aa;
}

.dxw3-consent #cookie-settings-modal input[type="checkbox"]:focus {
    outline: unset;
}

.design-by {
    width: 100%;
    text-align: right;
    font-size: 6px;
    margin-top: 18px;
}

.consent-icon-none {
    display: none;
}

.dxw3-footer-bar {
    background: black;
    text-align: center;
    padding: 4px 0;
    font-size: 12px;
}

.dxw3-footer-bar a {
    color: #C0C0C0;
    text-decoration: none;
    font-weight: bold;
}

.dxw3-footer-bar a:hover {
    color: white;
}

.dxw3-footer-bar a:focus {
    outline: unset;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .dxw3-consent #consent-notice {
        width: 90%;
    }
}