/**
    DEFAULT COOKIE BYTE STYLING

    Here we define basic styles for e.g. buttons or checkboxes. You can
    reuse each or replace them with your own to match your site's design.
 */

.ddm {
    --ddm-color-primary: #000;
    --ddm-color-secondary: #fff;
    --ddm-color-disabled: #a3a3a3;
    --ddm-color-background: #fff;
    --ddm-color-text: #000;
}

.ddm * {
        box-sizing: border-box;
    }

.ddm-button {
    -webkit-appearance: button;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.375rem 1.25rem;
    font-weight: bold;
    text-decoration: none;
    transition: all ease-in-out 300ms;

    background-color: var(--ddm-color-primary);
    border: 2px solid var(--ddm-color-primary);
    color: var(--ddm-color-secondary);
}

.ddm-button:hover {
        background-color: var(--ddm-color-secondary);
        color: var(--ddm-color-primary);
    }

.ddm-button:focus {
        outline: 2px solid transparent;
        outline-offset: 2px;
    }

.ddm-button.inverted {
    color: var(--ddm-color-primary);
    background-color: var(--ddm-color-secondary);
    border: 2px solid var(--ddm-color-secondary);
}

.ddm-button.inverted:hover {
        color: var(--ddm-color-secondary);
        background-color: var(--ddm-color-primary);
        border: 2px solid var(--ddm-color-primary);
    }

/* Checkboxes */

.ddmcm .checkbox input[type='checkbox'] {
    display: none;
}

.ddmcm .checkbox input[type='checkbox'] + label {
        position: relative;
        display: block;
        padding-left: 2rem;

        cursor: pointer;
        -webkit-user-select: none;
           -moz-user-select: none;
            -ms-user-select: none;
                user-select: none;
    }

.ddmcm .checkbox input[type='checkbox']:disabled + label {
        color: var(--ddm-color-disabled);
    }

.ddmcm .checkbox input[type='checkbox'] + label::before {
        display: block;
        width: 1.25rem;
        height: 1.25rem;
        position: absolute;
        top: 0.15rem;
        left: 0;

        border: 2px solid var(--ddm-color-primary);
        content: '';
        transition: all .12s, border-color .08s;
    }

.ddmcm .checkbox input[type='checkbox']:disabled + label::before {
        border-color: var(--ddm-color-disabled);
    }

.ddmcm .checkbox input[type='checkbox']:checked + label::before {
        width: 0.75rem;
        top: 0.5rem;
        transform: rotate(45deg) translate(-50%, -50%);

        background-color: transparent;
        border-color: transparent;
        border-right-color: var(--ddm-color-primary);
        border-bottom-color: var(--ddm-color-primary);
        border-right-width: 2px;
        border-bottom-width: 2px;
    }

.ddmcm .checkbox input[type='checkbox']:checked:disabled + label::before {
        border-right-color: var(--ddm-color-disabled);
        border-bottom-color: var(--ddm-color-disabled);
    }

/* Adds some basic styling to the modal's content itself. */

.ddmcm-content h2:not(:last-child), .ddmcm-content p:not(:last-child), .ddmcc-content h2:not(:last-child), .ddmcc-content p:not(:last-child) {
            padding-bottom: 1rem;
        }

