/* Aviso de Stock por Talle — estética Adicta
   Selectores con #id + !important para ganar a los estilos del tema/Elementor */

#ast-contenedor {
    margin: 14px 0 4px;
}

#ast-contenedor .ast-box {
    border: none !important;
    border-radius: 8px;
    background: transparent !important;
    overflow: hidden;
    box-shadow: none !important;
}

/* ── Botón título: igual que "Agregar al carrito" ── */
#ast-contenedor .ast-toggle,
#ast-contenedor .ast-toggle:hover,
#ast-contenedor .ast-toggle:focus,
#ast-contenedor .ast-toggle:active,
#ast-contenedor .ast-toggle:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#ast-contenedor .ast-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #54595f !important;
    background: #f0f0f0 !important;
    border-radius: 8px !important;
    cursor: pointer;
    text-align: left;
    transition: background .15s;
    box-sizing: border-box;
    text-transform: none;
    letter-spacing: normal;
}

#ast-contenedor .ast-toggle:hover,
#ast-contenedor .ast-toggle:focus,
#ast-contenedor .ast-toggle:active {
    background: #e7e7e7 !important;
    color: #54595f !important;
}

#ast-contenedor .ast-toggle.abierto {
    border-radius: 8px 8px 0 0 !important;
}

#ast-contenedor .ast-toggle span {
    flex: 1;
}

#ast-contenedor .ast-icono-campana {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

#ast-contenedor .ast-icono-flecha {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: none;
    flex-shrink: 0;
    transition: transform .2s ease;
}

#ast-contenedor .ast-toggle.abierto .ast-icono-flecha {
    transform: rotate(180deg);
}

/* ── Cuerpo desplegable ── */
#ast-contenedor .ast-cuerpo {
    padding: 4px 18px 16px;
    background: #f7f7f7 !important;
    border-radius: 0 0 8px 8px;
    border: none !important;
}

#ast-contenedor .ast-form-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
}

/* ── Campos ── */
#ast-contenedor .ast-select,
#ast-contenedor .ast-input {
    height: 40px !important;
    font-size: 14px !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #333 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .15s;
    box-sizing: border-box;
    -webkit-appearance: none;
}

#ast-contenedor .ast-select {
    min-width: 80px;
    padding: 0 32px 0 12px;
    font-weight: 500;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2354595f'%3e%3cpath d='M7 10l5 6 5-6z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px !important;
}

#ast-contenedor .ast-input {
    flex: 1;
    min-width: 170px;
    padding: 0 14px;
}

#ast-contenedor .ast-input::placeholder {
    color: #a5a5a5 !important;
}

#ast-contenedor .ast-select:focus,
#ast-contenedor .ast-input:focus {
    border-color: #c5c5c5 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ── Botón Anotarme: gris suave como los botones del tema ── */
#ast-contenedor .ast-boton,
#ast-contenedor .ast-boton:hover,
#ast-contenedor .ast-boton:focus,
#ast-contenedor .ast-boton:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#ast-contenedor .ast-boton {
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    color: #54595f !important;
    background: #ebebeb !important;
    border-radius: 8px !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    text-transform: none;
    letter-spacing: normal;
}

#ast-contenedor .ast-boton:hover,
#ast-contenedor .ast-boton:focus,
#ast-contenedor .ast-boton:active {
    background: #dfdfdf !important;
    color: #54595f !important;
}

#ast-contenedor .ast-boton:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ── Mensajes ── */
#ast-contenedor .ast-mensaje {
    margin: 9px 0 0;
    font-size: 13px;
    min-height: 17px;
}

#ast-contenedor .ast-mensaje.ast-ok    { color: #2e7d32 !important; font-weight: 500; }
#ast-contenedor .ast-mensaje.ast-error { color: #c62828 !important; }
