:root {
     --primary-color: #000;
     --ball-color-truthy-bg: #F1F4FD;
     --ball-color-falsy-bg: 0 0.2em 0.4em 0 rgba(0, 0, 0, 0.2);
     --ball-color-border: 0 0 0.1em 0.1em rgba(233, 233, 233, 0.918);
}

.margin-top-sm {
     margin-top: 1rem;
}

.margin-y-sm {
     margin-top: 1rem;
     margin-bottom: 1rem;
}

.font-small,
.font-regular {
     font-size: 0.875rem;
}

.cookies-dialog {
     font-family: sans-serif;
     border-radius: 2rem;
     padding: 0;
     border: none;
     -webkit-box-shadow: 0px 0px 40px 15px rgba(0, 0, 0, 0.11);
     -moz-box-shadow: 0px 0px 40px 15px rgba(0, 0, 0, 0.11);
     box-shadow: 0px 0px 40px 15px rgba(0, 0, 0, 0.11);
     overflow: hidden;
     max-width: 95vw;
     max-height: 95vh;
     z-index: 999;
}
.cookies-dialog #standard-preferences,
.cookies-dialog #custom-preferences{
     overflow-y: auto;

}
.cookies-dialog::backdrop {
     background: rgba(0, 0, 0, 0.38);
}
.cookies-dialog > * {
     box-sizing: border-box;
}
.cookies-dialog p {
     line-height: 24px;
}
.cookies-dialog[open] {
     display: flex;
     flex-direction: column;
}
details[open]{
     padding-bottom: 1rem;
}
details[open] > summary > .agreement > .agreement-content > .plus {
     display: none;
}
details[open] > summary > .agreement > .agreement-content > .minus {
     display: block;
}
details > summary > .agreement > .agreement-content > .minus {
     display: none;
}
.cookies-list details.category-child {
     border: none;
}
.cookies-dialog.square {
     border-radius: 0;
}

.cookies-dialog.square .btn,
.cookies-dialog.square details {
     border-radius: 0;
}

.cookies-dialog-content {
     display: flex;
     flex-direction: column;
     padding: 30px 20px 0;
     margin-inline: 10px;
     max-height: 450px;
     gap: 6px;
     max-width: 100%;
     overflow: auto;
     background-color: #FAFBFF;
     line-height: 1.2em;
}

.cookies-list {
     display: flex;
     flex-direction: column;
     height: 100%;
     padding-right: 4px;
}

.cookies-list details {
     cursor: pointer;
     background-color: #fff;
     border-radius: 8px;
     /* padding: 16px; */
     border: 1px solid transparent;
     transition:
             max-height 0.8s,
                  /* Transition max-height property */
             border-color 0.3s
}

.cookies-list details[open] {
     border-color: #D2D9EF;
}

.cookies-list details[open] {
     max-height: 1500px;
}

.cookies-list details:not(:first-child) {
     margin-top: .7rem;
     margin-bottom: .3rem;
}

details>summary {
     list-style: none;
}

details>summary ~ p {
     padding-left: 2rem;
     padding-right: 1rem;
}
details>summary:not(.category-parent) + p {
     word-break: break-all;
}

.cookies-list details .agreement {
     display: flex;
     align-items: center;
     justify-content: space-between;
     font-weight: 400;
}


.cookies-list details .agreement .agreement-content {
     display: flex;
     align-items: center;

}

.cookies-list details .agreement .agreement-content>span {
     margin-top: 6px;
}

.cookies-list details .agreement img {
     margin-top: 4px;
     margin-right: 16px;
     max-width: 16px;
     min-height: 16px;
}

.cookies-list p {
     margin-top: 5px;
     margin-bottom: 5px;
}

.cookies-controls {
     display: flex;
     flex-wrap: wrap;
     gap: 12px;
     padding: 22px;
     background-color: #FAFBFF;
     max-width: 100%;
}
.cookies-close {
     min-width: calc(50% - 6px);
}
.cookies-dialog-accept-all {
     min-width: 100%;
}
.read-more-state {
     display: none;
}

.read-more-wrap {
     margin-bottom: 0;
}
.read-more-wrap p {
     margin: 0;
}

.read-more-target {
     opacity: 0;
     max-height: 0;
     font-size: 0;
     transition: .25s opacity ease;
}
.read-more-target p {
     margin: 0;
     display: none;
}

.read-more-target {
     opacity: 0;
     max-height: 0;
}
.show-more {
     display: block;
}
.show-less {
     display: none;
}

.read-more-state:checked + .read-more-wrap > .read-more-target {
     opacity: 1;
     font-size: inherit;
     max-height: 999em;
}
.read-more-state:checked + .read-more-wrap > .read-more-target p {
     display: block;
}

.read-more-state:checked ~ .read-more-label .show-more {
     display: none;
 }

 .read-more-state:checked ~ .read-more-label .show-less {
     display: inline;
 }

.read-more-label {
     cursor: pointer;
     display: inline-block;
     text-decoration: underline;
}


