/**********************************************************************************************************************/
/*
/*                                      ESTILOS GENERALES
/*
***********************************************************************************************************************/
#happymami-product-selector {
    text-align: center;
}

#happymami-product-selector,
#happymami-product-selector button,
#happymami-product-selector input,
#happymami-product-selector select,
#happymami-product-selector textarea,
#happymami-sidebar,
#happymami-sidebar button,
#happymami-sidebar input,
#happymami-sidebar select,
#happymami-sidebar textarea,
.happymami-sidebar-ui,
.sidebar-footer {
    --hm-font-body: "Euclid Circular B Regular", Sans-serif;
    --hm-font-title: "Euclid Circular B Regular", Sans-serif;
    font-family: var(--hm-font-body) !important;
}

#happymami-product-selector h1,
#happymami-product-selector h2,
#happymami-product-selector h3,
#happymami-product-selector h4,
#happymami-product-selector h5,
#happymami-product-selector h6,
#happymami-product-selector .title,
#happymami-product-selector .happymami-purchase-mode-option__title,
#happymami-sidebar h1,
#happymami-sidebar h2,
#happymami-sidebar h3,
#happymami-sidebar h4,
#happymami-sidebar h5,
#happymami-sidebar h6,
#happymami-sidebar .title,
.happymami-sidebar-ui h1,
.happymami-sidebar-ui h2,
.happymami-sidebar-ui h3,
.happymami-sidebar-ui h4,
.happymami-sidebar-ui h5,
.happymami-sidebar-ui h6,
.sidebar-footer h1,
.sidebar-footer h2,
.sidebar-footer h3,
.sidebar-footer h4,
.sidebar-footer h5,
.sidebar-footer h6 {
    font-family: var(--hm-font-title) !important;
}

/**********************************************************************************************************************/
/*
/*                                      ESTILOS BÁSICOS DE WOOCOMMERCE
/*
***********************************************************************************************************************/

/* Ocultando secciones básicas */
table.variations {
    display: none;
}
.woocommerce-variation-price {
    display: none;
}

/* Ocultar los : vacíos en el carrito cuando el name está vacío */
.woocommerce-cart-form dl.variation dt.variation-:empty,
.woocommerce-cart-form dl.variation dt.variation-:only-child,
dl.variation dt.variation- {
    display: none;
}
dl.variation dd.variation- {
    margin-left: 0;
    padding-left: 0;
}
dl.variation dd.variation- p {
    margin: 0;
}

.single_add_to_cart_button {
    display: none;
}

.qty, .e-atc-qty-button-holder .qty {
    padding: 1rem 10px !important;
    border: 2px solid #ccc !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    outline: none !important;
    width: 100px !important;
    height: 57px !important;
    margin-bottom: 1rem;
}

/**********************************************************************************************************************/
/*
/*                                      ESTILOS PROPIOS BUNDLER
/*
***********************************************************************************************************************/

/* Mejora de estilos */
.selector-container {
    padding: 0;
}

.variant-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variant-list li {
    border: 2px solid #D0D5DD;
    padding: 20px 40px;
    cursor: pointer;
    border-radius: 20px;
    font-weight: bold;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: .2rem;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
    transition: all .2s ease;
    --hm-selector-radius: 20px;
}

.variant-list li:hover, .variant-list li.active {
    background: #fbfbfb;
    border: 2px solid #f49e9e;
}

.variant-list li.hm-has-lower-badge {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 8px;
    padding-bottom: 50px;
}

.variant-list li.hm-has-top-badge {
    justify-content: flex-start;
    gap: 10px;
}

.variant-list li .happymami-selector-top-badge {
    position: absolute;
    right: 50px;
    top: -14px;
    z-index: 3;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    line-height: 1.15;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
}

.variant-list li .happymami-selector-lower-badge {
    display: block;
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: -2px;
    width: auto;
    flex-basis: auto;
    margin: 0;
    padding: 8px 12px;
    border-top: 0;
    border-left: 2px solid var(--hm-lower-badge-border-color, transparent);
    border-right: 2px solid var(--hm-lower-badge-border-color, transparent);
    border-bottom: 2px solid var(--hm-lower-badge-border-color, transparent);
    border-radius: 0 0 19px 19px;
    font-size: 0.8rem;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
    z-index: 2;
}

.variant-list li small {
    position: absolute;
    right: 50px;
    top: -9px;
    color: #fff;
    padding: 2px 10px;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 600;
}
    .variant-list li small.red {
        background-color: #773232;
    }
    .variant-list li small.grey {
        background-color: #FF4363;
    }


