/* Foxpost csomagautomata-választó */

.fpc-box {
	margin: 10px 0 4px;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, .15);
	border-left: 4px solid #e2001a;
	border-radius: 6px;
	background: rgba(226, 0, 26, .03);
	font-size: .95em;
	line-height: 1.4;
}
.fpc-box__selected { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.fpc-box__selected[hidden], .fpc-box__empty[hidden] { display: none; }
.fpc-box__empty { margin-bottom: 8px; opacity: .8; }
.fpc-box__selected small { opacity: .75; margin-top: 4px; white-space: pre-line; }
.fpc-box__btn { cursor: pointer; }
.fpc-box__warn { margin: 0 0 8px; padding: 6px 10px; border-radius: 4px; background: #fbeaea; color: #8a1f11; font-weight: 600; }
.fpc-admin__alert { margin: 0 0 10px !important; }
.fpc-box--blocks .fpc-box__btn { padding: .6em 1.1em; font-size: .95em; }

/* Klasszikus pénztár: a dobozt a szállítási mód sora alá tördeljük */
.woocommerce-shipping-methods li .fpc-box { width: 100%; }

/* Modal */
.fpc-lock, .fpc-lock body { overflow: hidden; }
.fpc-modal[hidden] { display: none; }
.fpc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fpc-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.fpc-modal__dialog {
	position: relative;
	width: min(1100px, 96vw);
	height: min(760px, 90vh);
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.fpc-modal__frame { width: 100%; height: 100%; border: 0; display: block; }
.fpc-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #222;
	font-size: 26px;
	line-height: 38px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
@media (max-width: 600px) {
	.fpc-modal__dialog { width: 100vw; height: 100%; border-radius: 0; }
	.fpc-modal { align-items: stretch; }
}

/* Shortcode */
.fpc-inline__frame { width: 100%; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; display: block; }

/* Admin */
.fpc-admin .fpc-box { margin-top: 0; }
.fpc-admin__sandbox { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #fcf0d4; color: #8a5a00; font-size: 12px; }
.fpc-admin__msg { margin: 6px 0 0; }
.fpc-admin__msg.is-error { color: #b32d2e; }
.fpc-admin__traces { margin: 6px 0; padding-left: 0; list-style: none; }
.fpc-admin__traces li { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid #eee; }
