
.packetery-flex-container {
	display: flex;
	flex-flow: row wrap;
	padding: 0;
	margin-left: -5px;
	margin-right: -5px;
	container-type: inline-size;
}

.packetery-flex-container-no-margin {
	margin: 0;
}

.packetery-flex-break-row {
	flex-basis: 100%;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.packetery-customs-declaration-fields {
	label {
		display: block;
	}

	input {
		width: 100%;

		+ p {
			margin: 0;
		}
	}

	input[type=checkbox] {
		width: auto;
	}

	select {
		width: 100%;

		+ p {
			margin: 0;
		}
	}

	.packetery-customs-declaration-flex-item .packetery-customs-declaration-flex-item-content {
		padding-left: 5px;
		padding-right: 5px;
	}

	[data-replication-add] {
		margin-top: 10px;
	}

	[data-packetery-customs-declaration-item] .packetery-flex-container:nth-child(odd) {
		border: 1px solid #ddd;
		border-radius: 4px;
		-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
		box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
		padding: 10px;
		margin-top: 10px;
	}

	.packetery-customs-declaration-flex-item:has([data-replication-delete]) {
		margin: 0;
	}

	[data-replication-delete] {
		margin-top: 10px;
	}

}

.packetery-customs-declaration-flex-item {
	width: 50%;
	margin-top: 5px;
	margin-bottom: 5px;
	text-align: left;
}

@container (max-width: 500px) {
	.packetery-customs-declaration-flex-item {
		width: 100%;
	}
}