.variant-list li .title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
}

.variant-list li .happymami-selector-title-text {
    display: block;
    width: 100%;
}

.variant-list li .description,
.variant-list li .happymami-selector-subtitle {
    display: block;
    width: 100%;
    margin-top: 2px;
    color: #667085;
    font-size: .8rem;
    font-weight: 400;
    line-height: 1.35;
    font-family: var(--hm-font-body) !important;
}

.variant-list li .price {
    margin-left: auto;
    text-align: center;
}

.variant-list li .price .regular-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
    font-size: .9rem;
}
.variant-list li .price .sale-price, .variant-list li .price .base-price {
    font-size: 1.2rem;
}

.variant-list li.side::after {
    content: '\203A'; /* › flecha simple */
    position: absolute;
    right: 1em;
    top: 50%; transform: translateY(-50%);
    font-size: 1.2rem;
    color: #ccc;
    transition: color .2s;
}

.variant-list li:hover::after {
    color: #FF4262;
}

.happymami-purchase-mode-block {
    margin: 16px 4px 12px;
    padding-top: 4px;
}

.happymami-purchase-mode-heading {
    display: block;
    margin: 0 0 10px;
    text-align: center;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    letter-spacing: normal;
}

.happymami-purchase-mode-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    align-items: stretch;
}

