.sms-wizard .sms-step {
	padding: 1rem 0;
}

/* Informacja w kroku 1 (weryfikacja SMS) */
.cf7sms-info {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	margin: 0 0 1.2rem;
	padding: 0.85rem 1rem;
	background: #f4fbef;
	border: 1px solid #cce8b4;
	border-left: 4px solid #80ca4d;
	border-radius: 8px;
	color: #33502a;
	font-size: 0.92rem;
	line-height: 1.5;
}

.cf7sms-info::before {
	content: "\2709";
	font-size: 1.1rem;
	line-height: 1.2;
	color: #5aa12f;
	flex: 0 0 auto;
}

.cf7sms-btn {
	display: inline-block;
	padding: 0.7em 1.3em;
	margin: 0.25em 0.4em 0.25em 0;
	border: 0;
	border-radius: 5px;
	background: #80ca4d;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 6px rgba(128, 202, 77, 0.25);
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease, opacity 0.15s ease;
}

.cf7sms-btn:hover {
	background: #262c4c;
	box-shadow: 0 6px 8px rgba(38, 44, 76, 0.3);
	transform: translateY(-2px);
}

.cf7sms-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.cf7sms-resend {
	background: #6c757d;
	box-shadow: none;
}

.cf7sms-resend:hover {
	background: #565e64;
	box-shadow: none;
}

.sms-status {
	margin: 0.75em 0 0;
	font-size: 0.92rem;
	line-height: 1.45;
}

.sms-status:empty {
	display: none;
}

.sms-status.is-error,
.sms-status.is-ok,
.sms-status.is-info {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
	padding: 0.7rem 0.9rem;
	border: 1px solid transparent;
	border-left-width: 4px;
	border-radius: 8px;
	font-weight: 500;
	animation: cf7sms-status-in 0.2s ease;
}

.sms-status.is-error::before,
.sms-status.is-ok::before,
.sms-status.is-info::before {
	flex: 0 0 auto;
	font-size: 1rem;
	line-height: 1.45;
	font-weight: 700;
}

.sms-status.is-error {
	background: #fdecea;
	border-color: #f5c2c0;
	border-left-color: #e0524d;
	color: #9c2622;
}

.sms-status.is-error::before {
	content: "\2715";
	color: #e0524d;
}

.sms-status.is-ok {
	background: #f4fbef;
	border-color: #cce8b4;
	border-left-color: #80ca4d;
	color: #2f6b16;
}

.sms-status.is-ok::before {
	content: "\2713";
	color: #5aa12f;
}

.sms-status.is-info {
	background: #eef4fb;
	border-color: #cfe0f3;
	border-left-color: #4a83c4;
	color: #2c4a6b;
}

.sms-status.is-info::before {
	content: "";
	width: 15px;
	height: 15px;
	margin-top: 2px;
	border: 2px solid #c3d8ef;
	border-top-color: #4a83c4;
	border-radius: 50%;
	animation: cf7sms-spin 0.7s linear infinite;
}

