/**
 * Cookie Consent Styles
 */

:root {
    --cn-main-color: #008000;
    --cn-hover-color: #006700;
    --cn-check-color: #008000;
    --cn-bg: #fff;
    --cn-width: min(90%, 900px);
    --cn-shadow: 0 0 90px 40px rgba(0, 0, 0, 0.1), 0 0 60px 5px rgba(0, 0, 0, 0.3);
    --cn-accesibility-color: lightBlue;
    --cn-btn-radius: 0px;
    --cn-image: url('');
}

.cookie-consent-popup-backdrop {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(5px);
    z-index: 9000;
}

.cookie-consent-popup {
    font-family: "Open Sans", sans-serif;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--cn-width);
    background-color: var(--cn-bg);
    padding: 0;
    box-shadow: var(--cn-shadow);
    border-radius: 10px;
    overflow: hidden;
    z-index: 10005;
    display: none; /* Changed from none */
    grid-template-columns: auto; /* 70% content, 30% image */
    grid-template-rows: 1fr;
    grid-column-gap: 0;
    grid-row-gap: 0;
    z-index: 10000;
    font-size: 1rem;
    &.has-img-holder {
        grid-template-columns: 70% 30%;
    }
}

.cookie-consent-popup .agv_informatie_consent {
    font-size: 14px;

    h3 {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    h4 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 10px;
    }
}

.cookie-consent-popup .label-holder {
    width: 100%;
    max-width: 60px;
    float: right;
}

.cookie-consent-popup .label-holder img {
    width: 100%;
    height: auto;
}

.cookie-consent-popup .img-holder {
    background: var(--cn-image) no-repeat;
    background-size: cover;
    background-position: center;
}

/* Styling for consent paragraph 2 */
.consent-paragraph-2 {
    font-size: 0.9em;
    margin-top: 10px;
}

.consent-paragraph-2 a {
    color: var(--cn-main-color);
    text-decoration: underline;
}

.consent-paragraph-2 a:hover {
    color: var(--cn-hover-color);
}

/* Styling for information tab content */
.agv_informatie_consent h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.agv_informatie_consent ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.agv_informatie_consent li {
    margin-bottom: 10px;
}

.cookie-consent-change {
    position: fixed;
    bottom: -20px;
    left: 20px;
    height: 50px;
    width: 50px;
    border-radius: 50px;
    background: var(--cn-main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    cursor: pointer;
    z-index: 10000001;
}

.cookie-consent-change:hover {
    bottom: -2px;
    background: var(--cn-hover-color);
}

.cookie-consent-change svg {
    height: 38px;
    width: 38px;
}

.cookie-consent-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 600px);
    background-color: #fff;
    padding: 0;
    box-shadow: 0 0 90px 40px rgba(0, 0, 0, 0.1), 0 0 60px 5px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    max-height: 90vh;
}

.cookie-consent-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 10px;
}