.happymami-purchase-mode-option {
    position: relative;
    flex: 1 1 0;
    display: grid !important;
    grid-template-columns: 22px 1fr !important;
    grid-template-rows: auto auto 1fr !important;
    column-gap: 10px !important;
    row-gap: 6px;
    align-items: start;
    border: 2px solid #d0d5dd;
    border-radius: 20px;
    background: #ffffff;
    color: #222222;
    padding: 16px 18px 14px !important;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.happymami-purchase-mode-option::before {
    content: '';
    width: 22px;
    height: 22px;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center;
    margin-top: 0;
    border-radius: 50%;
    border: 2px solid #d0d5dd;
    box-sizing: border-box;
    background: #fff;
    box-shadow: inset 0 0 0 0 #f49898;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.happymami-purchase-mode-option:hover {
    background: #fbfbfb;
    border-color: #f49e9e;
}

.happymami-purchase-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.happymami-purchase-mode-option__radio {
    display: none;
}

.happymami-purchase-mode-option__content {
    display: block !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    align-self: start;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.happymami-purchase-mode-option__title {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1f1f1f;
}

.happymami-purchase-mode-option__price {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end;
    align-self: center;
    display: flex !important;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

.happymami-purchase-mode-option__price-current {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f1f1f;
}

.happymami-purchase-mode-option__price-old {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ff3f57;
    text-decoration: line-through;
}

.happymami-purchase-mode-option__details {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    margin: 0;
    padding: 0;
    width: 100%;
}

.happymami-purchase-mode-option__toggle {
    display: inline-block;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f49898;
    list-style: none;
    padding: 0;
    margin: 0;
    user-select: none;
}

.happymami-purchase-mode-option__toggle::-webkit-details-marker {
    display: none;
}

.happymami-purchase-mode-option__toggle::marker {
    display: none;
    content: '';
}

.happymami-purchase-mode-option__details[open] .happymami-purchase-mode-option__toggle {
    margin-bottom: 6px;
}

.happymami-purchase-mode-option__benefits {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    color: #2f2f2f;
    font-size: 0.74rem;
    line-height: 1.2;
    overflow: hidden;
    animation: hm-benefits-open .3s ease forwards;
}

.happymami-purchase-mode-option__details:not([open]) .happymami-purchase-mode-option__benefits {
    animation: none;
}

@keyframes hm-benefits-open {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 300px;
        opacity: 1;
    }
}

@keyframes hm-benefits-close {
    from {
        max-height: 300px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

.happymami-purchase-mode-option__benefits-placeholder {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
}

.happymami-purchase-mode-option__benefits li {
    position: relative;
    padding-left: 14px;
    margin: 0 0 3px;
}

.happymami-purchase-mode-option__benefits li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #141414;
}

.happymami-purchase-mode-option.is-highlight {
    background: #ffffff;
}

.happymami-purchase-mode-option__badge {
    position: absolute;
    top: -8px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background: #7bcf73;
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 18px;
    min-width: 132px;
    text-align: center;
    white-space: nowrap;
    font-size: 0.58rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.happymami-purchase-mode-option input[type="radio"]:checked + .happymami-purchase-mode-option__radio {
    border-color: #f49898;
    box-shadow: inset 0 0 0 6px #f49898;
}

.happymami-purchase-mode-option input[type="radio"]:checked + .happymami-purchase-mode-option__radio + .happymami-purchase-mode-option__content .happymami-purchase-mode-option__title {
    color: #1f1f1f;
}

.happymami-purchase-mode-option:has(input[type="radio"]:checked) {
    border-color: #f49898;
    box-shadow: 0 8px 20px rgba(244, 152, 152, 0.16);
    background: #fffdfd;
}

.happymami-purchase-mode-option:has(input[type="radio"]:checked)::before {
    border-color: #f49898;
    box-shadow: inset 0 0 0 6px #f49898;
}

@media (max-width: 768px) {
    .happymami-purchase-mode-heading {
        margin-bottom: 8px;
    }

    .happymami-purchase-mode-options {
        gap: 8px;
    }

    .happymami-purchase-mode-option {
        border-radius: 20px;
        padding: 14px;
    }

    .happymami-purchase-mode-option__content {
        min-width: 0;
    }

    .happymami-purchase-mode-option__title {
        font-size: 0.9rem;
    }

    .happymami-purchase-mode-option__badge {
        min-width: 124px;
        font-size: 0.54rem;
        padding: 4px 16px;
    }

    .happymami-purchase-mode-option__price {
        justify-self: end;
        align-self: start;
    }

    .happymami-purchase-mode-option__price-current {
        font-size: 0.86rem;
    }

    .happymami-purchase-mode-option__price-old {
        font-size: 0.74rem;
    }

    .happymami-purchase-mode-option__benefits {
        font-size: 0.69rem;
    }

    .happymami-purchase-mode-option__benefits-placeholder {
    }

    .happymami-purchase-mode-option__benefits li {
        padding-left: 12px;
    }
}

@media (max-width: 768px) {
    .variant-list li {
        padding: 20px 20px;
    }
    .variant-list li .title {
        font-size: 1rem;
    }
}

/* Legacy selector style: uniform pill-shaped items, no lower badge space */
#happymami-product-selector.hm-bottle-selector-style-legacy .variant-list li {
    border-radius: 999px;
    padding: 16px 40px;
    min-height: 0;
}
#happymami-product-selector.hm-bottle-selector-style-legacy .variant-list li.hm-has-lower-badge {
    padding-bottom: 16px;
    flex-wrap: nowrap;
}

/* New Happymami selector style (radio + inline expanded panel) */
#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list {
    gap: 14px;
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li {
    border-radius: 20px;
    padding: 16px 18px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    --hm-selector-radius: 20px;
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li.hm-has-lower-badge {
    align-items: center;
    padding-bottom: 44px;
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li.hm-has-lower-badge .happymami-selector-lower-badge {
    margin-top: 0;
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li::before {
    content: '';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d0d5dd;
    box-sizing: border-box;
    flex-shrink: 0;
    background: #fff;
    box-shadow: inset 0 0 0 0 #f49898;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li .title {
    flex: 1;
    min-width: 170px;
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li .title > small,
#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li .title > span,
#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li .title > div,
#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li .price,
#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li .price *,
#happymami-product-selector.hm-bottle-selector-style-new_happymami .happymami-regalar-heading,
#happymami-product-selector.hm-bottle-selector-style-new_happymami .happymami-regalar-heading *,
#happymami-sidebar,
#happymami-sidebar * {
    font-family: "Euclid Circular B Regular", "Euclid Circular B", sans-serif !important;
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li .price {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li > svg {
    width: 20px;
    height: 20px !important;
    margin-left: auto;
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li.active,
#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li.hm-selector-open {
    border-color: var(--hm-selector-border-color, #f49898);
    box-shadow: 0 8px 20px var(--hm-selector-border-shadow, rgba(244, 152, 152, 0.16));
    background: #fffdfd;
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li.active::before,
#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li.hm-selector-open::before {
    border-color: var(--hm-selector-radio-color, #f49898);
    box-shadow: inset 0 0 0 6px var(--hm-selector-radio-color, #f49898);
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li.hm-selector-open > svg {
    transform: rotate(90deg);
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .hm-selector-panel {
    display: none;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}

@keyframes hm-selector-panel-reveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li.hm-selector-open > .hm-selector-panel,
#happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li.active > .hm-selector-panel {
    display: block;
    animation: hm-selector-panel-reveal .22s ease;
}

#happymami-product-selector.hm-bottle-selector-style-new_happymami .hm-selector-panel-body {
    width: 100%;
    padding-bottom: 0;
}

body.hm-inline-selector-open #happymami-product-selector.hm-bottle-selector-style-new_happymami .happymami-sidebar-ui h3,
body.hm-inline-selector-open #happymami-product-selector.hm-bottle-selector-style-new_happymami .happymami-sidebar-ui h4,
body.hm-inline-selector-open #happymami-product-selector.hm-bottle-selector-style-new_happymami .happymami-sidebar-ui .image-preview {
    display: none !important;
}

body.hm-inline-selector-open #happymami-product-selector.hm-bottle-selector-style-new_happymami .happymami-sidebar-ui {
    margin-top: 0;
}

body.hm-inline-selector-open #happymami-product-selector.hm-bottle-selector-style-new_happymami .set2-second-toggle {
    width: 100%;
    display: block;
    text-align: left;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6b3c3c;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 0;
    margin: 2px 0 8px;
    cursor: pointer;
    box-shadow: none;
    outline: 0;
}

body.hm-inline-selector-open #happymami-product-selector.hm-bottle-selector-style-new_happymami .set2-second-toggle.is-open {
    background: transparent;
}

body.hm-inline-selector-open #happymami-product-selector.hm-bottle-selector-style-new_happymami .set2-second-toggle:hover,
body.hm-inline-selector-open #happymami-product-selector.hm-bottle-selector-style-new_happymami .set2-second-toggle:focus,
body.hm-inline-selector-open #happymami-product-selector.hm-bottle-selector-style-new_happymami .set2-second-toggle:active {
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: 0;
}

body.hm-inline-selector-open #happymami-product-selector.hm-bottle-selector-style-new_happymami .set2-second-options {
    overflow: hidden;
}

body.hm-inline-selector-open #happymami-sidebar .sidebar-footer.hm-inline-floating-footer button,
body.hm-inline-selector-open .sidebar-footer.hm-inline-floating-footer button {
    width: 100%;
    border-radius: 999px;
    min-height: 50px;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 768px) {
    #happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li {
        border-radius: 20px;
        padding: 14px;
    }

    #happymami-product-selector.hm-bottle-selector-style-new_happymami .variant-list li .title {
        min-width: 140px;
    }
}

/**********************************************************************************************************************/
/*
/*                                      ESTILOS PROPIOS SIDEBAR
/*
***********************************************************************************************************************/

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    transition: right 0.2s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar.visible {
    right: 0;
}

.sidebar-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: .8rem;
}

.sidebar-footer {
    padding: 20px;
    border: none;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.06);
    background: #fffbf8;
}

