
:root
{
--or-rgpd-color: #1AB9D2;
--or-rgpd-bgcolor: #2B2B2B;
--or-rgpd-inputbgcolor: #757575;
--or-rgpd-inputcolor: #fff;
}

/* => Dispalys */
.t-none {display: none !important;}

/* => Componente rgpdmodal */
.c-rgpdmodal { 
    display: flex;
    overflow: hidden; 
    z-index: 99999;
}

.c-rgpdmodal p {
    font-size: 1rem;
    margin: 0;
}

.c-rgpdmodal * { font-family: 'Helvetica', 'Arial', sans-serif; }
.c-rgpdmodal.t-show
{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0 0 0 / .5);
    -webkit-animation: none;
       -moz-animation: none;
            animation: none; 
}

/* - MODAL - */

.c-rgpdmodal .c-rgpdmodal__container { 
    display: none;
    -webkit-animation: scale-out-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
       -moz-animation: scale-out-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
            animation: scale-out-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; 
}

.c-rgpdmodal.t-show .c-rgpdmodal__container {
    width: 41.6875rem;
    min-width: auto;
    min-height: 26.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--or-rgpd-bgcolor);
    max-width: 90%;
    padding: 3.125rem;
    box-sizing: border-box;
    -webkit-animation: none;
       -moz-animation: none;
            animation: none;
    /* -webkit-animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
       -moz-animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
            animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; */
}

