/* Formularz platnosci na stronie zamowienia (Stripe + TPay).
   Warstwa UI - bez logiki platnosci. */

.co-payform {
	display: block;
	margin: 18px 0 6px;
}

.co-field {
	display: block;
	margin-bottom: 16px;
}

.co-field > span {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}

.co-field input {
	width: 100%;
	font: inherit;
	font-size: 15px;
	color: #111827;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px 14px;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.co-field input:focus {
	border-color: #6d28d9;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, .15);
}

.co-field.is-error input {
	border-color: #ef4444;
	background: #fef2f2;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}

.co-field.is-error input:focus {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .2);
}

.co-field-error {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 13px;
	line-height: 1.45;
	color: #b91c1c;
	margin-top: 8px;
}

.co-field-error::before {
	content: "⚠";
	font-size: 14px;
	line-height: 1;
	flex: 0 0 auto;
}

.co-methods {

	display: grid;
	gap: 10px;
	margin-bottom: 18px;
}

.co-method {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px 14px;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.co-method:hover {
	border-color: #c4b5fd;
}

.co-method.is-active {
	border-color: #6d28d9;
	background: #faf5ff;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}

.co-method-text {
	display: block;
	flex: 1 1 auto;
}

.co-method-text strong {
	display: block;
	font-size: 15px;
	color: #111827;
	line-height: 1.3;
}

.co-method-text em {
	display: block;
	font-style: normal;
	font-size: 12px;
	color: #6b7280;
	margin-top: 2px;
}

.co-method-dot {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #d1d5db;
	position: relative;
}

.co-method.is-active .co-method-dot {
	border-color: #6d28d9;
}

.co-method.is-active .co-method-dot::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #6d28d9;
}

.co-submit {
	display: block;
	width: 100%;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(90deg, #7c3aed, #db2777);
	border: 0;
	border-radius: 14px;
	padding: 15px 18px;
	cursor: pointer;
}

.co-submit:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.co-payform-note {
	font-size: 12px;
	line-height: 1.6;
	color: #6b7280;
	margin: 12px 0 0;
}

.co-payform-note strong {
	color: #374151;
}

/* Stany platnosci: blad, potwierdzanie BLIK, strona potwierdzenia */

.co-payform-error {
	background: #fef2f2;
	border: 1.5px solid #fecaca;
	color: #b91c1c;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 14px;
}

.co-confirming {
	text-align: center;
	padding: 26px 8px 8px;
}

.co-confirming h3 {
	font-size: 18px;
	color: #111827;
	margin: 18px 0 8px;
}

.co-confirming p {
	font-size: 14px;
	line-height: 1.6;
	color: #6b7280;
	margin: 0 0 6px;
}

.co-countdown strong {
	color: #6d28d9;
}

.co-spinner {
	width: 42px;
	height: 42px;
	margin: 0 auto;
	border-radius: 50%;
	border: 4px solid #ede9fe;
	border-top-color: #6d28d9;
	animation: co-spin .9s linear infinite;
}

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

.co-shell-narrow {
	display: block;
	max-width: 720px;
	margin: 0 auto;
}

.co-confirm-card {
	text-align: center;
	color: var(--co-text);
}

.co-confirm-icon {
	font-size: 42px;
	line-height: 1;
	margin-bottom: 10px;
}

.co-confirm-title {
	font-size: 26px;
	line-height: 1.25;
	color: var(--co-text);
	margin: 0 0 14px;
}

.co-confirm-lead {
	font-size: 15px;
	line-height: 1.7;
	color: var(--co-muted);
	margin: 0 0 12px;
}

.co-confirm-details {
	list-style: none;
	margin: 20px 0;
	padding: 0;
	text-align: left;
	border: 1.5px solid var(--co-line-soft);
	border-radius: 12px;
	overflow: hidden;
}

.co-confirm-details li {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	font-size: 14px;
	border-bottom: 1px solid var(--co-line-soft);
}

.co-confirm-details li:last-child {
	border-bottom: 0;
}

.co-confirm-details span {
	color: var(--co-muted);
}

.co-confirm-details strong {
	color: var(--co-text);
	word-break: break-all;
}

.co-confirm-note {
	font-size: 13px;
	line-height: 1.6;
	color: var(--co-muted);
	margin: 0 0 12px;
}

.co-submit-link {
	display: block;
	text-align: center;
	text-decoration: none;
	margin-top: 8px;
}

/* ============================================================
   Karta platnosci – uklad wzorowany na projekcie referencyjnym
   (ikony, panel BLIK, stany), w naszej kolorystyce.
   ============================================================ */

.co-methods-title {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 10px;
}

.co-methods {
	display: grid;
	gap: 12px;
}

.co-method {
	gap: 12px;
	border-radius: 14px;
	padding: 12px 14px;
}

.co-method.is-active {
	box-shadow: 0 6px 18px -8px rgba(109, 40, 217, .45);
}

.co-method-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #f5f3ff;
	color: #6d28d9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.co-method-icon svg {
	width: 20px;
	height: 20px;
}

.co-method.is-active .co-method-icon {
	background: #ede9fe;
}

.co-method-text strong {
	font-size: 14px;
	font-weight: 700;
}

.co-method-text em {
	font-size: 12px;
	line-height: 1.35;
	margin-top: 2px;
}

/* Panel z kodem BLIK */

.co-blik-panel,
.co-card-panel {
	border: 1.5px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	padding: 16px;
	display: grid;
	gap: 12px;
	animation: co-slide-in .18s ease-out;
}

@keyframes co-slide-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

.co-blik-hint {
	font-size: 12px;
	color: #6b7280;
	text-align: center;
	margin: 0;
}

.co-blik-input {
	width: 100%;
	height: 56px;
	font: inherit;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: .3em;
	text-align: center;
	font-variant-numeric: tabular-nums;
	color: #111827;
	background: #fff;
	border: 2px solid rgba(109, 40, 217, .25);
	border-radius: 12px;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.co-blik-input:focus {
	border-color: #6d28d9;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, .15);
}

.co-blik-input:disabled {
	opacity: .6;
}

/* Przyciski */

.co-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 56px;
	line-height: 1.25;
}

.co-submit svg {
	width: 20px;
	height: 20px;
}

.co-btn-outline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #6d28d9;
	background: #fff;
	border: 1.5px solid #ddd6fe;
	border-radius: 12px;
	padding: 12px 14px;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.co-btn-outline:hover {
	background: #faf5ff;
	border-color: #c4b5fd;
}

.co-btn-outline svg {
	width: 16px;
	height: 16px;
}

.co-icon-spin {
	animation: co-spin .9s linear infinite;
}

.co-linkbtn {
	font: inherit;
	font-size: 12px;
	color: #6b7280;
	background: none;
	border: 0;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.co-linkbtn:hover {
	color: #111827;
}

/* Bledy */

.co-error-block {
	display: grid;
	gap: 10px;
}

.co-error-msg {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	background: #fef2f2;
	border: 1.5px solid #fecaca;
	color: #b91c1c;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.5;
}

.co-error-msg svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	margin-top: 2px;
}

/* Teksty prawne pod przyciskiem */

.co-legal-note {
	font-size: 11px;
	line-height: 1.5;
	color: #6b7280;
	text-align: center;
	margin: 0;
}

.co-consent {
	font-size: 10px;
	line-height: 1.5;
	color: #9ca3af;
	text-align: center;
	margin: 0;
}

.co-consent a {
	color: inherit;
	text-decoration: underline;
}

/* Gwarancja i zaufanie */

.co-guarantee-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	font-size: 14px;
	font-weight: 600;
	color: #6d28d9;
}