.sidebar-footer button {
    width: 100%;
    padding: 14px 20px;
    background-color: #f49898 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 25px;
    font-family: "Euclid Circular B Regular", Sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.15rem !important;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.sidebar-footer button .price:not(:empty)::before {
    content: " - ";
}
    .sidebar-footer button:disabled {
        background-color: #F8C8C7;
    }

.sidebar-content .product-image {
    max-width: 120px;
    max-height: 160px;
}

.happymami-sidebar-ui {
    height: 100%;
    overflow-y: scroll;
}

@media screen and (max-width: 768px) {
    .happymami-sidebar-ui {
        overflow-y: scroll;
    }
        .happymami-sidebar-ui li {
            width: 100%;
            padding: 0;
        }
}

/****** Estilos de Botones ******/
.happymami-sidebar-ui h3{
    color: #f49898;
    font-size: 1.5rem;
    text-align: center;
}
.happymami-sidebar-ui h4{
    color: #384048;
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.happymami-sidebar-ui .sidebar-row {
    margin: .5rem 0;
    display: flex;
    align-items: center;
}

.happymami-sidebar-ui .image-preview {
    text-align: center;
    margin: .5rem 0;
}

.happymami-sidebar-ui .color-container {
    display: flex;
}

.happymami-sidebar-ui .components {
    display: flex;
    align-items: center;
    justify-content: center;
}

.happymami-sidebar-ui .bottle-sizes, .happymami-sidebar-ui .teat-flows {
    display: flex;
    gap: .3rem;
}

/* Estilos globales para contenedores de flujos y tamaños (fuera del sidebar) */
.bottle-sizes, .teat-flows {
    display: flex;
    gap: .3rem;
}

.happymami-sidebar-ui label {
    display: block;
    font-weight: bold;
    min-width: 70px;
    margin: 0;
}

.happymami-sidebar-ui .happymami-sidebar-description {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fdf1f4 0%, #f7e6ea 100%);
    color: #8a3e4f;
    font-family: var(--hm-font-body) !important;
    font-size: 15px;
    line-height: 1.45;
}

.happymami-sidebar-ui .happymami-sidebar-description > :first-child {
    margin-top: 0;
}

.happymami-sidebar-ui .happymami-sidebar-description > :last-child {
    margin-bottom: 0;
}

.happymami-sidebar-ui .happymami-sidebar-description p,
.happymami-sidebar-ui .happymami-sidebar-description ul,
.happymami-sidebar-ui .happymami-sidebar-description ol {
    margin: 0 0 10px;
}

.happymami-sidebar-ui .happymami-sidebar-description strong,
.happymami-sidebar-ui .happymami-sidebar-description b {
    color: #773232;
    font-weight: 700;
}

.happymami-sidebar-ui button {
    border: 2px solid #D0D5DD;
	border-radius: 30px;
    padding: 0.25rem 0.75rem;
    margin: 2.5px;
    cursor: pointer;
    font-size: .8rem;
}
.happymami-sidebar-ui button:focus, .happymami-sidebar-ui button:hover {
    border-color: #F49696 !important;
    background-color: transparent !important;
    color: black;
}
.happymami-sidebar-ui button.active {
    border-color: #F49696 !important;
    background-color: transparent !important;
    color: black;
    box-shadow: 0 0 0 1px #F49696 !important;
}

/****** CIRCULOS DE COLORES ******/
.happymami-product-color-container .color-container .color-selector {
    border-radius: 50px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 .8rem;
    cursor: pointer;
}
.happymami-product-color-container .color-container .color-selector:not(.active) {
    background-color: transparent !important;
}
.happymami-product-color-container .color-container .color-selector .color-bkg {
    border-radius: 50px;
    font-size: 0rem;
    border: 2px solid #fff;
    margin: 0;
    height: 38px;
    width: 38px;
    overflow: hidden;
}
.quantity{
    display: block;
}
.e-atc-qty-button-holder {
    margin-top: 1rem;
}

.happymami-bottle-attributes,
.happymami-color-attributes {
    clear: both;
    position: relative;
    z-index: 1;
}

.happymami-product-gallery,
.happymami-product-gallery .image-top-container,
.happymami-product-gallery .slider-container {
    position: relative;
    z-index: 2;
}

.happymami-product-gallery .image-top-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 80%;      /* 80% of viewport width */
        max-width: none; /* remove fixed max */
    }
}

