/* COOKIE CONSENT (3.3.3). Linked directly by msf-main.php when the cookie warning is on, it is not part of the generated site CSS. */

.msf-consent {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 99999;
    box-sizing: border-box;
    width: 440px;
    max-width: calc(100% - 50px);
    padding: 22px;
    flex-direction: column;
    gap: 16px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .95);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}
.msf-consent a.msf-consent-link {
    color: #fff;
    text-decoration: underline;
}
.msf-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.msf-consent-btn {
    display: inline-block;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #fff;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.msf-consent-btn:hover,
.msf-consent-btn:focus {
    opacity: .85;
}
.msf-consent .msf-consent-accept,
.msf-consent-preferences .msf-consent-save {
    background: #fff;
    color: #000;
}
.msf-consent .msf-consent-customize {
    border-color: transparent;
    text-decoration: underline;
}

/* cookie switches at the end of the Cookie Policy page */
.msf-consent-preferences {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.msf-consent-preferences h2 {
    margin-bottom: 10px;
}
.msf-consent-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
}
.msf-consent-row h3 {
    margin: 0 0 4px;
}
.msf-consent-row p {
    margin: 0;
}
.msf-consent-preferences .msf-consent-save {
    margin-top: 24px;
    border-color: #000;
    background: #000;
    color: #fff;
}
.msf-consent-saved {
    margin-top: 14px;
    min-height: 1.5em;
}

.msf-consent-switch {
    position: relative;
    flex: 0 0 auto;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.msf-consent-switch input {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.msf-consent-switch input:disabled {
    cursor: not-allowed;
}
.msf-consent-slider {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 26px;
    background: #9c9c9c;
    transition: background .2s;
    pointer-events: none;
}
.msf-consent-slider:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
}
.msf-consent-switch input:checked + .msf-consent-slider {
    background: #2e7d32;
}
.msf-consent-switch input:checked + .msf-consent-slider:before {
    transform: translateX(22px);
}
.msf-consent-switch input:disabled + .msf-consent-slider {
    opacity: .6;
}
.msf-consent-switch input:focus-visible + .msf-consent-slider {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

/* shown where a third party embed is blocked until Marketing is allowed */
.msf-consent-placeholder {
    box-sizing: border-box;
    width: 100%;
    padding: 30px 20px;
    border: 1px solid rgba(0, 0, 0, .2);
    background: rgba(0, 0, 0, .05);
    text-align: center;
}
.msf-consent-placeholder p {
    margin: 0 0 14px;
}
.msf-consent-placeholder .msf-consent-btn {
    border-color: #000;
    background: #000;
    color: #fff;
}

@media (max-width: 600px) {
    .msf-consent {
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    .msf-consent-actions .msf-consent-btn {
        flex: 1 1 100%;
    }
}
