/* ==========================================================================
   Marketplace Cookie Consent - Public
   ========================================================================== */

#mcc-banner,
#mcc-settings,
#mcc-settings-button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.mcc-hidden {
    display: none !important;
}


/* ==========================================================================
   Cookie Banner
   ========================================================================== */

#mcc-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
}

.mcc-banner-inner {
    max-width: 440px;

    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.18);
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 28px;
}

.mcc-banner-copy {
    flex: 1;
}

.mcc-banner-copy h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.mcc-banner-text p {
    margin: 0 0 7px;
    line-height: 1.55;
    font-size: 14px;
}

.mcc-policy {
    font-size: 13px;
    margin: 10px 0 0;
}

.mcc-policy a {
    text-decoration: underline;
}

.mcc-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;

}


/* ==========================================================================
   Buttons
   ========================================================================== */

.mcc-btn {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    min-height: 44px;
}

.mcc-btn-primary {
    background: #343a40;
    color: #ffffff;
    border-color: #343a40;
}

.mcc-btn-secondary {
    background: #343a40;
    color: #ffffff;
    border-color: #343a40;
}

.mcc-btn:hover,
.mcc-btn:focus {
    opacity: 0.92;
}


/* ==========================================================================
   Consent Settings Modal
   ========================================================================== */

#mcc-settings {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}


/* Dark page overlay */

.mcc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}


/* ==========================================================================
   Modal
   ========================================================================== */

.mcc-modal {
    position: relative;
    z-index: 2;

    width: min(850px, calc(100vw - 32px));
    height: min(760px, calc(100vh - 32px));

    margin: 0;

    background: #ffffff;
    border-radius: 6px;

    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);

    display: flex;
    flex-direction: column;

    overflow: hidden;
    box-sizing: border-box;
}


/* ==========================================================================
   Modal Header
   ========================================================================== */

.mcc-modal-header {
    flex: 0 0 auto;

    padding: 27px 26px 21px;

    border-bottom: 1px solid #eeeeee;

    background: #ffffff;
}

.mcc-modal-header h2 {
    margin: 0;
    padding: 0;

    color: #292929;

    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}


/* Close button */

.mcc-close {
    position: absolute;

    right: 17px;
    top: 17px;

    width: 32px;
    height: 32px;

    padding: 0;

    border: 0;
    background: transparent;

    color: #718096;

    font-size: 23px;
    line-height: 32px;

    cursor: pointer;

    z-index: 10;
}

.mcc-close:hover,
.mcc-close:focus {
    color: #222222;
    background: transparent;
}


/* ==========================================================================
   Modal Content - ONLY THIS AREA SCROLLS
   ========================================================================== */

.mcc-modal-content {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 0 26px;

    scrollbar-width: thin;
    scrollbar-color: #8c8c8c transparent;
}

.mcc-modal-content::-webkit-scrollbar {
    width: 9px;
}

.mcc-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.mcc-modal-content::-webkit-scrollbar-thumb {
    background: #8c8c8c;
    border-radius: 10px;
}

.mcc-modal-content::-webkit-scrollbar-thumb:hover {
    background: #6f6f6f;
}


/* Intro text */

.mcc-settings-intro {
    padding: 16px 0 15px;

    border-bottom: 1px solid #eeeeee;

    color: #292929;

    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}


/* ==========================================================================
   Category
   ========================================================================== */

.mcc-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;

    align-items: start;

    column-gap: 25px;

    padding: 17px 0 20px;

    border-bottom: 1px solid #eeeeee;
}

.mcc-category-copy {
    min-width: 0;
}

.mcc-category-title {
    margin: 0 0 10px;

    color: #292929;

    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.mcc-category-description {
    margin: 0;

    color: #333333;

    font-size: 14px;
    line-height: 1.55;
}


/* Necessary status */

.mcc-category-status {
    padding-top: 1px;

    color: #008000;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;

    white-space: nowrap;
}


/* ==========================================================================
   Switch
   ========================================================================== */

.mcc-switch {
    display: inline-flex;

    align-items: center;
    justify-content: flex-end;

    margin-top: 1px;
}

.mcc-switch input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.mcc-switch span {
    display: block;

    width: 44px;
    height: 24px;

    background: #d0d5d5;

    border-radius: 20px;

    position: relative;

    cursor: pointer;

    transition: background 0.15s ease;
}

.mcc-switch span::after {
    content: "";

    width: 18px;
    height: 18px;

    position: absolute;

    left: 3px;
    top: 3px;

    background: #ffffff;

    border-radius: 50%;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);

    transition: transform 0.15s ease;
}

.mcc-switch input:checked+span {
    background: #343a40;
}

.mcc-switch input:checked+span::after {
    transform: translateX(20px);
}

.mcc-switch input:focus-visible+span {
    outline: 2px solid #343a40;
    outline-offset: 2px;
}


/* ==========================================================================
   Modal Footer
   ========================================================================== */

.mcc-modal-footer {
    flex: 0 0 auto;

    display: grid;

    grid-template-columns: 1fr 1.55fr 1fr;

    gap: 8px;

    padding: 16px 26px 25px;

    border-top: 1px solid #eeeeee;

    background: #ffffff;
}

.mcc-modal-footer .mcc-btn {
    width: 100%;
}


/* ==========================================================================
   Cookie details
   ========================================================================== */

.mcc-cookie-list {
    margin-top: 0;
}

.mcc-cookie-row {
    border-top: 1px solid #eeeeee;

    padding: 9px 0;

    display: grid;

    grid-template-columns: 1fr auto;

    gap: 3px 10px;
}

.mcc-cookie-row small {
    grid-column: 1 / -1;

    color: #6b7280;
}


/* ==========================================================================
   Floating Settings Button
   ========================================================================== */

.mcc-settings-button {
    position: fixed;

    left: 16px;
    bottom: 16px;

    z-index: 999990;

    background: #343a40;
    color: #ffffff;

    border: 0;
    border-radius: 8px;

    padding: 9px 12px;

    cursor: pointer;

    font-size: 12px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}


/* ==========================================================================
   Body Lock
   ========================================================================== */

.mcc-lock {
    overflow: hidden !important;
}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 700px) {

    #mcc-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .mcc-banner-inner {
        display: block;
        padding: 18px;
    }

    .mcc-banner-actions {
        margin-top: 15px;
        justify-content: stretch;
    }

    .mcc-btn {
        flex: 1;
    }

    #mcc-settings {
        padding: 10px;
    }

    .mcc-modal {
        width: 100%;
        height: calc(100vh - 20px);
        border-radius: 5px;
    }

    .mcc-modal-header {
        padding: 22px 18px 18px;
    }

    .mcc-modal-content {
        padding: 0 18px;
    }

    .mcc-category {
        column-gap: 15px;
    }

    .mcc-category-title {
        font-size: 15px;
    }

    .mcc-category-description,
    .mcc-settings-intro {
        font-size: 13px;
    }

    .mcc-modal-footer {
        grid-template-columns: 1fr;
        gap: 8px;

        padding: 12px 18px 16px;
    }

    .mcc-modal-footer .mcc-btn {
        min-height: 42px;
    }
}