/* Product addresses (step 3 of the warehouse product form). Sizes of fields, buttons and checkboxes live in forms.css. */
.product-address-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 9px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 12px
}

.product-address-hint.is-warning {
    color: var(--warning-text);
    margin: 12px 0 0
}

.product-address-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px
}

.product-address-add {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0
}

.product-address-movements {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0
}

.product-address-movements legend {
    width: 100%;
    padding: 0;
    margin-bottom: 6px;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted)
}

.product-address-movement {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: var(--field-radius);
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer
}

.product-address-movement.checked {
    border-color: var(--primary-border);
    background: var(--primary-faint);
    color: var(--primary-text)
}

.product-address-movements.is-inline {
    display: flex
}

.product-address-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px
}

.product-address-grid-wrap {
    max-height: 320px;
    margin-top: 12px
}

.product-address-grid td {
    vertical-align: middle
}

.product-address-grid td .compact-status,
.product-address-grid td .product-address-warning {
    margin-left: 8px
}

.product-address-warning {
    background: var(--warning-soft);
    color: var(--warning-text)
}

@media(max-width:700px) {
    .product-address-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}