/* container */
.popup-menu {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border: 1px solid #000;
	padding: 1rem;
	z-index: 1000;
	min-width: 320px;
    max-width: 800px;
	border-radius: 0;
	font-family: inherit;
	
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  
}

/* title */
.popup-menu h3 {
	margin-bottom: .5rem;
	font-size: 1.5rem
}

/* text */
.popup-menu > p {
	white-space: normal;
	margin-bottom: .5rem;
}

/* error */
.popup-menu > p.error {
	color: red;
}


/* inputs/selects/textarea */
.popup-menu input[type="text"],
.popup-menu input[type="password"],
.popup-menu input[type="number"],
.popup-menu select,
.popup-menu textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .4rem;
	border: 1px solid #bbb;
	border-radius: 0;
}

/* checkbox (keep native look) */
.popup-menu input[type="checkbox"] {
	margin-right: .35rem;
	vertical-align: middle
}

/* actions */
.popup-menu .menu-actions {
	margin-top: 1rem;
	text-align: right
}

/* buttons */
.popup-menu button {
	padding: .4rem .6rem;
	margin-left: .4rem;
	border: 1px solid #000;
	background: hsl(0, 0%, 96%);
	border-radius: 0;
	cursor: pointer;
	
	&:hover,
	&:disabled {
		background: hsl(0, 0%, 80%);
	}
}

/* line group container — fields on the same row */
.line-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* each field inside a line-group stretches evenly */
.line-group .menu-field {
  flex: 1;
}