/* FLUIJOS */
.flow-selector, .attr-selector {
    gap: 5px;
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.attr-selector label {
    max-width: 160px;
    width: 160px;
}

.happymami-regalar-heading {
    margin: 0 0 1.25rem;
    text-align: center;
}

.happymami-regalar-heading__title {
    margin: 0 0 0.4rem;
    color: #773232;
    font-family: var(--hm-font-title) !important;
    font-size: 30px;
    line-height: 1.08;
    font-weight: 600;
}

#happymami-product-selector .happymami-regalar-heading .happymami-regalar-heading__title,
#happymami-product-selector.hm-bottle-selector-style-new_happymami .happymami-regalar-heading .happymami-regalar-heading__title {
    margin-top: 20px !important;
}

.happymami-regalar-heading__subtitle {
    margin: 0;
    color: #3A4249;
    font-family: var(--hm-font-body) !important;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
}

.happymami-regalar-size-selector {
    display: none;
}

#happymami-product-selector.hm-regalar-show-size .happymami-regalar-size-selector,
.happymami-regalar-size-selector.happymami-regalar-size-selector--visible {
    display: flex;
}

.happymami-regalar-selector-description {
    flex: 0 0 100%;
    width: 100%;
    margin: 0 15 0 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #3a4249;
    font-family: var(--hm-font-body) !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
    box-sizing: border-box;
    display: block;
    text-align: justify;
    align-self: stretch;
}

.happymami-regalar-selector-description > * {
    font-weight: 400;
    text-align: justify;
}

.happymami-regalar-selector-description span {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0 18px 10px 0;
    vertical-align: top;
}