@keyframes cf7sms-status-in {
	from {
		opacity: 0;
		transform: translateY(-3px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sms-wizard .sms-step[hidden] {
	display: none;
}

/* --- Wyniki z API (krok 3) --- */
.cf7sms-results {
	margin: 0.5rem 0 1rem;
}

.cf7sms-results__title {
	margin: 1.2rem 0 0.6rem;
	font-size: 1.05rem;
	font-weight: 600;
}

.cf7sms-matchedby {
	font-size: 0.82rem;
	font-weight: 500;
	color: #3d7a17;
	background: #eaf6e0;
	border-radius: 999px;
	padding: 0.1rem 0.55rem;
	margin-left: 0.4rem;
	white-space: nowrap;
}

.cf7sms-card {
	position: relative;
	border: 1px solid #e2e6ea;
	border-radius: 10px;
	padding: 1rem 1.1rem;
	margin: 0 0 0.85rem;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cf7sms-card--summary {
	background: #f4fbef;
	border-color: #cce8b4;
}

.cf7sms-card__title {
	margin: 0 0 0.7rem;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #4a5560;
}

.cf7sms-record__badge {
	position: absolute;
	top: 0.85rem;
	right: 1rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: #3d7a17;
	background: #eaf6e0;
	border-radius: 999px;
	padding: 0.1rem 0.6rem;
}

.cf7sms-kv {
	margin: 0;
	display: grid;
	gap: 0.45rem;
}

.cf7sms-kv__row {
	display: grid;
	grid-template-columns: minmax(120px, 38%) 1fr;
	gap: 0.6rem;
	align-items: start;
	padding-bottom: 0.45rem;
	border-bottom: 1px dashed #edf0f3;
}

.cf7sms-kv__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.cf7sms-kv dt {
	margin: 0;
	font-weight: 600;
	color: #3a4250;
	word-break: break-word;
}

.cf7sms-kv dd {
	margin: 0;
	color: #1f2937;
	word-break: break-word;
}

.cf7sms-loading {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 0;
	color: #555;
}

.cf7sms-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid #cce8b4;
	border-top-color: #80ca4d;
	border-radius: 50%;
	animation: cf7sms-spin 0.7s linear infinite;
	flex: 0 0 auto;
}

@keyframes cf7sms-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Skeleton ładowania */
.cf7sms-skel-card {
	border: 1px solid #e9edf1;
	border-radius: 10px;
	padding: 1rem 1.1rem;
	margin-bottom: 0.85rem;
}

.cf7sms-skel-line {
	height: 12px;
	border-radius: 6px;
	margin: 0.55rem 0;
	background: linear-gradient(90deg, #eef1f4 25%, #e2e7ec 37%, #eef1f4 63%);
	background-size: 400% 100%;
	animation: cf7sms-shimmer 1.3s ease infinite;
}

.cf7sms-skel-line--title {
	width: 45%;
	height: 14px;
}

.cf7sms-skel-line--short {
	width: 60%;
}

@keyframes cf7sms-shimmer {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: -100% 0;
	}
}

/* Rekordy jako opcje wyboru (radio) */
.cf7sms-options {
	display: grid;
	gap: 0.7rem;
	margin-bottom: 0.5rem;
}

.cf7sms-options--error .cf7sms-option {
	border-color: #f5c2c0;
}

.cf7sms-option {
	position: relative;
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	border: 2px solid #e2e6ea;
	border-radius: 12px;
	padding: 0.95rem 1.05rem 0.95rem 0.95rem;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.1s ease;
	opacity: 0;
	transform: translateY(6px);
	animation: cf7sms-fadein 0.35s ease forwards;
}

/* Nadpisanie stylów motywu CF7 dla <label> (inaczej karty wyboru się rozjeżdżają) */
.cf7sms-results label.cf7sms-option,
.cf7sms-options label.cf7sms-option {
	display: flex;
	margin-bottom: 0;
	font-weight: 400;
	font-size: 1rem;
	color: inherit;
}

.cf7sms-option:hover {
	border-color: #bfe3a3;
	box-shadow: 0 2px 10px rgba(128, 202, 77, 0.15);
}

.cf7sms-option.is-selected {
	border-color: #80ca4d;
	background: #f4fbef;
	box-shadow: 0 2px 12px rgba(128, 202, 77, 0.22);
}

@keyframes cf7sms-fadein {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cf7sms-option__radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cf7sms-option__check {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border: 2px solid #b8c2cc;
	border-radius: 50%;
	position: relative;
	transition: border-color 0.15s ease;
}

.cf7sms-option.is-selected .cf7sms-option__check {
	border-color: #80ca4d;
}

.cf7sms-option.is-selected .cf7sms-option__check::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #80ca4d;
	animation: cf7sms-pop 0.18s ease;
}

@keyframes cf7sms-pop {
	from {
		transform: scale(0.2);
	}
	to {
		transform: scale(1);
	}
}

.cf7sms-option__body {
	flex: 1 1 auto;
	min-width: 0;
}

.cf7sms-option__head {
	display: block;
	font-weight: 700;
	color: #262c4c;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

/* Sekcja wyboru "z czego zrezygnować" */
.cf7sms-choose__title {
	margin: 1.2rem 0 0.25rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: #262c4c;
}

.cf7sms-choose__hint {
	margin: 0 0 0.9rem;
	color: #6b7280;
	font-size: 0.9rem;
}

.cf7sms-option__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
}

.cf7sms-option__title {
	font-weight: 700;
	font-size: 1.02rem;
	color: #1f2937;
	word-break: break-word;
}

.cf7sms-option__part {
	font-weight: 500;
	font-size: 0.95rem;
	color: #4a5568;
}

.cf7sms-option__part::before {
	content: "·";
	margin: 0 0.35rem;
	color: #9aa4b2;
	font-weight: 400;
}

.cf7sms-option__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.5rem;
}

.cf7sms-option__meta:empty {
	margin-top: 0;
}

.cf7sms-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3rem;
	padding: 0.2rem 0.6rem;
	border-radius: 8px;
	background: #f1f4f8;
	color: #1f2937;
	font-size: 0.9rem;
}

.cf7sms-chip__k {
	color: #6b7280;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cf7sms-option__rid {
	display: block;
	margin-top: 0.5rem;
	color: #9aa4b2;
	font-size: 0.78rem;
	font-family: Menlo, Consolas, monospace;
}

.cf7sms-status-pill {
	display: inline-block;
	padding: 0.18rem 0.7rem;
	border-radius: 999px;
	background: #e7f6ec;
	color: #1a7f37;
	font-size: 0.82rem;
	font-weight: 600;
	white-space: nowrap;
	flex: 0 0 auto;
}

.cf7sms-empty {
	background: #fff8e6;
	border-color: #f3e2b3;
	color: #7a5b00;
	text-align: center;
}

.cf7sms-error {
	background: #fdecea;
	border: 1px solid #f5c2c0;
	border-radius: 10px;
	padding: 0.8rem 1rem;
	color: #b32d2e;
}

/* --- Blok debug (zwijany) --- */
.cf7sms-dbg {
	margin-top: 1.2rem;
	border: 1px solid #2f3540;
	border-radius: 10px;
	background: #1e2127;
	color: #e6e6e6;
	font-size: 0.82rem;
	overflow: hidden;
}

.cf7sms-dbg > summary {
	cursor: pointer;
	list-style: none;
	padding: 0.7rem 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #ffd479;
	background: #262b33;
	user-select: none;
}

.cf7sms-dbg > summary::-webkit-details-marker {
	display: none;
}

.cf7sms-dbg > summary::before {
	content: "\25B6";
	display: inline-block;
	margin-right: 0.5rem;
	font-size: 0.7rem;
	transition: transform 0.15s ease;
	color: #9aa4b2;
}

.cf7sms-dbg[open] > summary::before {
	transform: rotate(90deg);
}

.cf7sms-dbg__in {
	padding: 0.7rem 0.95rem 0.9rem;
}

.cf7sms-dbg__meta {
	display: grid;
	gap: 0.3rem;
	margin-bottom: 0.7rem;
}

.cf7sms-dbg__row {
	display: flex;
	gap: 0.6rem;
}

.cf7sms-dbg__k {
	flex: 0 0 130px;
	color: #9aa4b2;
}

.cf7sms-dbg__v {
	color: #e6e6e6;
	word-break: break-word;
}

.cf7sms-dbg__sec {
	border: 1px solid #2f3540;
	border-radius: 8px;
	margin-top: 0.5rem;
	background: #232831;
}

.cf7sms-dbg__sec > summary {
	cursor: pointer;
	list-style: none;
	padding: 0.5rem 0.7rem;
	color: #cfd6df;
	user-select: none;
}

.cf7sms-dbg__sec > summary::-webkit-details-marker {
	display: none;
}

.cf7sms-dbg__sec > summary::before {
	content: "\25B6";
	display: inline-block;
	margin-right: 0.45rem;
	font-size: 0.65rem;
	color: #7c8694;
	transition: transform 0.15s ease;
}

.cf7sms-dbg__sec[open] > summary::before {
	transform: rotate(90deg);
}

.cf7sms-dbg__secbody {
	padding: 0.6rem 0.7rem 0.75rem;
	border-top: 1px solid #2f3540;
}

.cf7sms-dbg__badge {
	display: inline-block;
	padding: 0.05rem 0.45rem;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 600;
	margin: 0 0.25rem;
}

.cf7sms-dbg__badge.is-ok {
	background: #16361f;
	color: #5fd585;
}

.cf7sms-dbg__badge.is-bad {
	background: #3c1d1d;
	color: #f08a86;
}

.cf7sms-dbg__count {
	color: #9aa4b2;
	font-size: 0.78rem;
}

.cf7sms-dbg__label {
	margin: 0.5rem 0 0.2rem;
	color: #9aa4b2;
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.cf7sms-dbg__url {
	display: block;
	background: #15181d;
	border-radius: 6px;
	padding: 0.45rem 0.6rem;
	color: #8fc7ff;
	word-break: break-all;
	font-family: Menlo, Consolas, monospace;
	font-size: 0.76rem;
}

.cf7sms-dbg__tbl {
	width: 100%;
	border-collapse: collapse;
	margin: 0.2rem 0 0.4rem;
	font-size: 0.78rem;
}

.cf7sms-dbg__tbl th,
.cf7sms-dbg__tbl td {
	text-align: left;
	padding: 0.3rem 0.5rem;
	border: 1px solid #2f3540;
	word-break: break-word;
}

.cf7sms-dbg__tbl th {
	color: #9aa4b2;
	background: #1a1e24;
	font-weight: 600;
}

.cf7sms-dbg__lookup {
	padding: 0.25rem 0;
	border-bottom: 1px dashed #2f3540;
}

.cf7sms-dbg__lookup:last-child {
	border-bottom: 0;
}

.cf7sms-dbg__lookup code,
.cf7sms-dbg__tbl code {
	color: #8fc7ff;
}

.cf7sms-dbg__err {
	color: #f08a86;
}

.cf7sms-dbg pre {
	margin: 0.2rem 0 0;
	white-space: pre-wrap;
	word-break: break-word;
	font-family: Menlo, Consolas, monospace;
	font-size: 0.76rem;
	background: #15181d;
	border-radius: 6px;
	padding: 0.5rem 0.6rem;
	color: #d4d9df;
}

@media (max-width: 520px) {
	.cf7sms-kv__row {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}
}