.ddmcm-content h2, .ddmcc-content h2 {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

@media screen and (min-width: 64rem) {

.ddmcm-content h2, .ddmcc-content h2 {
            font-size: 1.25rem;
            line-height: 1.75rem
    }
        }

/** Let's play safe: H2 is sometimes used for enormously huge texts,
     * so we define our own size, everything else is up to the other styles. */

.ddmcm-content .ddmcm-title, .ddmcc-content .ddmcm-title {
        position: sticky;
        top: 0;
        padding: 1rem 0;
        background-color: var(--ddm-color-background);
    }

/*
    COOKIE MODAL STYLING

    This is our pre-defined cookie modal styling.

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!! Warning to the creative people out there                             !!!
    !!! ````````````````````````````````````````                             !!!
    !!! In this stylesheet are some pretty useful categories, which deletion !!!
    !!! could make some of the settings in the control panel, well, useless. !!!
    !!! Drive safe and most importantly: be careful.                         !!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 */

/** This is the background layer, which fills the whole screen. */

.ddmcm {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity ease-in-out 300ms;
    pointer-events: none;
    z-index: 100;
}

/** These categories add the CP option to select a visible background layer. */

.ddmcm.back-light {
        background: rgba(64, 64, 64, .3);
        -webkit-backdrop-filter: saturate(180%) blur(3px);
                backdrop-filter: saturate(180%) blur(3px);
        pointer-events: auto;
    }

.ddmcm.back-heavy {
        background: rgba(64, 64, 64, .6);
        -webkit-backdrop-filter: saturate(180%) blur(3px);
                backdrop-filter: saturate(180%) blur(3px);
        pointer-events: auto;
    }

/** The relative wrapper, prepping the modal to be placed somewhere. */

.ddmcm-wrapper {
    position: relative;
    height: 100vh;
}

/** Controls the placement of the modal itself. */

.ddmcm-box {
    /* Initially, the modal is centered on the screen */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 28rem;
    max-height: 90vh;
    transform: translate(-50%, -50%);
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: auto;

    background-color: var(--ddm-color-background);
    color: var(--ddm-color-text);
    box-shadow: 0 0px 15px 3px rgba(44, 62, 80, 0.1), 0 0 6px 0 rgba(44, 62, 80, 0.1);
}

/* Make the modal a little wider on desktops */

@media screen and (min-width: 64rem) {

.ddmcm-box {
        max-width: 34rem
}
    }

/* Position the modal as defined by the categories above tablets */

@media screen and (min-width: 48rem) {
        .ddmcm-box.top {
            top: 2rem;
            bottom: auto;
        }

        .ddmcm-box.left {
            left: 2rem;
            right: auto;
        }

        .ddmcm-box.right {
            right: 2rem;
            left: auto;
        }

        .ddmcm-box.bottom {
            bottom: 2rem;
            top: auto;
        }

        .ddmcm-box:not(.center) {
            transform: none;
        }
            .ddmcm-box.center.left, .ddmcm-box.center.right {
                transform: translateY(-50%);
            }

            .ddmcm-box.center.top, .ddmcm-box.center.bottom {
                transform: translateX(-50%);
            }
    }

.ddmcm-content {
    margin: 0 1.5rem 1.5rem 1.5rem;
}

.ddmcm-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media screen and (min-width: 64rem) {

.ddmcm-buttons {
        flex-direction: row
}
    }

/** Accordion styling **/

.ddmcm-accordion-item .ddmcm-accordion-toggle {
        cursor: default;
        display: flex;
        align-items: center;
        -webkit-user-select: none;
           -moz-user-select: none;
            -ms-user-select: none;
                user-select: none;
    }

.ddmcm-accordion-item .ddmcm-accordion-arrow {
        display: flex;
        width: 1rem;
        height: 1rem;
        margin-left: 0.3rem;
        transition: transform 150ms ease-in-out;
        /* Thanks to bootstrap icons for this cool chevron icon (name: chevron-down) */
        background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22currentColor%22%20viewBox%3D%220%200%2016%2016%22%3E%0A%20%20%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M1.646%204.646a.5.5%200%200%201%20.708%200L8%2010.293l5.646-5.647a.5.5%200%200%201%20.708.708l-6%206a.5.5%200%200%201-.708%200l-6-6a.5.5%200%200%201%200-.708z%22%2F%3E%0A%3C%2Fsvg%3E") no-repeat;
    }

.ddmcm-accordion-item.has-content .ddmcm-accordion-toggle {
        cursor: pointer;
    }

.ddmcm-accordion-toggle input[type="checkbox"] {
    display: none;
}

.ddmcm-accordion-toggle input[type="checkbox"]:checked + .ddmcm-accordion-arrow {
        transform: rotate(180deg);
    }

.ddmcm-accordion-content {
    transition: 500ms all cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 0;
    font-size: 0.9em;
}

/* Add some spacing on top and bottom of the content wrapper */

.ddmcm-accordion-content:before, .ddmcm-accordion-content:after {
        content: '';
        height: 10px;
        display: block;
    }

/* Basic table styling, let's keep it compact and simple */

.ddmcm-accordion-content table td {
        padding: 0.25rem 1rem 0.25rem 0;
        border: none;
        vertical-align: top;
    }

.ddmcm-accordion-content table td h2, .ddmcm-accordion-content table td p {
            margin-bottom: 0;
        }

.ddmcm-accordion-content table td:last-child {
            padding-right: 0;
        }

/** Now it's time to align the checkboxes. */

.ddmcm-categories {
    margin-bottom: 1.5rem;
}

.ddmcm-categories .checkbox {
        display: flex;
        justify-content: space-between;
    }

@media screen and (min-width: 48rem) {

.ddmcm-categories .checkbox {
            display: block
    }
        }

.ddmcm-categories .ddmcm-category {
        display: flex;
    }

.ddmcm-categories .ddmcm-category:not(:last-child) {
            margin-bottom: 0.5rem;
        }

/*
    COOKIE COVER STYLING
    This is our pre-defined cookie cover styling.
 */

.ddmcc {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity ease-in-out 300ms;
    z-index: 10;
    max-width: 100%;
}

.ddmcc-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 20rem;
    background-color: rgba(0, 0, 0, .5);
}

.ddmcc-content {
    padding: 1.5rem;
}

.ddmcc-content h2, .ddmcc-content p {
        text-align: center;
        color: #fff;
    }

.ddmcc-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

[data-html-snippet] {
    display: none;
}

