.calculadora_container {
    display: flex;
    padding: 32px 0;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    background: var(--Color-Background-General-1, #FFF);
}

.calculadora_header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    align-self: stretch;
}

.calculadora_header_titulo {
    color: var(--Color-Content-General-1, #2C2C2C);
    text-align: center;
}

.calculadora_header_subtitulo {
    color: var(--Color-Content-General-1, #2C2C2C);
    text-align: center;
}

.calculadora_body {
    display: flex;
    padding: 16px;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    border-radius: 16px;
    border: 1px solid #C8D9D0;
    background: #FFF;

    @media (min-width: 576px) {
        padding: 24px;
    }
}

.calculadora_body_header_titulo {
    color: var(--Color-Content-General-1, #2C2C2C);
}

.calculadora_body_divider {
    border-bottom: 1px solid #C8D9D0;
    margin-top: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.calculadora_body_header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: stretch;

    @media (min-width: 992px) {
        flex-direction: row;
    }
}

.calculadora_body_header_descuentos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    @media (min-width: 576px) {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    @media (min-width: 992px) {
        align-items: center;
    }
}

.descuentos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.descuento_item_text {
    color: var(--Color-Content-General-1, #2C2C2C);
}

.descuento_item_text_disabled {
    color: var(--Color-Content-Interactive-Disabled, #BFBFBF);
}

.descuentos .discounts-dropdown {
    display: flex;
    height: 24px;
    max-width: 328px;
    padding: 0px;
    align-items: center;
    gap: 2px;
}

.descuentos .discounts-dropdown #offersDropdown {
    display: flex;
    gap: 4px;
    align-items: center;
    color: var(--ibd__color__content__interactive-active);
}

.descuentos .discounts-dropdown #offersDropdown .badge {
    margin: 0;
    padding-top: 2px;
    border: 0;
    border-radius: var(--border-radius-xl);
    background: var(--Color-Content-Interactive-Active);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--Color-Button-Content-Active-1) !important;
}

.wcomselect~.dropdown-menu {
    width: 276px !important;
    transform: none !important;
    right: 0;
    left: auto !important;
    top: 0 !important;
    border-radius: 16px;
    will-change: auto !important;
    max-width: none;
    margin-top: 52px;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    padding: 0;
    overflow: visible;
}

.wcomselect~.dropdown-menu>.dropdown-item {
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
}

.wcomselect~.dropdown-menu>.dropdown-item:active {
    background: #D9F1E3;
}

.wcomselect~.dropdown-menu>.dropdown-item.selected {
    background: #D9F1E3;
}

.wcomselect~.dropdown-menu>.dropdown-item.selected>span {
    color: #2C2C2C;
}

.wcomselect~.dropdown-menu:after {
    content: "";
    position: absolute;
    top: -14px;
    right: 22px;
    width: 0;
    border-bottom: 6px solid #fff;
}

.wcomselect~.dropdown-menu:before {
    content: "";
    position: absolute;
    top: -7px;
    right: 22px;
    width: 0;
    padding: 0px;
    border-bottom: 6px solid #D8CFC7;
}

.wcomselect~.dropdown-menu>.dropdown-item:first-of-type {
    border-radius: 16px 16px 0 0;
}

.wcomselect~.dropdown-menu>.dropdown-item:last-of-type {
    border-radius: 0 0 16px 16px;
}

.wcomselect~.dropdown-menu>.dropdown-item>span {
    padding: 0;
    width: 180px;
    color: #707070;
    font-family: "IberPangea Text", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.badge {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--border-radius-xl);
    background: var(--Color-Content-Interactive-Active);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--Color-Button-Content-Active-1) !important;
}

.dropdown-menu {
    border-radius: var(--border-radius-l, 16px);
    background: var(--Color-Surface-General-1, #FFF);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
    border: none;
}

.radio label {
    padding-left: 4px;
}

.input[type="checkbox"]:not(.ibd-switch)::before {
    background-color: #00A443 !important;
}

input[type="checkbox"]:not(.ibd-switch):disabled:checked::before {
    background-color: #BFBFBF !important;
}

.btnMain-primaryPositive-Filled {
    width: 200px !important;
    margin: auto;
}

.calculadora_body_electricidad {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    align-self: stretch;
}

.calculadora_body_electricidad_header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    align-self: stretch;
}

.calculadora_body_electricidad_header_titulo {
    display: flex;
    align-items: center;
}

.calculadora_body_electricidad_header_titulo span {
    color: var(--Color-Content-General-1, #2C2C2C);
}

.calculadora_body_gas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    align-self: stretch;
}

.calculadora_body_selects {
    display: flex;
    align-items: baseline;
    align-content: flex-start;
    gap: 24px;
    align-self: stretch;
    flex-wrap: wrap;
}

.calculadora_body_selects_item {
    position: relative;
    display: grid;
    flex-direction: column;
    align-items: flex-start;
    /* gap: 8px; */
    width: 100%;








    @media (min-width: 992px) {
        width: auto;
    }
}

.calculadora_body_selects_item_label {
    color: var(--Color-Form-Content-General, rgba(71, 71, 71, 0.80));
    margin-left: 16px;
}

.cal_body_selects_item {

    @media (min-width: 992px) {
        width: 374px;
    }

    @media (min-width: 1200px) {
        width: 299px;
    }

    @media (min-width: 1920px) {
        width: 287px;
    }
}

.calculadora_body_selects_item a {
    color: var(--Color-Button-Content-Active-2, #2F6852);
}

.cal_body_otion_item {
    color: var(--Color-Form-Content-Active, #2C2C2C);
}

.cal_body_selects_dropdown {
    position: absolute;
}

.tabla_precios_resultados {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 32px;
    border-radius: 8px;
    background: var(--Color-Surface-General-3, #F9F9F9);
    width: 100%;

    @media (min-width: 1200px) {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.tabla_precios_resultados_precio {
    display: flex;
    flex-direction: column;
}

.tabla_precios_resultados_descuentos {
    display: flex;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    border: 1px solid var(--Color-Category-General-1, #007ACB);
}

.tabla_precios_resultados_descuentos span {
    color: var(--Color-Category-General-1, #007ACB);
}

.icono_info_resultados {
    width: 24px;
    height: 24px;
}

.tabla_precios_resultados_total_titulo {
    display: flex;
    padding-top: 8px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    position: relative;
}

.tabla_precios_resultados_total_titulo span {
    color: var(--Color-Content-General-1, #2C2C2C);
}

.tabla_precios_resultados_total {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-end;
}

.tabla_precios_resultados_con_descuento {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: flex-end;
}

.tabla_precios_resultados_sin_descuento {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: flex-end;
}

.precio_con_descuento {
    color: var(--Color-Content-General-1, #2C2C2C);
}

.precio_con_descuento_azul {
    color: var(--Color-Category-General-1, #007ACB);

}

.precio_sin_descuento {
    color: var(--Color-Content-Interactive-Disabled, #BFBFBF);
    font-family: IberPangea, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

.precio_sin_descuento_tachado {
    text-decoration-line: line-through;
}

.precio_unidades {
    margin-bottom: 4px;
}

.taixas {
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.taixas_texto {
    color: var(--Color-Content-General-2, rgba(71, 71, 71, 0.80));
}

.cashb {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 8px;
}

.cashb_texto {
    color: var(--Color-Content-General-1, #2C2C2C);
}

#datos_info_bihorario {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    @media (min-width: 1200px) {
        flex-wrap: nowrap;
    }
}

.tabla_precios_datos {
    display: flex;
    align-items: center;
    align-content: center;
    gap: 16px;
    align-self: stretch;
    flex-wrap: wrap;
}

.tabla_precios_datos_item {
    display: flex;
    width: 136px;
    padding: var(--space-0, 0);
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4, 4px);
    height: auto;
}

.tabla_precios_datos_item_titulo {
    color: var(--Color-Content-General-2, rgba(71, 71, 71, 0.80));
}

.tabla_precios_datos_item_valor {
    display: flex;
    align-items: flex-end;
    gap: var(--space-4, 4px);
}

.tabla_precios_datos_item_valor1 {
    color: var(--Color-Content-General-2, rgba(71, 71, 71, 0.80));
    text-align: right;
}

.tabla_precios_datos_item_unidad {
    color: var(--Color-Content-General-2, rgba(71, 71, 71, 0.80));
    text-align: right;
    margin-bottom: 2px;
}

.calculadora_body_docs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.calculadora_body_docs_item {
    display: flex;




    a {
        display: flex;
        align-items: center;
        gap: 4px;

        img {
            width: 24px;
            height: 24px;
        }
    }


    a:hover {
        text-decoration: none;
        color: var(--ibd__color__content__interactive-active)
    }
}

/* CSS Selects*/


/* ===== Variables de tema ===== */
:root {
    --cs-radius: 10px;
    --cs-border-color: #d0d0d0;
    --cs-border: 1px solid var(--cs-border-color);
    --cs-bg: #ffffff;
    --cs-bg-hover: #f7f7f7;
    --cs-bg-active: #eef4ff;
    --cs-text: #222;
    --cs-muted: #666;
    --cs-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    --cs-primary: #4c8bf5;
    --cs-option-hover: #f0f6ff;
}

/* ===== Fallback: tu select nativo si no hay JS ===== */
.calculadora_body_selects_item .cal_body_selects_item {
    width: 100%;
    border: var(--cs-border);
    border-radius: var(--cs-radius);
    background: var(--cs-bg);
    color: var(--cs-text);
}

/* Cuando se mejora con JS ocultamos visualmente el nativo (pero sigue en el DOM) */
.calculadora_body_selects_item .cal_body_selects_item.is-hidden {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ===== Custom Select ===== */

.calculadora_body_selects_item .cs-btn {
    width: 100%;
    height: 48px;
    padding: 8px 16px 8px 9px;
    align-items: self-start;
    border-radius: 100px;
    border: 1px solid #707070;
    background-image: url('/o/iberdrola-pt-theme/images/iconosInputs/Down.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: var(--Color-Form-Content-Active, #2C2C2C);
    background-color: #FFF;
    text-align: left;

    @media (min-width: 992px) {
        width: 374px;
    }

    @media (min-width: 1200px) {
        width: 299px;
    }

    @media (min-width: 1920px) {
        width: 287px;
    }
}

.calculadora_body_selects_item .cs-btn[aria-expanded="true"] {
    background-image: url('/o/iberdrola-pt-theme/images/iconosInputs/Up.svg');
}

.calculadora_body_selects_item .cs-placeholder {
    color: var(--cs-muted);
}

/* Icono flecha */
.calculadora_body_selects_item .cs-icon {
    width: 18px;
    height: 18px;
    pointer-events: none;
    background: center/contain no-repeat url('data:image/svg+xml;utf8,\<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>');
    transition: transform .18s ease, filter .18s ease;
}

.calculadora_body_selects_item .cs[aria-hidden="true"] .cs-icon {
    transform: rotate(180deg);
}

/* Dropdown */
.calculadora_body_selects_item .cs-list {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    margin-top: 8px;
    overflow: visible;
    padding: 0px;
    display: none;
    border-radius: var(--border-radius-l, 16px);
    border: var(--border-width-s, 1px) solid var(--Color-Border-General-1, #C8D9D0);
    background: var(--Color-Form-Surface-General, #FFF);
}

.calculadora_body_selects_item .cs-list::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    border: 8px solid transparent;
    border-bottom-color: #ffffff;
    filter: drop-shadow(0 -1px 0 #C8D9D0);
}


.calculadora_body_selects_item .cs[aria-expanded="true"] .cs-list {
    display: block;

}

.calculadora_body_selects_item .cs[aria-expanded="true"] .cs-list::after {
    opacity: 1;
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    border: 8px solid transparent;
    border-bottom-color: #ffffff;
    filter: drop-shadow(0 -1px 0 #C8D9D0);
}

@keyframes cs-fade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OpciÃƒÆ’Ã‚Â³n */
.calculadora_body_selects_item .cs-opt {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
}

.calculadora_body_selects_item .cs-opt:hover {
    background: #D9F1E3;
}

.calculadora_body_selects_item .cs-opt:first-of-type {
    border-radius: 16px 16px 0 0;
}

.calculadora_body_selects_item .cs-opt:last-of-type {
    border-radius: 0 0 16px 16px;
}

.calculadora_body_selects_item .cs-opt[aria-selected="true"] {
    background: var(--cs-bg-active);
    font-weight: 600;
}

.calculadora_body_selects_item .cs-opt[aria-selected="true"]:first-of-type {
    border-radius: 16px 16px 0 0;
}

.calculadora_body_selects_item .cs-opt[aria-selected="true"]:last-of-type {
    border-radius: 0 0 16px 16px;
}

.calculadora_body_selects_item .cs-opt.is-active {
    background: var(--Color-Green-10, #D9F1E3);
}

.calculadora_body_selects_item .cs-opt[aria-disabled="true"] {
    color: #aaa;
    cursor: not-allowed;
}

/* Check seleccionado (opcional) */
.calculadora_body_selects_item .cs-check {
    width: 24px;
    height: 24px;
    background: center/contain no-repeat url('/o/iberdrola-pt-theme/images/iconosInputs/Check.svg');
    opacity: 0;
    transition: opacity .12s ease;
}

.calculadora_body_selects_item .cs-opt[aria-selected="true"] .cs-check {
    opacity: 1;
}

/* Scrollbar (webkit) */
.calculadora_body_selects_item .cs-list::-webkit-scrollbar {
    width: 10px;
}

.calculadora_body_selects_item .cs-list::-webkit-scrollbar-thumb {
    background: #dcdcdc;
    border-radius: 8px;
}

.info-box {
    display: none;
    position: absolute;
    top: 40px;
    left: -18px;
    width: 280px;
    padding: 16px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--Color-Semantic-Info-1, #007ACB);
    background: var(--Color-Surface-General-1, #FFF);
    z-index: 1;
}

.info-box span {
    color: var(--Color-Content-General-2, rgba(71, 71, 71, 0.80));
}

.info-box-precios {
    height: 125px;
    align-self: stretch;
    border-radius: 8px;
    margin-top: 8px;
}

.info-box::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    border: 8px solid transparent;
    border-bottom-color: #ffffff;
    filter: drop-shadow(0 -1px 0 #007ACB);
}

.is-hidden {
    display: none !important;
}

.icono_info_resultados_hidden {
    border-radius: 100px;
    border: var(--border-width-l, 2px) solid var(--Color-Border-Interactive-Focus, #007ACB);
}

.descuento_cashback {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.calculadora_body_selects_item_label_input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.calculadora_body_selects_item_label_input-wrapper input {
    padding-right: 50px;
    /* Espacio para el texto kWh */
    width: 100%;
}

.input-suffix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    /* Para que no interfiera con el input */
    color: #666;
    /* Color del texto */
}

#idConsumoPersonalizadoDiv,
#idConsumoPersonalizadoDivForza,
#idConsumoPersonalizadoDivVazio,
#idConsumoPersonalizadoGasDiv {
    width: 100%;

    @media (min-width: 992px) {
        width: 374px;
    }

    @media (min-width: 1200px) {
        width: 299px;
    }

    @media (min-width: 1920px) {
        width: 287px;
    }
}

#portlet_com_iberdrola_liferay_tablaprecios_pt_IbdTablaPreciosMvcPtPortlet_INSTANCE_precios_art_tablaPrecios1:hover .portlet-topper {
    display: none !important;
}

#portlet_com_iberdrola_liferay_tablaprecios_pt_IbdTablaPreciosMvcPtPortlet_INSTANCE_precios_art_tablaPrecios2:hover .portlet-topper {
    display: none !important;
}

#portlet_com_iberdrola_liferay_tablaprecios_pt_IbdTablaPreciosMvcPtPortlet_INSTANCE_precios_art_tablaPrecios3:hover .portlet-topper {
    display: none !important;
}