.co-guarantee-line svg {
	width: 16px;
	height: 16px;
}

.co-trust {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #e5e7eb;
	text-align: center;
}

.co-trust-title {
	font-size: 12px;
	color: #6b7280;
	margin: 0 0 8px;
}

.co-trust-row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 8px;
}

.co-trust-row svg {
	width: 20px;
	height: 20px;
	color: #9ca3af;
}

.co-trust-row span {
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
}

.co-trust-wallets {
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
	margin: 0 0 8px;
}

.co-trust-ssl {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 12px;
	color: #6b7280;
	margin: 0;
}

.co-trust-ssl svg {
	width: 12px;
	height: 12px;
}

/* Stany: potwierdzanie w banku / sukces */

.co-state-card {
	border: 2px solid rgba(109, 40, 217, .3);
	border-radius: 14px;
	background: #fff;
	padding: 24px 18px;
	text-align: center;
	display: grid;
	justify-items: center;
	gap: 12px;
}

.co-state-card h3 {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0;
}

.co-state-card p {
	font-size: 14px;
	line-height: 1.6;
	color: #6b7280;
	margin: 0;
}

.co-state-icon {
	width: 48px;
	height: 48px;
	color: #6d28d9;
}

.co-pulse {
	animation: co-pulse 1.6s ease-in-out infinite;
}

@keyframes co-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .5; }
}

.co-progress {
	width: 100%;
	height: 6px;
	border-radius: 999px;
	background: #f3f4f6;
	overflow: hidden;
}

.co-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #7c3aed, #db2777);
	transition: width 1s linear;
}

/* Etykiety na ciemnym tle panelu platnosci */

.co-paybox .co-field > span,
.co-paybox .co-methods-title {
	color: rgba(255, 255, 255, .85);
}