.happymami-regalar-selector-description span b,
.happymami-regalar-selector-description span strong {
    display: inline;
}

.happymami-regalar-selector-description br {
    display: block;
    content: '';
    margin-bottom: 10px;
}

.happymami-regalar-selector-description img.emoji {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin: 0 6px 0 0;
    vertical-align: -0.12em;
}

.happymami-regalar-selector-description > :first-child {
    margin-top: 0;
}

.happymami-regalar-selector-description > :last-child {
    margin-bottom: 0;
}

.happymami-regalar-selector-description p,
.happymami-regalar-selector-description ul,
.happymami-regalar-selector-description ol {
    margin: 0 0 10px;
}

.happymami-regalar-selector-description strong,
.happymami-regalar-selector-description b {
    color: #3a4249;
    font-weight: 700;
}

.happymami-qr-note {
    --hm-qr-note-bg: #f4e8e0;
    --hm-qr-note-text: #773232;
    --hm-qr-note-icon: #773232;
    flex: 0 0 100%;
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--hm-qr-note-bg);
    color: var(--hm-qr-note-text);
    box-sizing: border-box;
}

.happymami-qr-note__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hm-qr-note-icon);
    line-height: 0;
}

.happymami-qr-note__icon svg {
    display: block;
    width: 40px;
    height: 40px;
}

.happymami-qr-note__text {
    margin: 0;
    font-family: "Euclid Circular B Regular", Sans-serif;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 1 auto;
    text-align: center;
    margin: 0 !important;
}

.happymami-qr-note__line {
    display: block;
}

@media (max-width: 768px) {
    .happymami-regalar-heading {
        margin-bottom: 1.2rem;
    }

    .happymami-regalar-heading__title {
        font-size: 24px;
    }

    #happymami-product-selector .happymami-regalar-heading .happymami-regalar-heading__title,
    #happymami-product-selector.hm-bottle-selector-style-new_happymami .happymami-regalar-heading .happymami-regalar-heading__title {
        margin-top: 20px !important;
    }

    .happymami-regalar-heading__subtitle {
        font-size: 15px;
    }

    .happymami-qr-note {
        margin-left: 0;
        width: 100%;
        padding: 13px 15px;
        border-radius: 16px;
    }

    .happymami-qr-note__text {
        font-size: 14px;
    }
}

/* Estilos de error para selectores (fuera del sidebar) */
.flow-selector.error .teat-flows,
.flow-selector.error .attr,
.attr-selector.error .attr {
    border: 2px solid #FF4363;
    border-radius: 10px;
    padding: 10px;
    display: inline-block;
}

.flow-error-message,
.size-error-message {
    color: #FF4363;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    display: none;
}

/* Estilos globales para flow-option, size-option y attr-option (dentro y fuera del sidebar) */
.flow-option, .size-option, .attr-option,
.flow-selector .flow-option, 
.attr-selector .attr-option,
.teat-flows .flow-option,
.bottle-sizes .size-option {
    border: 2px solid #D0D5DD !important;
    border-radius: 30px !important;
    padding: 0.25rem 0.75rem !important;
    cursor: pointer !important;
    font-size: .9rem !important;
    background-color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    color: black !important;
    margin: 5px !important;
    font-family: "Euclid Circular B Regular", Sans-serif !important;
}
    .flow-option:focus, .flow-option:hover,
    .size-option:focus, .size-option:hover,
    .attr-option:focus, .attr-option:hover,
    .flow-selector .flow-option:focus, .flow-selector .flow-option:hover,
    .attr-selector .attr-option:focus, .attr-selector .attr-option:hover,
    .teat-flows .flow-option:focus, .teat-flows .flow-option:hover,
    .bottle-sizes .size-option:focus, .bottle-sizes .size-option:hover {
        border-color: #F49696 !important;
        background-color: transparent !important;
        color: black !important;
    }
    .flow-option.active,
    .size-option.active,
    .attr-option.active,
    .flow-selector .flow-option.active,
    .attr-selector .attr-option.active,
    .teat-flows .flow-option.active,
    .bottle-sizes .size-option.active {
        border-color: #F49696 !important;
        background-color: transparent !important;
        color: black !important;
        box-shadow: 0 0 0 1px #F49696 !important;
    }

div.title {
    text-align: left !important;
}

/* Estilos globales para flow-option (dentro y fuera del sidebar) */
.attr-selector .attr .attr-option {
    font-family: "Euclid Circular B Regular", Sans-serif !important;
}

