.custom-details {
    border: 3px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    width: 100%;
}

.custom-details summary {
    cursor: pointer;
    font-weight: bold;
    position: relative;
    padding: 12px;
}

.custom-details summary::after {
    content: "▶";
    position: absolute;
    right: 12px;
    transition: transform 0.3s ease;
}

.custom-details[open] summary::after {
    transform: rotate(90deg);
}

.custom-details img {
    width: 100px;  /* Cambiá este valor para ajustar el tamaño */
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
    min-width: 100px;
}

.opcionales-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    padding: 12px;
    border-top: 1px solid #ccc;
}

.opcional-item {
    flex: 1 1 calc(50% - 1em); /* Dos por fila con espacio entre */
    display: flex;
    gap: 22px;
    width: 45%;
}

.opcional-nombre {
    flex: 1;
    font-weight: 500;
    line-height: 1.3;
    align-content: center;
}


/* Versión para móviles */
@media (max-width: 600px) {
    .opcional-item {
        flex: 1 1 100%;
    }
}

.edit-btn-container, .edit-form{
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
}

.edit-form{
    border-top: 1px solid #ccc;
    gap: 1em;
}

#descripcion_div{
    display: none;
}

.item_select{
    border-radius: 8px;
    border: 1px solid #ccc;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5l9 13 9-13z"/></svg>');
    background-repeat: no-repeat;
    background-position-x: calc(100% - 10px);
    background-position-y: center;
    padding-right: 30px;
    text-overflow: ellipsis;
    overflow: hidden;
    min-width: 150px;
}

.imagen-tachada {
    position: relative;
    display: inline-block;
    max-height: 100px;
}

.imagen-tachada::after, .imagen-tachada::before {
    content: '';
    position: absolute;
    left: 0;
    width: 120%;
    height: 5%;
    background: rgba(0, 0, 0, 0.6);
}

.imagen-tachada::before {
    transform: rotate(45deg) translate(23%, 820%);
}

.imagen-tachada::after {
    transform: rotate(-45deg) translate(-33%, 568%);
}

#img_cont {
    display: flex;
}

.sel_cont{
    overflow: hidden;          /* oculta desbordes */
    /*white-space: nowrap;*/
    text-overflow: ellipsis;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}