/* =========================================================
   VOXELMARKET — COMPLIANZ COOKIE POLICY
   Requires the existing legal.css and the page classes:
   vm-legal-page vm-cookie-page
   ========================================================= */

.vm-cookie-page #cmplz-document,
.vm-cookie-page #cmplz-document.cmplz-document {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--vm-legal-text) !important;
}

.vm-cookie-page #cmplz-document > .vm-cookie-section {
    max-width: none !important;
}

.vm-cookie-page .vm-cookie-section-body > :first-child {
    margin-top: 0 !important;
}

.vm-cookie-page .vm-cookie-section-body > :last-child {
    margin-bottom: 0 !important;
}

.vm-cookie-page .vm-cookie-section-body p {
    margin: 0 0 18px !important;
}

.vm-cookie-page .vm-cookie-section-body h3 {
    margin: 30px 0 14px !important;

    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 650 !important;
    letter-spacing: -0.025em !important;

    color: var(--vm-legal-black) !important;
}

.vm-cookie-page .vm-cookie-section-body h4 {
    margin: 22px 0 10px !important;

    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 650 !important;

    color: var(--vm-legal-black) !important;
}

.vm-cookie-page .vm-cookie-section-body h5 {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #5d5d5d !important;
}

.vm-cookie-page .vm-cookie-section-body ul {
    margin: 0 0 22px !important;
    padding: 0 0 0 20px !important;
}

.vm-cookie-page .vm-cookie-section-body ul > li {
    margin: 0 0 9px !important;
    padding-left: 4px !important;
}

.vm-cookie-page .vm-cookie-section-body a {
    overflow-wrap: anywhere;
}

/* Automatic Complianz introductory statement. */
.vm-cookie-page .vm-cookie-intro {
    margin: 0 0 30px;
    padding: 22px 24px;

    background: #f7f7f7;
    border-left: 3px solid var(--vm-legal-red);
}

.vm-cookie-page .vm-cookie-intro p,
.vm-cookie-page .vm-cookie-intro i {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.65 !important;
    color: #626262 !important;
}

/* =========================================================
   COMPLIANZ SERVICE / COOKIE DROPDOWNS
   ========================================================= */

.vm-cookie-page #cmplz-cookies-overview {
    width: 100%;
    margin: 24px 0 0 !important;
}

.vm-cookie-page #cmplz-cookies-overview .cmplz-dropdown {
    margin: 0 0 8px !important;
    padding: 0 !important;

    overflow: hidden;
    background: #f7f7f7 !important;
    border: 1px solid #ededed !important;
    border-radius: 0 !important;
}

.vm-cookie-page #cmplz-cookies-overview .cmplz-service-header {
    position: relative;
    min-height: 54px;
    padding: 0 !important;
    cursor: pointer;
    list-style: none;
}

.vm-cookie-page #cmplz-cookies-overview .cmplz-service-header::-webkit-details-marker {
    display: none;
}

.vm-cookie-page #cmplz-cookies-overview .cmplz-service-header > div {
    min-height: 54px;
    width: 100%;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;

    padding: 13px 52px 13px 16px !important;
}

.vm-cookie-page #cmplz-cookies-overview .cmplz-service-header h3 {
    margin: 0 !important;

    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;

    color: var(--vm-legal-black) !important;
}

.vm-cookie-page #cmplz-cookies-overview .cmplz-service-header p {
    margin: 0 !important;

    font-size: 10px !important;
    line-height: 1.25 !important;
    color: #777 !important;

    white-space: nowrap;
}

.vm-cookie-page #cmplz-cookies-overview .cmplz-service-header::after {
    content: "↓";
    position: absolute;
    top: 50%;
    right: 17px;

    font-size: 17px;
    line-height: 1;
    color: var(--vm-legal-red);

    transform: translateY(-50%);
    transition: transform 0.22s ease;
}

.vm-cookie-page #cmplz-cookies-overview .cmplz-dropdown[open]
.cmplz-service-header::after {
    transform: translateY(-50%) rotate(180deg);
}

.vm-cookie-page #cmplz-cookies-overview .cmplz-hidden,
.vm-cookie-page #cmplz-cookies-overview .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.vm-cookie-page #cmplz-cookies-overview .cmplz-service-description,
.vm-cookie-page #cmplz-cookies-overview .cmplz-sharing-data,
.vm-cookie-page #cmplz-cookies-overview .cookies-per-purpose {
    margin: 0 !important;
    padding: 18px 18px !important;
    background: #fff !important;
    border-top: 1px solid #e9e9e9;
}

.vm-cookie-page #cmplz-cookies-overview .cmplz-service-description:empty,
.vm-cookie-page #cmplz-cookies-overview .cmplz-sharing-data:empty {
    display: none !important;
}

.vm-cookie-page #cmplz-cookies-overview .cmplz-service-description p,
.vm-cookie-page #cmplz-cookies-overview .cmplz-sharing-data p {
    margin: 0 !important;
}

.vm-cookie-page #cmplz-cookies-overview .cookies-per-purpose {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(100px, 0.65fr) minmax(0, 1.2fr);
    align-items: stretch;
    gap: 0 !important;
}

.vm-cookie-page #cmplz-cookies-overview .cookies-per-purpose > div {
    min-width: 0;
    margin: 0 !important;
    padding: 10px 12px !important;

    border-right: 1px solid #ededed;
    border-bottom: 1px solid #ededed;

    font-size: 11px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
}

