/* LS_Cookie - cookie bar and settings dialog. Colors come from CSS variables set in the admin. */
.ls-cookie[hidden],
.ls-cookie [hidden] {
    display: none !important;
}

.ls-cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    background: var(--ls-cookie-bg, #f4f4f4);
    color: var(--ls-cookie-text, #000);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .12);
    font-family: 'Barlow', Arial, sans-serif;
}
.ls-cookie-bar__inner {
    position: relative;
    box-sizing: border-box;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 56px 28px 24px;
}
.ls-cookie-bar__text {
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: .06em;
}
.ls-cookie-bar__text p {
    margin: 0;
}
.ls-cookie a {
    color: var(--ls-cookie-link, #1c842a);
    text-decoration: none;
}
.ls-cookie a:hover,
.ls-cookie a:focus {
    text-decoration: underline;
}
#ls-cookie .ls-cookie-bar__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 28px;
    line-height: 36px;
    cursor: pointer;
    box-shadow: none;
}
#ls-cookie .ls-cookie-bar__close:hover,
#ls-cookie .ls-cookie-bar__close:focus {
    color: #000;
    background: transparent;
}
.ls-cookie-bar__actions,
.ls-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

#ls-cookie .ls-cookie-btn {
    min-width: 200px;
    padding: 10px 30px;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s, color .2s;
    box-shadow: none;
}
#ls-cookie .ls-cookie-btn:focus-visible,
#ls-cookie .ls-cookie-bar__close:focus-visible,
#ls-cookie .ls-cookie-modal__close:focus-visible,
.ls-cookie-switch input:focus-visible + .ls-cookie-switch__track {
    outline: 2px solid var(--ls-cookie-link, #1c842a);
    outline-offset: 2px;
}
#ls-cookie .ls-cookie-btn--accept {
    background: var(--ls-cookie-accept-bg);
    color: var(--ls-cookie-accept-color);
}
#ls-cookie .ls-cookie-btn--accept:hover,
#ls-cookie .ls-cookie-btn--accept:focus {
    background: var(--ls-cookie-accept-bg-hover);
    color: var(--ls-cookie-accept-color-hover);
}
#ls-cookie .ls-cookie-btn--decline {
    background: var(--ls-cookie-decline-bg);
    color: var(--ls-cookie-decline-color);
}
#ls-cookie .ls-cookie-btn--decline:hover,
#ls-cookie .ls-cookie-btn--decline:focus {
    background: var(--ls-cookie-decline-bg-hover);
    color: var(--ls-cookie-decline-color-hover);
}
#ls-cookie .ls-cookie-btn--settings {
    background: var(--ls-cookie-settings-bg);
    color: var(--ls-cookie-settings-color);
    border-color: #d8d8d8;
}
#ls-cookie .ls-cookie-btn--settings:hover,
#ls-cookie .ls-cookie-btn--settings:focus {
    background: var(--ls-cookie-settings-bg-hover);
    color: var(--ls-cookie-settings-color-hover);
}

/* Settings dialog */
body.ls-cookie-modal-open {
    overflow: hidden;
}
.ls-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Barlow', Arial, sans-serif;
}
.ls-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}
.ls-cookie-modal__box {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 40px 40px 32px;
    background: #fff;
    color: #303030;
    outline: none;
}
#ls-cookie .ls-cookie-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 30px;
    line-height: 40px;
    cursor: pointer;
    box-shadow: none;
}
#ls-cookie .ls-cookie-modal__close:hover {
    color: #000;
    background: transparent;
}
.ls-cookie-modal__title {
    margin: 0 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: #231f1b;
}
.ls-cookie-modal__intro {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.55;
    color: #6d6c66;
}
.ls-cookie-modal__intro p {
    margin: 0;
}
.ls-cookie-group {
    padding: 18px 0;
    border-top: 1px solid #e6e2d8;
}
.ls-cookie-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ls-cookie-group__name {
    margin: 0;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .02em;
    text-transform: none;
}
.ls-cookie-group__name label {
    cursor: pointer;
}
.ls-cookie-group__always {
    margin: 4px 0 0;
    font-size: 13px;
    color: #1c842a;
}
.ls-cookie-group__desc {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: #555;
}
.ls-cookie-group__desc p {
    margin: 0 0 6px;
}
.ls-cookie-group__details {
    margin-top: 8px;
    font-size: 14px;
}
.ls-cookie-group__details summary {
    cursor: pointer;
    color: var(--ls-cookie-link, #1c842a);
}
.ls-cookie-table-wrap {
    margin-top: 10px;
    overflow-x: auto;
}
.ls-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.45;
}
.ls-cookie-table th,
.ls-cookie-table td {
    padding: 8px 10px;
    border: 1px solid #e6e2d8;
    text-align: left;
    vertical-align: top;
}
.ls-cookie-table th {
    background: #f5f1e8;
    font-weight: 600;
}
.ls-cookie-table td p {
    margin: 0 0 4px;
}
.ls-cookie-table__name {
    word-break: break-word;
    min-width: 110px;
}

/* Toggle switch */
.ls-cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
}
.ls-cookie-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.ls-cookie-switch input:disabled {
    cursor: not-allowed;
}
.ls-cookie-switch__track {
    position: absolute;
    inset: 0;
    border-radius: 13px;
    background: #bdbdbd;
    transition: background-color .2s;
}
.ls-cookie-switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
}
.ls-cookie-switch input:checked + .ls-cookie-switch__track {
    background: var(--ls-cookie-accept-bg, #1c842a);
}
.ls-cookie-switch input:checked + .ls-cookie-switch__track::after {
    transform: translateX(20px);
}
.ls-cookie-switch input:disabled + .ls-cookie-switch__track {
    opacity: .6;
}

@media (max-width: 767px) {
    .ls-cookie-bar__inner {
        padding: 20px 16px 16px;
    }
    .ls-cookie-bar__text {
        padding-right: 36px;
        font-size: 13px;
    }
    .ls-cookie-bar__actions,
    .ls-cookie-modal__actions {
        flex-direction: column;
        margin-top: 18px;
    }
    #ls-cookie .ls-cookie-btn {
        width: 100%;
        min-width: 0;
        font-size: 16px;
    }
    .ls-cookie-modal {
        padding: 0;
        align-items: flex-end;
    }
    .ls-cookie-modal__box {
        max-height: 92vh;
        padding: 32px 18px 20px;
    }
    .ls-cookie-modal__title {
        font-size: 24px;
        padding-right: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ls-cookie .ls-cookie-btn,
    .ls-cookie-switch__track,
    .ls-cookie-switch__track::after {
        transition: none;
    }
}
