.fpa-39a-otp {
	max-width: 720px;
	margin: 2.5rem auto;
	color: #2a2a2a;
	font-size: 16px;
	line-height: 1.55;
}

.fpa-39a-otp-hero {
	border-bottom: 1px solid #e6e6e6;
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
}

.fpa-39a-otp-eyebrow {
	color: #6a4cff;
	font-weight: 600;
	font-size: .85rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin: 0 0 .4em;
}

.fpa-39a-otp h1 {
	font-size: 1.85rem;
	margin: .2em 0 .4em;
	line-height: 1.2;
	color: #1a1a1a;
}

.fpa-39a-otp-lead {
	color: #555;
	max-width: 60ch;
}

.fpa-39a-otp-warning {
	display: flex;
	gap: .85rem;
	align-items: flex-start;
	background: #fff8e6;
	border: 1px solid #f3d889;
	border-left: 4px solid #e3a72f;
	border-radius: 8px;
	padding: 1rem 1.2rem;
	margin: 0 0 1.75rem;
	font-size: .92rem;
}

.fpa-39a-otp-warning-icon {
	flex: 0 0 auto;
	color: #e3a72f;
	display: inline-flex;
	align-items: center;
	margin-top: 1px;
}

.fpa-39a-otp-warning strong {
	display: block;
	color: #8a5a00;
	margin-bottom: .15em;
}

.fpa-39a-otp-warning span {
	color: #5a3d00;
}

.fpa-39a-otp-form fieldset {
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	padding: 1.1rem 1.25rem 1.25rem;
	margin: 0 0 1.25rem;
	background: #fff;
}

.fpa-39a-otp-form legend {
	font-weight: 600;
	font-size: .95rem;
	color: #1a1a1a;
	padding: 0 .5rem;
}

.fpa-39a-otp-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .85rem;
}

@media (max-width: 540px) {
	.fpa-39a-otp-grid {
		grid-template-columns: 1fr;
	}
}

.fpa-39a-otp-form label {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	font-size: .92rem;
}

.fpa-39a-otp-form label > span {
	font-weight: 500;
	color: #1a1a1a;
}

.fpa-39a-otp-form input {
	padding: .65rem .8rem;
	border: 1px solid #d4d0e3;
	border-radius: 8px;
	font-size: 1rem;
	background: #fff;
	letter-spacing: .03em;
	color: #1a1a1a;
}

.fpa-39a-otp-form input:focus {
	outline: none;
	border-color: #6a4cff;
	box-shadow: 0 0 0 3px rgba(106, 76, 255, 0.15);
}

.fpa-39a-otp-hint {
	font-size: .82rem;
	color: #666;
	margin: .65rem 0 0;
}

/* Inline info icon with a hover/focus tooltip — used on the
   Ειδικό username / Ειδικό Password labels. */
.fpa-39a-info {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-left: .35rem;
	border-radius: 50%;
	background: #d8ccff;
	color: #4a2dd6;
	font-family: Georgia, "Times New Roman", serif;
	font-size: .72rem;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	cursor: help;
	user-select: none;
	vertical-align: middle;
}

.fpa-39a-info:hover,
.fpa-39a-info:focus-visible {
	background: #c1afff;
	color: #2d1499;
	outline: none;
}

