/* Cookie-Consent */

/* Deactivate scrolling behavior of page if cookie-panel is active */
body:has(> .tx-om-cookie-consent .om-cookie-panel.active) {
   pointer-events: none;
   overflow: hidden;
}

/* active panel */
.tx-om-cookie-consent:has(> .om-cookie-panel.active) {
    opacity: 1;
    pointer-events: auto;
}

.tx-om-cookie-consent:has(> .om-cookie-panel.active)::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #000;
    opacity: 0.8;
}

.tx-om-cookie-consent {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms ease-in;
    padding: 0.938rem;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tx-om-cookie-consent .om-cookie-panel {
    transform: none;
}

.om-cookie-panel {
    position: relative;
    left: auto;
    width: 100%;
    border: none;
    border-radius: 0.625rem;
    padding: 1.25rem;

    @media screen and (max-height: 932px) {
        max-height: calc(100vh - 1.875rem);
        overflow-y: scroll;
    }

    @media screen and (min-width: 1024px) {
        width: auto;
        max-width: 37.5rem;
    }
}

.om-cookie-panel .cookie-panel__selection .accordion__wrapper {
    border: 1px solid #f2f2f2;  /* grey-100 */
    margin-bottom: 2px;
}
.om-cookie-panel .cookie-panel__selection .accordion__wrapper:last-child {
    margin-bottom: 0;
}

.om-cookie-panel .cookie-panel__selection .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    cursor: auto;
    background-color: #f2f2f2; /* grey-100 */
}

.om-cookie-panel .cookie-panel__selection .accordion-header svg {
    position: absolute;
    top: 0;
    right: -0.75rem;
    width: 3rem;
    height: 3rem;
    padding: 0.75rem;
    cursor: pointer;
}

.om-cookie-panel .cookie-panel__selection .accordion-header [data-toggle="collapse"] svg {
    -webkit-transform: translate(0%, -50%) rotate(-45deg);
    -ms-transform: translate(0%,-50%) rotate(-45deg);
    transform: translate(0%, -50%) rotate(-45deg);
    transition: transform 0.5s ease;
}

.om-cookie-panel .cookie-panel__selection .accordion-header [data-toggle="collapse"].collapsed svg {
    -webkit-transform: translate(0%, -50%) rotate(0deg);
    -ms-transform: translate(0%,-50%) rotate(0deg);
    transform: translate(0%, -50%) rotate(0deg);
    transition: transform 0.5s ease;
}

.om-cookie-panel .cookie-panel__selection .accordion-header__item {
    width: 100%;
    position: relative;
}

.om-cookie-panel .cookie-panel__selection .cookie-panel__checkbox-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

.om-cookie-panel .cookie-panel__selection .cookie-panel__checkbox-wrap .cookie-panel__checkbox + label {
    display: flex;
    align-items: center;
    width: max-content;
    text-align: left;
    margin-bottom: 0;
}

.om-cookie-panel .cookie-panel__selection .cookie-panel__checkbox-wrap .cookie-panel__checkbox + label::before {
    float: none;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.625rem;
    border-color: #002f5d; /* Primray */
    background: none;
    box-shadow: inset 0 0 0 2px #f2f2f2;  /* gray-100 */
}

.om-cookie-panel .cookie-panel__selection .cookie-panel__checkbox-wrap .cookie-panel__checkbox:checked + label::before {
     border-color: #002f5d;  /* Primray */
     background-color: #002f5d; /* Primray */
}

.om-cookie-panel .cookie-panel__selection .cookie-panel__checkbox-wrap .cookie-panel__checkbox--state-inactiv:checked + label::before {
     border-color: #858d8d; /* gray-300 */
     background-color: #858d8d; /* gray-300 */
}

.om-cookie-panel .cookie-panel__selection .accordion__content {
    max-height: 10rem;
    overflow-y: scroll;
    text-align: left;
    padding: 0.75rem 0.75rem 0 0.75rem;
    margin-bottom: 0.75rem;
}

.om-cookie-panel .cookie-panel__selection .accordion__content p {
    padding-top: 0;
}

.om-cookie-panel .cookie-panel__selection .accordion__content .table-scrollable {
    width: 100%;
    overflow-y: auto;
}

.om-cookie-panel .cookie-panel__selection .accordion__content .table-scrollable th,
.om-cookie-panel .cookie-panel__selection .accordion__content .table-scrollable td {
    font-size: 0.875rem;
}

.om-cookie-panel .cookie-panel__selection .accordion__content .table-scrollable td p:last-child {
    padding-bottom: 0;
}

.om-cookie-panel .cookie-panel__control {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}