.agreement-handler input.switch {
     font-size: 10px;
     position: relative;
     display: inline-block;
     appearance: none;
     width: 5.5em;
     height: 3em;
     line-height: 3em;
     border-radius: 2.3em;
     margin: 0;
     padding: 0 0 0 0.2em;
     outline: 1px solid #D2D9EF ;
     cursor: pointer;
     border: none;
     background-color: #F1F4FD;
     /* user-select: none; */
     -webkit-tap-highlight-color: transparent;
     -webkit-touch-callout: none;
     transition: box-shadow 0.3s ease-in-out, padding 0.25s ease-in-out;
     transition-delay: 0.1s, 0s;
     margin-left: 8px;
}

.agreement-handler input.switch:checked {
     transition-delay: 0s, 0s;
     box-shadow: inset 0 0 0 2.62857em var(--primary-color) !important;
     padding-left: 2.8em;
}

.agreement-handler input.switch.hit {
     animation: slide-off 0.35s ease both;
}

.agreement-handler input.switch.hit:checked {
     animation: slide-on 0.35s ease both 0.05s;

}

.agreement-handler input.switch:checked::before {
     background-color: var(--ball-color-truthy-bg);
}

.agreement-handler input.switch::before,
input.switch::after {
     content: "";
}

.agreement-handler input.switch::after {
     /* Increases hit area */
     position: absolute;
     top: -1.4em;
     left: -1.4em;
     bottom: -1.4em;
     right: -1.4em;
}

.agreement-handler input.switch::before {
     display: inline-block;
     height: 2.2em;
     width: 2.2em;
     margin: 0.4em 0 0 0.2em;
     background-color: var(--primary-color);
     border-radius: 2.1em;
     box-shadow: var(--ball-color-falsy-bg), var(--ball-color-border);
     transition: all 0.1s ease 0.1s;
}

.agreement-handler input.switch:active::before {
     transition: all 0.1s ease 0.05s;
}

.agreement-handler input.switch.touch:hover::before {
     transition: all 0s ease 0s;
}

.agreement-handler input.switch:active::before,
input.switch.touch:hover::before {
     width: 2.4em;
}

.btn {
     width: max-content;
     outline: none;
     border: none;
     padding: 10px 18px;
     border-radius: 32px;
     background-color: #C1C1C1;
     color: #fff;
     font-size: 12px;
     transition: .2s all;
     cursor: pointer;
}

.btn:hover {
     -webkit-box-shadow: 0px 0px 8px 0px rgba(193, 193, 193, 1);
     -moz-box-shadow: 0px 0px 8px 0px rgba(193, 193, 193, 1);
     box-shadow: 0px 0px 8px 0px rgba(193, 193, 193, 1);
}

.btn.black {
     background-color: var(--primary-color);
     color: #fff;
}
.cookies-toggler.active .setAll{
     display: none;
}
.cookies-toggler.active .unSetAll{
     display: block;
}
.cookies-toggler .unSetAll{
     display: none;
}

.cookie-open {
     color: #000;
     border: none;
     background: none;
     cursor: pointer;
}

@keyframes slide-on {
     0% {
          padding-left: 0em;
     }

     60% {
          padding-left: 4.8em;
     }

     100% {
          padding-left: 4.4em;
     }
}

@keyframes slide-off {
     0% {
          padding-left: 4.4em;
          text-indent: 0;
     }

     60% {
          padding-left: 0em;
          text-indent: -0.4em;
     }

     100% {
          padding-left: 0em;
          text-indent: 0;
     }
}
#cookies-all-toggler {
     margin-bottom: 1rem;
}
#cookies-dialog-custom-preferences {
     width: 100%;
}
@media(min-width: 575px) {
     .btn {
          font-size: 14px;
     }
     .cookies-controls {
          flex-wrap: nowrap;
     }
     .cookies-close {
          min-width: auto;
     }
     .cookies-dialog-accept-all {
          min-width: auto;
     }
     .cookies-dialog {
          max-width: 575px;
     }

     .font-regular {
          font-size: 1rem;
     }

     .cookies-dialog-content {
          padding: 54px 54px 0 54px;
     }

     .cookies-controls {
          padding: 22px 54px 54px 54px;
          justify-content: flex-start;
     }

     #standard-preferences .cookies-controls button,
     #custom-preferences .cookies-controls .cookies-dialog-accept-all{
          width: 100%;
     }

     .agreement-handler input.switch {
          margin-left: 16px;
     }

     .btn {
          padding: 16px 24px;
     }
}
label:focus,
button:focus,
.agreement:focus,
.agreement:focus-visible
.agreement-handler input.switch:focus {
     outline: 2px dashed #000;
}
.cookies-dialog-content:focus {
     outline: none;
}
summary {
     padding: 1rem;
}
summary::-webkit-details-marker {
     display: none;
}

/* custom */
.cookies-dialog-content {
     line-height: 18px;
}
.cookies-dialog {
     border-radius: .7rem;
}
.cookies-dialog p {
     text-align: initial;
     line-height: 24px;
}
.cookies-dialog .btn {
     border-radius: 5px;
}
.cookies-dialog strong {
     font-size: 18px;
}
.cookies-dialog p, .cookies-dialog .btn, .cookies-dialog span, .cookies-dialog strong  {
     font-family: Roboto, Arial, sans-serif;
}
.cookie-open {
     font-size: 11px;
     font-family: Roboto, Arial, sans-serif;
     color: #a1a1a1;
     font-weight: normal;
     padding: 0;
}
.font-small, .font-regular {
     font-size: 1rem;
}
