:root {
    --form-control-disabled: #0F216F;
    --border-color: #0F216F;
    --dp-color: #0F216F;
    --dp-secondary-color: #0F216F;
}

.dp-comparator-container {
    position: relative;
    margin-bottom: 10px;
}

.hidden,
html .clearfix.hidden {
    display: none !important;
    clear: none;
}

.dp-inner-container {
    background: #efefef;
}

.dp-comparator-container.with-filter .dp-inner-container {
    margin-top: -80px;
    padding-top: 70px;
}

.w-12 {
    width: 100%;
}

.boxs {
    padding: 20px 0;
}

.box-parent {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    /* Spazio tra colonne */
    position: relative;
    max-width: 1026px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    /* Colore di sfondo */
    border-radius: 8px;
    /* Angoli arrotondati */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* Ombra per il contenitore */
}

.box-parent .box-parent-value {
    position: absolute;
    left: -6px;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 34px;
    text-align: center;
}

.box-parent .box-title,
.box-parent .box-subtitle,
.box-parent .box-list li {
    font-family: 'Open Sans', sans-serif;
    color: #212427;
}

.box-parent .box-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 27px;
    margin-bottom: 4px;
}

.box-parent .box-subtitle {
    font-size: 16px;
    font-weight: 600;
    line-height: 21.9px;
    margin-bottom: 20px;
}

.box-parent .box-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.box-parent .box-list ul {
    padding-right: 40px;
}

.box-parent .box-list li {
    position: relative;
    padding-left: 34px;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 12px;
}

