/**
 * megacustomization — Bloque de subida de fotos en la ficha de producto.
 */
.mgcust {
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    background: #fbfcfd;
}

.mgcust__title {
    margin: 0 0 .35rem;
    font-weight: 600;
    font-size: 1rem;
    color: #1a2340;
}

.mgcust__help {
    margin: 0 0 .75rem;
    font-size: .875rem;
    color: #6b7280;
}

.mgcust__list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
}

.mgcust__list:empty {
    margin: 0;
}

.mgcust__item {
    position: relative;
    width: 76px;
    height: 76px;
    border: 1px solid #e3e6ea;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.mgcust__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mgcust__remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(26, 35, 64, .85);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

.mgcust__remove:hover {
    background: #c0392b;
}

.mgcust__drop {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    padding: .75rem;
    border: 2px dashed #c8cfd8;
    border-radius: 6px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.mgcust__drop--over {
    border-color: #1a2340;
    background: #f2f5fa;
}

.mgcust__drop--full {
    opacity: .5;
    pointer-events: none;
}

.mgcust__input {
    /* El input real se dispara desde el JS al pulsar la zona de arrastre. */
    display: none;
}

.mgcust__drop-label {
    font-size: .875rem;
    color: #4b5563;
}

.mgcust__rules {
    margin: .6rem 0 0;
    font-size: .8125rem;
    color: #6b7280;
}

.mgcust__msg {
    margin-top: .5rem;
    font-size: .875rem;
    color: #4b5563;
}

.mgcust__msg--error {
    color: #c0392b;
    font-weight: 600;
}

.mgcust__msg:empty {
    margin-top: 0;
}