.c-rgpdmodal.t-show .c-rgpdmodal__container > div * {
    text-align: left;
    color: #fff;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container > div p 
{
    color: #fff; 
}

/* - MODAL BODY - */

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body {
    align-items: center;
    width: 100%;
    gap: 50px;
    /* min-height: 100%; */
    display: grid;
    height: auto;
    justify-content: initial;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body > div {
    padding: 0;
    width: 100%;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body > div.c-rgpdmodal__title {
    padding: 0;
    line-height: 1.2;
    max-height: 1.9375rem;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body > div p {
    font-size: 1rem;
    line-height: 1.2;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body > div.c-rgpdmodal__introtext > p{
    line-height: 1.8;
    font-size: 0.9375rem;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body > div p.is-title {
    font-size: 1.5625rem;
    margin-top: 0;
    display:flex;
    justify-content: flex-start;
    align-items: center;
    color: #fff;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body > div p.is-title::before {
    content: "";
    display: block;
    background-image: url(/images/icon-cookie.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 1.5rem;
    width: 1.5rem;
    margin-right: 0.9375rem;
}

/* - MODAL BODY FORM - */

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    width: 100%;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form > p {
    margin-top: 16px;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form div label {
    font-size: 0.8125rem;
    text-align: left;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-content: center;
    min-width: 3.0625rem;
    }

/** - CONFIG BLOCK - **/

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form #rgpd-config-block 
{        
    display: grid;     
    justify-content: inherit; 
    gap: 0.9375rem;
    justify-content: center;
    align-items: flex-start;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form #rgpd-config-block > div
{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form #rgpd-config-block div p { 
    display: grid;  
    grid-template-columns: 1.25rem 1fr; 
    font-size: 1rem;
    cursor: pointer;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form #rgpd-config-block div p::before 
{
    content: "";
    display: block;
    width: 0.3125rem;
    height: 1.5625rem;
    background-image: url(/images/angle-right-solid.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-right: 0.3125rem;
    transition: all .5s ease-in-out;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form #rgpd-config-block div p.is-displayed::before
{
    transform: rotate(90deg);
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form #rgpd-config-block div p .c-rgpdmodal__desc { 
    grid-column: 1 / span 2;
    grid-row: 2;
    height: 0;
    overflow-y: hidden;
    transition: all .5s ease-in-out;
    line-height: 1.2;
    padding-right: 3.125rem;
    padding-left: 1.25rem;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form #rgpd-config-block div p .c-rgpdmodal__desc.has-ver { 
    overflow-y: visible;
    height: fit-content;
}

/** - SUBMIT BUTTONS - **/
.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form .c-rgpdmodal__submitbtns {
    display: grid;
    width: 100%;
    grid-template: 1fr / repeat(3, 1fr);
    margin: 0.625rem 0 0;
    min-height: 3.4375rem;
    gap: 25px;
    justify-content: center;
    align-items: center;
}

.c-rgpdmodal.t-show.is-displayed .c-rgpdmodal__container .c-rgpdmodal__body form .c-rgpdmodal__submitbtns {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form .c-rgpdmodal__submitbtns div {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
grid-row: 1;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form div > input[type="button"]
{
    align-items: center;
    background-color: transparent;
    border: solid 2px var(--or-rgpd-color);
    border-radius: 1.5rem;
    color: var(--or-rgpd-color);
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    font-weight: bold;
    justify-content: center;
    min-height: 3rem;
    margin: 0;
    padding: 0.625rem;
    text-align: center;
    width: 100%;
    appearance: none;
    opacity: 1;
    -webkit-appearance: none;
    -webkit-text-fill-color: var(--or-rgpd-color);
    -webkit-opacity: 1;
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form div > input[type="button"]:hover,
.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form div > input#rgpd-submit {
    background-color: var(--or-rgpd-color);
    color: var(--or-rgpd-bgcolor);
    -webkit-text-fill-color: var(--or-rgpd-bgcolor);  
}

.c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form div > input#rgpd-submit:hover {
    color: var(--or-rgpd-color);
    background-color: var(--or-rgpd-bgcolor);
    -webkit-text-fill-color: var(--or-rgpd-color);
}

/*---------------------------
--  BOTON MOSTRAR POPUP  --
---------------------------*/
.c-rgpdmodal .no-modal {
display: flex;
position: fixed;
flex-direction: column;
bottom: 6.25rem;
transform: rotate(90deg);
left: 0;
/* height: 4.375rem; */
margin-left: -6.5625rem;
width: 12.5rem;
justify-content: flex-start;
align-items: center;
z-index: 99999;
cursor: pointer;
}
.c-rgpdmodal .no-modal.t-show {
    transition: all .5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    -webkit-transition: all .5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.c-rgpdmodal .no-modal.t-hide {
    animation: none;
    -webkit-filter: none;
            filter: none;
            opacity: 1;
    transition: all .5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    -webkit-transition: all .5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.c-rgpdmodal.t-show .no-modal { display: none; }

.c-rgpdmodal .no-modal .c-rgpdmodal__openmodal.c--display { 
display: flex;
justify-content: center;
align-items: flex-start;
line-height: 1;
width: 2.5rem;
height: 1.875rem;
background-color: #fff;
box-shadow: 0 0 0.1875rem rgb(0 0 0 / 50%);
border-top-right-radius: 1.25rem;
border-top-left-radius: 1.25rem;
padding-top: 0.625rem;
}

.c-rgpdmodal .no-modal.t-show {    
left: 0;
margin-left: -4.5rem;
justify-content: flex-end;
-webkit-animation: none;
-moz-animation: none;
animation: none;
}
.c-rgpdmodal .no-modal.t-show .c-rgpdmodal__openmodal.c--display {
transform: rotate(180deg);
margin-top: 0;    
border-bottom-right-radius: 1.25rem;
border-bottom-left-radius: 1.25rem;
border-top-right-radius: 0;
border-top-left-radius: 0;
align-items: center;
padding-top: 0.3125rem;
}
.c-rgpdmodal .no-modal .c-rgpdmodal__openmodal.c--show {
background-color: #323232;
padding: 0.4375rem;
line-height: 1;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-bottom: 0;
font-size: 0.9375rem;
}

/*---------------------------
--  Slider Input          --
---------------------------*/

/* The switch - the box around the slider */
.c-rgpdmodal__switch {
    position: relative;
    display: inline-block;
    width: 3.0625rem;
    height: 1.5rem;
}

/* Hide default HTML checkbox */
.c-rgpdmodal__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.c-rgpdmodal__switch .is-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--or-rgpd-inputbgcolor);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 1.5rem;
}

.c-rgpdmodal__switch .is-slider:before {
    position: absolute;
    content: "";
    height: 1.25rem;
    width: 1.25rem;
    left: 0.125rem;
    bottom: 0.125rem;
    background-color: var(--or-rgpd-inputcolor);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input.c-rgpdmodal__withSlider:checked + .is-slider {
    background-color: var(--or-rgpd-color);
}
input.c-rgpdmodal__withSlider[disabled]:checked + .is-slider
{
    filter:brightness(0.5);
}
input.c-rgpdmodal__withSlider:focus + .is-slider {
    box-shadow: 0 0 1px  var(--or-rgpd-color);
}

input.c-rgpdmodal__withSlider:checked + .is-slider:before {
    -webkit-transform: translateX(1.625rem);
    -ms-transform: translateX(1.625rem);
    transform: translateX(1.625rem);
}

@media (max-width: 767px)
{
    
    .c-rgpdmodal.t-show {
        height: 100%;
        height: 100dvh;
        padding: 5vw;
    }

    .c-rgpdmodal.t-show .c-rgpdmodal__container {
        max-width: 90vw;
        padding: 0;
        min-height: 90%;
        min-height: 90dvh;
        justify-content: center;
    }
    
    .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body {
        gap: 5vw;
        justify-content: center;
        align-items: center;
        grid-template-rows: auto auto auto;
        min-height: unset;
        padding: 10vw;
        overflow: auto;
    }
    
    
    .c-rgpdmodal.t-show.is-displayed .c-rgpdmodal__container .c-rgpdmodal__body form .c-rgpdmodal__submitbtns {
        gap: 25px;
    }
    
    .c-rgpdmodal.t-show .c-rgpdmodal__container > div span.rgpd_label,
    .c-rgpdmodal.t-show .c-rgpdmodal__container > div span.c-rgpdmodal__desc {
        padding-right: 10vw;
        padding-top: 4px;
        line-height: 1.3;
    }
    .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form #rgpd-config-block div p .c-rgpdmodal__desc {
        padding-top: 8px;
        padding-right: 10vw;
    }
    .isSafari .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body {
        gap: 0;
        display: block;
    }
    .isSafari .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body > * {
        margin-bottom: 1.5625rem;
    }
    .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body > div p.is-title {font-size: 1.25rem;}
  
    .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body > div.c-rgpdmodal__title { margin-top: 0; }
    
    .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body > div.c-rgpdmodal__introtext > p {font-size: 0.875rem; line-height: 1.6;}
    
    .isSafari .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form {
        display: block;
        gap: 0;
    }
    .isSafari .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form > p {
        margin: 1.875rem 0 ;       
    }
    .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form #rgpd-config-block div p::before
    {
        height: 1.1625rem;
        margin-right: 0;
        margin-top: 0.25rem;
    }

    .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form .c-rgpdmodal__submitbtns {display: flex;flex-direction: column; gap: 1.25rem;}
    .isSafari .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form .c-rgpdmodal__submitbtns {display: block; gap: 0; }
    .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form .c-rgpdmodal__submitbtns > div {flex-grow: 1;display: flex;width: 100%;text-align: center;justify-content: center;}
    .isSafari .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form .c-rgpdmodal__submitbtns > div {margin-bottom: 1.25rem;}
    .isSafari .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form .c-rgpdmodal__submitbtns > div:last-of-type {margin-bottom: 0;}
    
    .c-rgpdmodal input#rgpd-reject, .c-rgpdmodal input#rgpd-selected, .c-rgpdmodal input#rgpd-config {text-align: center;justify-content: center;}
  
    .c-rgpdmodal p,
    .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body > div p,
    .c-rgpdmodal.t-show .c-rgpdmodal__container .c-rgpdmodal__body form #rgpd-config-block div p,
    .c-rgpdmodal input[type="button"] { font-size: 0.875rem; }
}