/* ── Port-in Status Widget ── */

.sm-portin-status-wrap {
	max-width: 640px;
}

.sm-portin-status-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 24px;
}

.sm-portin-status-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}

.sm-portin-status-label {
	font-size: 14px;
	color: #666;
}

.sm-portin-status-mdn {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: 1px;
}

/* Timeline */

.sm-portin-status-timeline {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.sm-portin-step {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	position: relative;
	padding-bottom: 28px;
}

.sm-portin-step:last-child {
	padding-bottom: 0;
}

/* Vertical connector line */
.sm-portin-step:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 17px;
	top: 36px;
	bottom: 0;
	width: 2px;
	background: #e0e0e0;
}

/* Icon circle */
.sm-portin-step__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	background: #f5f5f5;
	color: #999;
	border: 2px solid #e0e0e0;
	position: relative;
	z-index: 1;
}

.sm-portin-step--success .sm-portin-step__icon {
	background: #e6f7ee;
	color: #1a7f4b;
	border-color: #1a7f4b;
}

.sm-portin-step--failed .sm-portin-step__icon {
	background: #fde8e8;
	color: #c0392b;
	border-color: #c0392b;
}

.sm-portin-step--pending .sm-portin-step__icon {
	background: #f5f5f5;
	color: #aaa;
	border-color: #ddd;
}

/* Step body */
.sm-portin-step__body {
	flex: 1;
	padding-top: 6px;
}

.sm-portin-step__label {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 2px;
}

.sm-portin-step--pending .sm-portin-step__label {
	color: #aaa;
}

.sm-portin-step__msg {
	font-size: 13px;
	color: #666;
	margin-top: 2px;
}

.sm-portin-step--failed .sm-portin-step__msg {
	color: #c0392b;
}

.sm-portin-step__ts {
	font-size: 12px;
	color: #aaa;
	margin-top: 4px;
}

/* Error / empty states */
.sm-portin-status-notice {
	padding: 16px;
	background: #f9f9f9;
	border-left: 4px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	color: #555;
}

/* Elementor editor preview placeholder */
.sm-portin-status-preview {
	padding: 24px;
	background: #f9f9f9;
	border: 2px dashed #ddd;
	border-radius: 8px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

/* ── Result banners ── */

.sm-portin-result {
	margin-top: 20px;
	padding: 14px 16px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
}

.sm-portin-result--success {
	background: #e6f7ee;
	color: #1a7f4b;
	border: 1px solid #a3d9b8;
}

.sm-portin-result--progress {
	background: #fff8e1;
	color: #795700;
	border: 1px solid #ffe082;
}

.sm-portin-result--resolution {
	background: #fff3e0;
	color: #7a4000;
	border: 1px solid #ffcc80;
}

.sm-portin-result--error {
	background: #fde8e8;
	color: #a00;
	border: 1px solid #f5c6c6;
}

/* ── Resolution notice ── */

.sm-portin-resolution-notice {
	background: #fff3e0;
	border: 1px solid #ffcc80;
	border-left: 4px solid #f5a623;
	border-radius: 4px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 14px;
	color: #7a4000;
}

/* ── Port-in form ── */

.sm-portin-form-wrap {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #f0f0f0;
}

.sm-portin-form-intro {
	font-size: 14px;
	color: #555;
	margin-bottom: 20px;
}

.sm-portin-form__row {
	margin-bottom: 14px;
}

.sm-portin-form__row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
}

.sm-portin-form__row input[type="text"],
.sm-portin-form__row input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px;
	border: 1px solid #d0d0d0;
	border-radius: 5px;
	font-size: 14px;
	color: #1a1a1a;
	background: #fff;
	transition: border-color 0.15s;
}

.sm-portin-form__row input[type="text"]:focus,
.sm-portin-form__row input[type="password"]:focus {
	outline: none;
	border-color: #7f54b3;
	box-shadow: 0 0 0 2px rgba(127, 84, 179, 0.15);
}

/* Inline validation error */
.sm-portin-form__error {
	padding: 10px 14px;
	background: #fde8e8;
	border: 1px solid #f5c6c6;
	border-radius: 4px;
	font-size: 13px;
	color: #a00;
	margin-bottom: 14px;
}

/* Submit button row */
.sm-portin-form__actions {
	margin-top: 18px;
}

.sm-portin-submit-btn {
	display: inline-block;
	padding: 11px 26px;
	background: #7f54b3;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
}

.sm-portin-submit-btn:hover {
	background: #6b47a0;
}

.sm-portin-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* ── Lookup form ────────────────────────────────────────────────────────── */
.sm-portin-lookup {
	max-width: 480px;
	margin: 0 auto;
}

.sm-portin-lookup__title {
	margin-bottom: 8px;
	font-size: 1.4em;
	font-weight: 700;
}

.sm-portin-lookup__sub {
	margin-bottom: 20px;
	color: #555;
	font-size: 0.95em;
}

.sm-portin-lookup__error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 6px;
	color: #b91c1c;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-size: 0.9em;
}

.sm-portin-lookup__form .form-row {
	margin-bottom: 16px;
}

.sm-portin-lookup__form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 0.9em;
}

.sm-portin-lookup__form input[type="number"],
.sm-portin-lookup__form input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 1em;
	box-sizing: border-box;
}

.sm-portin-lookup__form input:focus {
	outline: none;
	border-color: #1E675E;
	box-shadow: 0 0 0 3px rgba(30, 103, 94, 0.15);
}

.sm-portin-lookup__btn {
	width: 100%;
	padding: 12px;
	background: #1E675E;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.sm-portin-lookup__btn:hover:not(:disabled) {
	background: #175950;
}

.sm-portin-lookup__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sm-portin-pending-notice {
    margin-top: 20px;
    padding: 14px 16px;
    background: #EB5633;
    border-radius: 6px;
    font-size: .9rem;
    color: #fff;
}

.sm-portin-pending-notice p {
	margin: 0;
}