.fpa-39a-info::after {
	content: attr(data-fpa-39a-tooltip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 220px;
	max-width: 280px;
	padding: .55rem .7rem;
	border-radius: 6px;
	background: #1a1a1a;
	color: #fff;
	font-family: inherit;
	font-size: .78rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.fpa-39a-info::before {
	content: "";
	position: absolute;
	bottom: calc(100% + 2px);
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #1a1a1a;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
	z-index: 10;
}

.fpa-39a-info:hover::after,
.fpa-39a-info:hover::before,
.fpa-39a-info:focus-visible::after,
.fpa-39a-info:focus-visible::before {
	opacity: 1;
}

.fpa-39a-otp-hint a {
	color: #6a4cff;
	text-decoration: underline;
}

.fpa-39a-otp-step1-link {
	color: #6a4cff;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fpa-39a-otp-step1-link:hover {
	color: #4a2dd6;
}

.fpa-39a-otp-aade-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: .5rem 0 0;
	font-size: .82rem;
}

.fpa-39a-otp-aade-link {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	color: #6a4cff;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color .15s ease;
}

.fpa-39a-otp-aade-link:hover {
	color: #4a2dd6;
}

.fpa-39a-otp-aade-link-secondary {
	color: #6a4cff;
}

.fpa-39a-otp-aade-link-secondary:hover {
	color: #4a2dd6;
}

.fpa-39a-otp-aade-link-icon {
	display: inline-flex;
}

.fpa-39a-otp-aade-link-icon svg {
	width: 12px;
	height: 12px;
}

.fpa-39a-otp-submit {
	display: inline-block;
	width: 100%;
	padding: .9rem 1.5rem;
	background: linear-gradient(180deg, #6a4cff 0%, #4a2dd6 100%);
	color: #fff;
	border: 0;
	border-radius: 10px;
	font-weight: 600;
	font-size: 1.02rem;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .15s ease;
	box-shadow: 0 8px 22px -10px rgba(74, 45, 214, 0.55);
}

.fpa-39a-otp-submit:hover {
	transform: translateY(-1px);
}

.fpa-39a-otp-submit:disabled {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
}

.fpa-39a-otp-result {
	margin-top: 1.5rem;
	padding: 1.25rem;
	border-radius: 12px;
	border: 1px solid transparent;
	font-size: .95rem;
}

.fpa-39a-otp-result.fpa-39a-otp-loading {
	background: #f3efff;
	border-color: #d8ccff;
	color: #4a2dd6;
}

.fpa-39a-otp-result.fpa-39a-otp-error {
	background: #fdecec;
	border-color: #f0bdbd;
	color: #9a2d2d;
}

.fpa-39a-otp-result.fpa-39a-otp-success {
	background: linear-gradient(180deg, #f3faf3 0%, #ebf8ee 100%);
	border-color: #b4d9bb;
	color: #1f5c2c;
}

.fpa-39a-otp-card {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	padding: 1rem 1.2rem;
	margin-top: .75rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.fpa-39a-otp-code {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: .15em;
	color: #1a1a1a;
	flex: 1 1 auto;
	min-width: 0;
}

.fpa-39a-otp-meta {
	display: flex;
	flex-direction: column;
	font-size: .85rem;
	color: #555;
	gap: .15rem;
}

.fpa-39a-otp-copy {
	flex: 0 0 auto;
	background: #6a4cff;
	color: #fff;
	border: 0;
	padding: .55rem 1rem;
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s ease;
}

.fpa-39a-otp-copy:hover {
	background: #4a2dd6;
}

.fpa-39a-otp-copy.fpa-39a-otp-copied {
	background: #2c8a3a;
}

.fpa-39a-otp-names {
	display: block;
	font-size: .9rem;
	color: #2a2a2a;
	margin-top: .35rem;
}

/* ------------------------------------------------------------------ *
 * Representation check (Bu7) + repair (Bu5).
 *
 * The page used to offer one button that either worked or returned an
 * AADE sentence with no actionable content. These styles carry the
 * pre-flight: what AADE holds on file, and which row is blocking.
 * ------------------------------------------------------------------ */

.fpa-39a-otp-actions {
	display: flex;
	gap: .75rem;
	align-items: stretch;
}

.fpa-39a-otp-actions .fpa-39a-otp-submit {
	flex: 2 1 0;
}

.fpa-39a-otp-check {
	flex: 1 1 0;
	padding: .9rem 1.1rem;
	background: #fff;
	color: #4a2dd6;
	border: 1px solid #d8ccff;
	border-radius: 10px;
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.fpa-39a-otp-check:hover {
	background: #f7f4ff;
	border-color: #b9a4ff;
}

.fpa-39a-otp-check:disabled {
	opacity: .55;
	cursor: not-allowed;
}

@media (max-width: 520px) {
	.fpa-39a-otp-actions {
		flex-direction: column-reverse;
	}
}

.fpa-39a-otp-repr {
	margin-top: 1.25rem;
	padding: 1rem 1.1rem 1.1rem;
	border: 1px solid #e4e0f2;
	border-radius: 12px;
	background: #fbfaff;
}

.fpa-39a-rep-title {
	font-weight: 700;
	font-size: .9rem;
	letter-spacing: .01em;
	color: #4a2dd6;
	margin-bottom: .75rem;
}

.fpa-39a-rep {
	padding: .8rem .9rem;
	border-radius: 10px;
	border: 1px solid #e4e0f2;
	background: #fff;
	margin-bottom: .6rem;
}

.fpa-39a-rep:last-child {
	margin-bottom: 0;
}

.fpa-39a-rep-who {
	font-size: .95rem;
}

.fpa-39a-rep-period {
	font-size: .85rem;
	color: #6b6880;
	margin-top: .15rem;
}

.fpa-39a-rep-state {
	font-size: .88rem;
	margin-top: .45rem;
	font-weight: 600;
}

.fpa-39a-rep--ok {
	border-color: #b4d9bb;
}

.fpa-39a-rep--ok .fpa-39a-rep-state {
	color: #1f5c2c;
}

.fpa-39a-rep--blocking {
	border-color: #f0d3a8;
	background: #fffaf2;
}

.fpa-39a-rep--blocking .fpa-39a-rep-state {
	color: #8a5a12;
	font-weight: 500;
}

.fpa-39a-rep--expired {
	border-color: #e0dde8;
	background: #fafafc;
}

.fpa-39a-rep--expired .fpa-39a-rep-state {
	color: #6b6880;
	font-weight: 500;
}

.fpa-39a-rep-fix {
	margin-top: .7rem;
	padding: .55rem 1rem;
	background: linear-gradient(180deg, #6a4cff 0%, #4a2dd6 100%);
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-weight: 600;
	font-size: .9rem;
	cursor: pointer;
}

.fpa-39a-rep-fix:hover {
	filter: brightness(1.06);
}

/* Busy states — the repair CTA sits inside the panel, far from the result
   box, so it has to report on itself or the click looks like it did nothing. */

.fpa-39a-spinner {
	display: inline-block;
	width: .8em;
	height: .8em;
	margin-right: .5em;
	vertical-align: -.05em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: fpa-39a-spin .6s linear infinite;
}

@keyframes fpa-39a-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.fpa-39a-spinner { animation-duration: 2s; }
}

.fpa-39a-rep-fix:disabled,
.fpa-39a-rep-fix.is-busy {
	opacity: .7;
	cursor: progress;
}

/* Plain-language lead-in, so the panel can explain itself without the raw
   AADE sentence having to be the headline. */
.fpa-39a-rep-reason {
	padding: .75rem .9rem;
	margin-bottom: .9rem;
	border-radius: 10px;
	background: #fffaf2;
	border: 1px solid #f0d3a8;
	color: #7a4f0f;
	font-size: .92rem;
	line-height: 1.45;
}

.fpa-39a-rep-detail {
	margin-top: .9rem;
	font-size: .85rem;
	color: #6b6880;
}

.fpa-39a-rep-detail summary {
	cursor: pointer;
	font-weight: 600;
}

.fpa-39a-rep-detail p {
	margin: .5rem 0 0;
	line-height: 1.5;
}

/* Which ΑΦΜ the code is actually bound to. A one-time code belongs to a
   BUYER and is used by a REPRESENTATIVE; showing only the six digits let the
   two be mistaken for each other, and the wrong ΑΦΜ then reached checkout. */
.fpa-39a-otp-for {
	margin: .85rem 0 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .25rem .9rem;
	font-size: .88rem;
}

.fpa-39a-otp-for dt {
	color: #4f6b55;
	font-weight: 600;
}

.fpa-39a-otp-for dd {
	margin: 0;
}

@media (max-width: 520px) {
	.fpa-39a-otp-for {
		grid-template-columns: 1fr;
		gap: .1rem;
	}
	.fpa-39a-otp-for dd {
		margin-bottom: .45rem;
	}
}
