/**
 * Checkout identity box + Didit modal.
 *
 * Colours and fonts are inherited from the theme; only the frame is ours.
 */

.we-esim-kyc {
	border: 1px solid currentColor;
	border-color: rgba(127, 127, 127, 0.35);
	border-radius: 8px;
	padding: 16px;
	margin: 0 0 24px;
}

.we-esim-kyc__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.we-esim-kyc__icon {
	display: inline-flex;
	flex: none;
}

.we-esim-kyc__badge:empty {
	display: none;
}

.we-esim-kyc__badge {
	margin-left: auto;
	font-size: 13px;
	font-weight: 600;
	padding: 2px 10px;
	border-radius: 999px;
	background: #e6f4ea;
	color: #1e7b34;
}

.we-esim-kyc__msg {
	margin: 0 0 12px;
}

.we-esim-kyc[data-status="approved"] .we-esim-kyc__msg {
	margin-bottom: 0;
}

.we-esim-kyc[data-status="declined"] .we-esim-kyc__msg {
	color: #b3261e;
}

.we-esim-kyc__btn,
.we-esim-kyc a.we-esim-kyc__btn {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 28px;
	/* Core's brand colour; themes style only #place_order by id. */
	background: var(--we-brand, #2271b1) !important;
	border-color: var(--we-brand, #2271b1) !important;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
}

.we-esim-kyc__btn[hidden] {
	display: none;
}

/* Verify step, shown in place of the checkout form */

.we-esim-kyc--screen {
	max-width: 520px;
	margin: 0 auto 48px;
	padding: 24px 20px;
	text-align: center;
}

.we-esim-kyc__progress {
	display: flex;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	font-size: 13px;
	opacity: 0.85;
}

.we-esim-kyc__progress li + li::before {
	content: "—";
	margin-right: 8px;
	opacity: 0.5;
}

.we-esim-kyc__progress a {
	color: inherit;
}

.we-esim-kyc__progress .is-done::after {
	content: " ✓";
	color: var(--we-brand, #2271b1);
}

.we-esim-kyc__progress .is-current {
	font-weight: 700;
	opacity: 1;
}

.we-esim-kyc__hero,
.we-esim-kyc__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	margin-bottom: 12px;
	color: var(--we-brand, #2271b1);
	background: rgba(127, 127, 127, 0.15);
}

.we-esim-kyc__tick {
	color: #fff;
	background: var(--we-brand, #2271b1);
}

.we-esim-kyc__heading {
	margin: 0 0 10px;
}

.we-esim-kyc__lead {
	margin: 0 auto 20px;
	max-width: 420px;
	opacity: 0.85;
}

.we-esim-kyc__steps {
	text-align: left;
	margin: 0 0 20px;
	padding: 16px 16px 16px 40px;
	border: 1px solid rgba(127, 127, 127, 0.35);
	border-radius: 8px;
}

.we-esim-kyc__steps li {
	padding: 6px 0;
}

.we-esim-kyc--screen .we-esim-kyc__msg:empty {
	display: none;
}

.we-esim-kyc--screen .we-esim-kyc__btn {
	width: 100%;
}

.we-esim-kyc__back {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 4px;
	color: inherit;
	opacity: 0.8;
}

.we-esim-kyc__privacy {
	margin: 12px 0 0;
	font-size: 12px;
	opacity: 0.7;
}

.we-esim-kyc__done[hidden],
.we-esim-kyc__intro[hidden] {
	display: none;
}

/* Inside the checkout form once verified */

.we-esim-kyc-ok {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	padding: 10px 14px;
	border: 1px solid var(--we-brand, #2271b1);
	border-radius: 8px;
}

.we-esim-kyc-ok svg {
	flex: none;
	color: var(--we-brand, #2271b1);
}

/* The order cannot be placed until approved — the server refuses it anyway. */
.we-esim-kyc-pending #place_order,
.we-esim-kyc-pending .we-sticky-btn {
	opacity: 0.45;
	pointer-events: none;
}

.we-esim-kyc-locked {
	opacity: 0.75;
}

/* Modal */

html.we-esim-kyc-open,
html.we-esim-kyc-open body {
	overflow: hidden;
}

.we-esim-kyc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
}

.we-esim-kyc-modal__panel {
	background: #fff;
	color: #1d1d1f;
	width: min(480px, 100%);
	height: min(760px, 100%);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.we-esim-kyc-modal__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 4px 4px 16px;
	border-bottom: 1px solid #e5e5e5;
	font-size: 13px;
}

.we-esim-kyc-modal__tab {
	color: inherit;
	text-decoration: underline;
}

.we-esim-kyc-modal__close {
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.we-esim-kyc-modal iframe {
	flex: 1;
	width: 100%;
	border: 0;
}

@media (max-width: 600px) {
	.we-esim-kyc-modal__panel {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}
}

/* Contract summary (Συνοπτική Σύμβαση), shown above the terms box at checkout. */
.wetr-summary-box { margin: 0 0 16px; padding: 14px 16px; border: 1px solid currentColor; border-radius: 4px; font-size: 14px; line-height: 1.5; }
.wetr-summary-box > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.wetr-summary-box--admin { border-style: dashed; }
.wetr-summary { width: 100%; border-collapse: collapse; margin: 8px 0 0; }
.wetr-summary th, .wetr-summary td { padding: 6px 0; vertical-align: top; text-align: left; border-top: 1px solid rgba(127, 127, 127, .25); }
.wetr-summary th { width: 34%; padding-right: 12px; font-weight: 600; }
@media (max-width: 560px) { .wetr-summary th, .wetr-summary td { display: block; width: auto; } .wetr-summary td { border-top: 0; padding-top: 0; } }

/* Father's name and issuing authority, under "Identity verified". */
.we-esim-kyc-extra { margin: 0 0 24px; display: flow-root; }
.we-esim-kyc-extra__intro { margin: 0 0 8px; font-size: 14px; }
.we-esim-kyc-extra__field input { min-height: 44px; }

/* "Will this line be used by a minor?" (ΕΕΤΤ), above the terms box. */
.wetr-minor { margin: 0 0 16px; padding: 0; border: 0; }
.wetr-minor legend { font-weight: 600; margin-bottom: 6px; }
.wetr-minor label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-right: 20px; }
.wetr-minor__info { margin-top: 8px; padding: 12px 14px; border: 1px solid currentColor; border-radius: 4px; font-size: 14px; }
.wetr-minor__info ul { margin: 6px 0 0 18px; }
/* Contract summary in the layout of Regulation (EU) 2019/2243. */
.wetr-cs-service { margin: 8px 0 2px; font-size: 15px; }
.wetr-cs-provider { margin: 0 0 8px; font-size: 13px; opacity: .85; }
.wetr-cs-title { margin: 8px 0 4px; font-size: 16px; }
.wetr-cs-intro { margin: 0 0 6px; padding-left: 1.2em; font-size: 13px; }
.wetr-cs-date { margin: 0 0 4px; font-size: 13px; }