.cookie-consent-content {
    max-width: 600px;
    margin: 0 auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cookie-consent-content p:not(.bmargin) {
    margin-bottom: 0;
}

.cookie-consent-content .panel.keepmargin p {
    margin-bottom: 8px;
}

.cookie-consent-options {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.cookie-consent-option {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.cookie-consent-buttons {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: flex-end;
    margin: 10px 20px 10px;
}

.cookie-consent-btn {
    background-color: var(--cn-main-color);
    color: #fff;
    border: 0;
    border-bottom: 3px solid var(--cn-hover-color);
    padding: 8px 14px;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    transition: all .25s ease;
    font-size: .8rem;
    line-height: 1em;
    border-radius: var(--cn-btn-radius);
}

.cookie-consent-btn:hover {
    background: var(--cn-hover-color);
}

#cookie-consent-edit.cookie-consent-btn {
    background: #fff;
    color: var(--cn-main-color);
    border: 3px solid var(--cn-main-color);
}

#cookie-consent-edit.cookie-consent-btn:hover {
    background: var(--cn-main-color);
    color: #fff;
}

.cookie-consent-popup * {
    transition: all .25s ease;
}

.cookie-consent-popup *:not(.panel):focus,
.cookie-consent-popup input:focus + label {
    outline: 0;
    box-shadow: inset 0 0 0 5px var(--cn-accesibility-color);
    transition: all .25s ease;
}

.cookie-consent-popup .tabs {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    border-radius: 0;
    width: 100%;
}

.cookie-consent-popup .radiotab {
    position: absolute;
    opacity: 0;
}

.cookie-consent-popup .label {
    width: calc(100% / 3);
    padding: 6px 0;
    background: #e5e5e5;
    cursor: pointer;
    font-weight: 700;
    font-size: .9rem;
    color: #7f7f7f;
    transition: background .3s, color .3s;
    border: none;
    border-radius: 0;
    text-align: center;
    margin: 0;
    user-select: none;
}

.cookie-consent-popup .label:hover {
    background: #d8d8d8;
}

.cookie-consent-popup .label:active {
    background: #ccc;
}

.cookie-consent-popup input[type="checkbox"] {
    height: 15px;
    width: 15px;
    margin-top: -6px;
    margin-right: 10px;
}

.cookie-consent-popup input[type="checkbox"]:checked {
    background: var(--lines);
}

.cookie-consent-popup input[type="checkbox"]:disabled {
    opacity: .4;
    pointer-events: none;
}

.cookie-consent-popup input[type="checkbox"] + label {
    user-select: none;
    transition: all .25s ease;
}

.cookie-consent-popup .radiotab:checked + .label {
    background: #fff;
    color: #000;
    border-bottom: none;
}

.cookie-consent-popup .panel {
    display: none;
    padding: 20px 30px 30px;
    background: #fff;
    width: 100%;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    max-height: calc(90vh - 160px);
    overflow: auto;
}

.cookie-consent-popup .radiotab:checked + .label + .panel {
    display: block;
}

.cookie-consent-popup .panel {
    order: 99;
}

.cookie-consent-option input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
}

.cookie-consent-option label:not(.cn-label) {
    font-size: .9rem;
}

.cn-label {
    cursor: pointer;
    text-indent: -9999px;
    width: 40px;
    height: 20px;
    background: grey;
    display: block;
    border-radius: 0;
    position: relative;
    margin-right: 10px;
}

.cn-label:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 14px;
    background: #fff;
    border-radius: 0;
    transition: .3s ease all;
}

input:disabled + .cn-label {
    cursor: default;
    pointer-events: none;
    opacity: .5;
}

input:checked + .cn-label {
    background: var(--cn-check-color);
}

input:checked + .cn-label:after {
    left: calc(100% - 3px);
    transform: translateX(-100%);
}

@media (max-width: 768px) {
    .cookie-consent-popup {
        grid-template-columns: auto;
    }

    .cookie-consent-popup .img-holder {
        display: none;
    }

    .cookie-consent-buttons {
        flex-wrap: wrap;
    }

    .cookie-consent-btn {
        width: calc(50% - 5px);
        margin-right: 0;
    }

    .consent-paragraph-2 {
        font-size: 0.8em;
    }
}

@media (min-width: 600px) {
    .cookie-consent-popup .label {
        width: calc(100% / 3);
    }

    .cookie-consent-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .cookie-consent-btn {
        font-size: .9rem;
    }

    .cookie-consent-popup .label {
        padding: 14px 0;
        font-size: 1.2rem;
    }
}

/* Admin settings styles */
.button-order-container {
    margin-bottom: 15px;
}

.button-order-item {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 8px;
    cursor: move;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.button-order-item:hover {
    background-color: #e9e9e9;
}

.image-field-container {
    margin-bottom: 15px;
}

.image-preview-wrapper {
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 5px;
    display: inline-block;
    background: #f9f9f9;
    border-radius: 4px;
}

.image-preview {
    max-width: 200px;
    height: auto;
}

.image-upload-button {
    margin-left: 10px !important;
}