.vm-cookie-page #cmplz-cookies-overview .cookies-per-purpose > .purpose {
    grid-column: 1 / -1;
    padding: 11px 12px !important;
    background: #f4f4f4;
    border-right: 0;
}

.vm-cookie-page #cmplz-cookies-overview .cookies-per-purpose > .name-header,
.vm-cookie-page #cmplz-cookies-overview .cookies-per-purpose > .retention-header,
.vm-cookie-page #cmplz-cookies-overview .cookies-per-purpose > .function-header {
    background: #fafafa;
}

/* =========================================================
   CONSENT CATEGORIES
   ========================================================= */

.vm-cookie-page #cmplz-manage-consent-container {
    margin: 22px 0 0 !important;
}

.vm-cookie-page #cmplz-manage-consent-container .cmplz-categories {
    display: grid;
    gap: 8px;
}

.vm-cookie-page #cmplz-manage-consent-container .cmplz-category {
    overflow: hidden;
    background: #f7f7f7;
    border: 1px solid #ededed;
}

.vm-cookie-page #cmplz-manage-consent-container .cmplz-category-header {
    min-height: 52px;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 32px;
    align-items: center;
    column-gap: 14px;

    padding: 12px 15px !important;
}

.vm-cookie-page #cmplz-manage-consent-container .cmplz-category-title {
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    color: var(--vm-legal-black) !important;
}

.vm-cookie-page #cmplz-manage-consent-container .cmplz-always-active {
    font-size: 10px !important;
    color: #4c9f43 !important;
}

.vm-cookie-page #cmplz-manage-consent-container .cmplz-category-toggle {
    width: 30px;
    height: 30px;
    margin: 0 !important;
    padding: 0 !important;

    display: grid;
    place-items: center;

    background: transparent !important;
    border: 0 !important;
}

.vm-cookie-page #cmplz-manage-consent-container .cmplz-category-toggle svg {
    width: 13px;
    height: 13px;
    fill: var(--vm-legal-red);
}

.vm-cookie-page #cmplz-manage-consent-container .cmplz-description {
    padding: 16px 15px !important;
    background: #fff;
    border-top: 1px solid #e9e9e9;

    font-size: 11px !important;
    line-height: 1.55 !important;
}

/* Preserve Complianz checkbox behaviour while matching the page style. */
.vm-cookie-page #cmplz-manage-consent-container .cmplz-banner-checkbox {
    display: inline-flex;
    align-items: center;
}

.vm-cookie-page #cmplz-manage-consent-container
.cmplz-consent-checkbox:not(.cmplz-functional) {
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    accent-color: var(--vm-legal-red);
}

/* =========================================================
   CONTACT + SYNC NOTE
   ========================================================= */

.vm-cookie-page .vm-cookie-contact-card {
    margin: 24px 0 20px !important;
    padding: 22px 24px !important;

    background: #f7f7f7;
    border-left: 3px solid var(--vm-legal-red);
}

.vm-cookie-page .vm-cookie-contact-card > span {
    display: inline;
}

.vm-cookie-page .vm-cookie-contact-card .cmplz-contact-organisation {
    font-weight: 700 !important;
    color: var(--vm-legal-black) !important;
}

.vm-cookie-page .vm-cookie-sync-note {
    margin-top: 24px !important;
    padding-top: 18px !important;

    border-top: 1px solid var(--vm-legal-border);

    font-size: 11px !important;
    line-height: 1.55 !important;
    color: #777 !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
    .vm-cookie-page .vm-cookie-intro {
        margin-bottom: 26px;
        padding: 18px 18px;
    }

    .vm-cookie-page .vm-cookie-section-body h3 {
        margin: 26px 0 13px !important;
        font-size: 18px !important;
    }

    .vm-cookie-page #cmplz-cookies-overview .cmplz-service-header > div {
        grid-template-columns: minmax(0, 1fr);
        padding: 13px 46px 13px 14px !important;
    }

    .vm-cookie-page #cmplz-cookies-overview .cmplz-service-header p {
        grid-column: 1;
        margin-top: 5px !important;
        white-space: normal;
    }

    .vm-cookie-page #cmplz-cookies-overview .cmplz-service-header::after {
        right: 15px;
    }

    .vm-cookie-page #cmplz-cookies-overview .cmplz-service-description,
    .vm-cookie-page #cmplz-cookies-overview .cmplz-sharing-data,
    .vm-cookie-page #cmplz-cookies-overview .cookies-per-purpose {
        padding: 14px !important;
    }

    .vm-cookie-page #cmplz-cookies-overview .cookies-per-purpose {
        grid-template-columns: 1fr;
    }

    .vm-cookie-page #cmplz-cookies-overview .cookies-per-purpose > div {
        border-right: 0;
    }

    .vm-cookie-page #cmplz-cookies-overview .cookies-per-purpose > .purpose {
        grid-column: 1;
    }

    .vm-cookie-page #cmplz-manage-consent-container .cmplz-category-header {
        grid-template-columns: minmax(0, 1fr) auto 28px;
        column-gap: 9px;
        padding: 11px 13px !important;
    }

    .vm-cookie-page .vm-cookie-contact-card {
        padding: 18px 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vm-cookie-page #cmplz-cookies-overview .cmplz-service-header::after {
        transition: none;
    }
}