.box-parent .box-list li::before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background-image: url(../../images/check.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

.box-parent .box-button-parent {
    display: flex;
    align-items: start;
}

.box-parent .box-button {
    display: inline-flex;
    align-items: center;
    background-color: #73b52d;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    /* white-space: nowrap; */
    text-transform: uppercase;
    padding: 16px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 20px;
}

.box-parent .box-button-icon {
    font-size: 20px;
    line-height: 0;
    padding-left: 0.5em;
}

.box-parent .box-button-icon svg {
    height: 1em;
    width: 1em;
    fill: #fff;
}

.box-parent .fast-repayment-text {
    position: absolute;
    width: 157px;
    height: 40px;
    left: -8px;
    top: 10px;
    background: #0F216F;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 32px;
    color: #EFEFEF;
    text-align: center;
    padding-top: 3px;
}

@media (min-width:1024px) {
    .hide-on-desktop {
        display: none;
    }

    .box-parent .box-column:first-of-type {
        width: 20%;
        padding-right: 40px;
    }

    .box-parent .box-column.dp-description {
        width: 45%;
    }

    .box-parent .box-column:nth-last-of-type(2) {
        width: 15%;
    }

    .box-parent .box-column:last-of-type {
        width: 20%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hide-on-tablet {
        display: none;
    }
}

@media (max-width:1024px) {
    .box-parent {
        flex-wrap: wrap;
        border-radius: 8px;
        padding: 40px 30px 20px;
        flex-direction: column;
        gap: 0;
    }

    .box-parent .box-image {
        margin-bottom: 20px;
        text-align: left;
    }

    .box-parent-value {
        top: 50%;
        transform: translateY(-50%);
        left: -5px;
        font-size: 16px;
        line-height: 20px;
    }
}

@media (max-width:767px) {
    .filters-box {
        padding: 20px;
        border-radius: 10px;
    }

    .hide-on-mobile {
        display: none;
    }

    .dp-h1-title {
        margin-top: 5px !important;
    }

    .box-parent {
        margin-top: 10px;
    }

    .box-parent .fast-repayment-text {
        border-radius: 8px;
        top: 8px !important;
        right: 8px;
        left: unset !important;
    }

    .box-parent .box-column:last-of-type {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .box-parent .box-column:nth-last-of-type(2) {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .box-parent .box-button-parent {
        width: 100%;
    }

    .box-parent .box-button {
        margin-left: 0px;
        margin-top: 10px;
        padding: 18px 0;
        width: 100%;
        justify-content: center;
        border-radius: 8px;
    }

    .box-parent .box-image img {
        width: 100px;
        max-height: 60px;
    }

    .box-parent .box-subtitle {
        border-bottom: 1px solid #DDDDDD;
        padding-bottom: 20px;
        font-family: Roboto, sans-serif;
        font-weight: 400;
    }

    .box-parent::before {
        font-size: 18px;
        line-height: 22px;
        width: 24px;
        height: 24px;
        left: -12px;
        top: 42px;
        padding-top: 1px;
    }

    .box-bottom,
    .box-bottom2 {
        width: 100%;
    }

    .col-img {
        gap: 0px !important;
        /* Rimuove il gap specificamente sui dispositivi mobili */
    }
}

@media (max-width:400px) {
    .filters-icon {
        color: #0f216f;
    }

    .box-parent .box-button {
        font-size: 14px;
    }

    .box-parent {
        padding: 30px 30px 20px;
    }
}

.filters-box {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    min-height: 148px;
    width: 100%;
    padding: 0 32px;
    margin: 30px auto;
    max-width: 1014px;
    box-shadow: 0 0 11px rgba(0, 0, 0, 0.22);
}

.dp-comparator-card .filters-box {
    max-width: 100%;
}

.filters-box span.filters-title {
    font-size: 20px;
    line-height: 20px;
    font-weight: 600;
    color: #171717;
    margin: 0;
    text-align: left;
    display: block;
    width: 100%;
}

.filters-box .filters-partner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin-top: 20px;
}

.filters-box .filters-partner .select {
    width: 49%;
    margin-bottom: 2px;
}

.filters-box span.select-dropdown {
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    color: #0F216F;
}

.select-dropdown {
    position: relative;
    display: inline-block;
    max-width: 100%;
    width: 33%;
}

.select-dropdown__button {
    padding: 10px 35px 10px 15px;
    background-color: #fff;
    color: #616161;
    border: 1px solid #0F216F;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.select-dropdown__list {
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow: auto;
    margin: 0;
    padding: 0;
    border: 1px solid #cecece;
    border-top: 0;
    list-style-type: none;
    opacity: 0;
    pointer-events: none;
    transform-origin: top left;
    transform: scale(1, 0);
    transition: all ease-in-out 0.3s;
    z-index: 2;
}

.select-dropdown__list-item {
    display: block;
    padding: 10px 15px;
    background: #fff;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    cursor: pointer;
    color: #171717;
    text-align: left;
    transition: all ease-in-out 0.3s;
}

.select-dropdown__list-item:hover {
    background-color: #f5f6f7;
}

.dp-subfilter-box {
    width: 100%;
    text-align: center;
    padding: 50px;
}

.dp-loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.dp-loading div {
    display: inline-block;
    position: absolute;
    left: 8px;
    width: 16px;
    background: #8aa3c6;
    animation: dp-loading 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.dp-loading div:nth-child(1) {
    animation-delay: -0.24s;
}

.dp-loading div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}

.dp-loading div:nth-child(3) {
    left: 56px;
    animation-delay: 0;
}

@keyframes dp-loading {
    0% {
        top: 8px;
        height: 64px;
    }

    50%,
    100% {
        top: 24px;
        height: 32px;
    }
}

.dp-comparator-container.one-row .box-parent::before {
    display: none;
}

.dp-comparator-container.one-row .dp-inner-container {
    background: transparent;
}

.filters-box.hide-on-desktop {
    display: flex;
    flex-direction: row;
    padding: 20px;
    align-items: center;
    width: auto;
}

.filters-box.hide-on-desktop .filters-title {
    font-size: 18px;
}

p.outset {
    border-bottom: 3px solid #d9d9d9;
}

.box-bottom,
.box-bottom2 {
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background-color: #e8f5e9;
    /* Colore di sfondo per enfatizzare il contenuto */
    padding: 10px;
    margin-bottom: 10px;
}

.box-bottom2 {
    color: #c26e40;
    background-color: #fff5e8;
}

.col-img {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 200px;
    /* Spazio tra elementi dell'immagine per desktop */
}

.bottom-icon {
    width: 40%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.icon1,
.icon2 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    border-radius: 4px;
    background: #eeeded;
}

.icon1 {
    width: 35%;
}

.icon2 {
    width: 25%;
}

.up-text {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    border: solid 1px #00000050;
    padding: 5px;
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 18px;
    margin-top: 18px;
}

.up-text svg {
    border-left: solid 1px #b9b5b5;
    padding-left: 5px;
}

.clone-dp-row {
    display: none;
}

/*
 * Select
 */

.filters-partner .select {
    position: relative;
    display: inline-block;
    width: 100%;
    color: #0F216F;
    max-height: 44px;
}

.filters-partner .select select {
    display: inline-block;
    width: 100%;
    margin: 0;
    padding: .5rem 2.25rem .5rem 1rem;
    line-height: 1.5;
    color: #0F216F;
    background-color: #f9f9f9;
    border: 0;
    font-weight: bold;
    border-bottom: 3px solid;
    border-radius: 0;
    cursor: pointer;
    outline: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Undo the Firefox inner focus ring */
.filters-partner .select select:focus:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}

/* Dropdown arrow */
.filters-partner .select:after {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    display: inline-block;
    content: "";
    width: 0;
    height: 0;
    margin-top: -.15rem;
    pointer-events: none;
    border-top: .35rem solid;
    border-right: .35rem solid transparent;
    border-bottom: .35rem solid transparent;
    border-left: .35rem solid transparent;
}

/* Hover state */
/* Uncomment if you need it, but be aware of the sticky iOS states.
.select select:hover {background-color: #ddd;}
*/

/* Focus */
.select select:focus {}

/* Active/open */
.select select:active {}

/* Hide the arrow in IE10 and up */
.select select::-ms-expand {
    display: none;
}

/* Media query to target Firefox only */
@-moz-document url-prefix() {

    /* Firefox hack to hide the arrow */
    .select select {
        text-indent: 0.01px;
        text-overflow: '';
        padding-right: 1rem;
    }

    /* <option> elements inherit styles from <select>, so reset them. */
    .select option {
        background-color: white;
    }
}

/* IE9 hack to hide the arrow */
@media screen and (min-width:0\0) {
    .select select {
        z-index: 1;
        padding: .5rem 1.5rem .5rem 1rem;
    }

    .select:after {
        z-index: 5;
    }

    .select:before {
        position: absolute;
        top: 0;
        right: 1rem;
        bottom: 0;
        z-index: 2;
        content: "";
        display: block;
        width: 1.5rem;
        background-color: #eee;
    }

    .select select:hover,
    .select select:focus,
    .select select:active {
        color: #555;
        background-color: #eee;
    }
}

/* Tom Select */
.ts-wrapper.single,
.ts-wrapper.single.input-active {
    max-height: 44px;
    display: inline-block;
    width: 100%;
    margin: 0;
    line-height: 1.5;
    color: #0F216F;
    background-color: #f9f9f9;
    border: 0;
    font-weight: bold;
    border-bottom: 3px solid;
    border-radius: 0;
    cursor: pointer;
    outline: 0;
    font-size: 17px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ts-control,
.ts-wrapper.single .ts-control,
.ts-wrapper.single.input-active .ts-control {
    background: transparent;
    border: 0;
    font-size: 17px;
    border-radius: 0;
    height: 44px;
    padding: 0.7rem 2.25rem 0.7rem 1rem;
}

.ts-dropdown [data-selectable].option {
    font-size: 17px;
    padding: 0.7rem 2.25rem 0.7rem 1rem;
}

.ts-control .item {
    width: 100%;
}

.ts-dropdown-content img.me-2,
.ts-control img.me-2 {
    max-height: 21px;
    width: fit-content;
    margin-right: 0.5rem !important;
    vertical-align: middle;
}

.ts-wrapper.single .ts-control input {
    height: 0;
}

.select label {
    position: absolute;
    z-index: 2;
    font-size: 10px;
    color: black;
    left: 1rem;
    top: 2px;
}

.select.with-label .ts-wrapper.single,
.select.with-label .ts-wrapper.single.input-active {
    max-height: 50px;
}

.select.with-label .ts-control,
.select.with-label .ts-wrapper.single .ts-control,
.select.with-label .ts-wrapper.single.input-active .ts-control {
    height: 50px;
    padding: 1.2rem 2.25rem 0 1rem;
}

/* filters modal */
.overlay-header {
    background-color: var(--dp-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 13px;
    color: white;
    margin-bottom: -20px;
    text-align: left !important;
}

.overlay-header span {
    position: absolute;
    right: 10px;
    font-weight: bold;
    font-size: 0.95rem;
}

#overlay {
    transition: background-color 0.3s ease-out;
    background-color: rgba(34, 34, 34, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
}

#overlay.overlay-hidden {
    background-color: rgba(0, 0, 0, 0);
    display: block;
    pointer-events: none;
}

#filtersModal {
    transition: transform 0.3s ease-out;
    transform: translateY(100%);
    bottom: 0;
    position: fixed;
    z-index: 9999;
    overflow-y: auto;
    max-height: 80vh;
    width: 100%;
    background: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#filtersModal.modal-visible {
    transform: translateY(0%);
}

#filtersModal #dp-filter-form {
    width: 100%;
    padding: 1.5rem;
    padding-top: 2rem;
    min-height: 400px;
}

#filtersModal .filters-partner {
    background: white;
}

#filtersModal .filters-partner .select {
    max-height: initial;
    margin-bottom: 1.5rem;
}

#filtersModal .filters-partner .select:after {
    bottom: 20%;
    top: auto;
}

#filtersModal .filters-partner .select label {
    position: relative;
    font-size: inherit;
    left: 0;
    top: 0;
}

#filtersModal .select.with-label .ts-control,
.select.with-label .ts-wrapper.single .ts-control,
.select.with-label .ts-wrapper.single.input-active .ts-control {
    padding: 1rem;
}

.filters-box.hide-on-desktop {
    display: flex;
    flex-direction: row;
    padding: 20px;
    align-items: center;
    width: auto;
}

.filters-box.hide-on-desktop .filters-title {
    font-size: 18px;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-info p {
    margin: 0;
    font-size: 14px;
}

.price-info strong {
    color: #e74c3c;
    text-transform: uppercase;
    font-size: 16px;
}