/* StackInCode Manual Payments Pro — front-end styles */

.smp-gateway-fields {
	--smp-accent: #2271b1;
	margin-top: 10px;
}

/* Defensive: some themes fail to visually hide WooCommerce's own
   screen-reader-only duplicate of the gateway title inside the payment
   method list, which then shows up twice on the checkout page. This is
   harmless to apply even where it isn't needed. */
.wc_payment_methods .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.smp-gateway-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.smp-gateway-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--smp-accent);
	flex-shrink: 0;
}

.smp-gateway-description {
	margin: 0;
	color: #555;
	font-size: 13.5px;
	line-height: 1.5;
}

.smp-gateway-badge {
	display: inline-block;
	background: var(--smp-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	letter-spacing: 0.02em;
}

.smp-accounts-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 4px 0 12px;
}

.smp-account-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	border: 1px solid #e5e7eb;
	border-left: 4px solid var(--smp-accent);
	border-radius: 10px;
	padding: 14px 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.smp-account-card:hover {
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.smp-account-logo {
	width: 42px;
	height: 42px;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 8px;
}

.smp-account-logo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--smp-accent);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.smp-account-qr {
	width: 76px;
	height: 76px;
	object-fit: contain;
	margin-left: auto;
	flex-shrink: 0;
	border-radius: 8px;
	border: 1px solid #eee;
	padding: 4px;
	background: #fff;
}

.smp-account-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.smp-account-title {
	font-size: 14.5px;
	color: #111827;
}

.smp-account-bank {
	font-size: 12.5px;
	color: #6b7280;
}

.smp-copyable {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}

.smp-copyable-value {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13.5px;
	font-weight: 600;
	color: #111827;
	letter-spacing: 0.01em;
}

.smp-copy-btn {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	cursor: pointer;
	border: 1px solid var(--smp-accent);
	color: var(--smp-accent);
	border-radius: 6px;
	background: #fff;
	transition: background 0.12s ease, color 0.12s ease;
}
.smp-copy-btn:hover {
	background: var(--smp-accent);
	color: #fff;
}
.smp-copy-btn.smp-copied {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
}

.smp-instructions {
	margin-top: 6px;
	font-size: 12.5px;
	color: #6b7280;
	line-height: 1.5;
}

.smp-note {
	font-size: 13px;
	color: #6b7280;
	margin: 6px 0;
}
.smp-note-warning {
	color: #b45309;
}

.smp-countdown {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
	background: #fff7ed;
	color: #c2410c;
	padding: 10px;
	border-radius: 8px;
	margin: 12px 0;
	letter-spacing: 3px;
}

.smp-status-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}
.smp-status-pending  { background: #fff7ed; color: #c2410c; }
.smp-status-approved { background: #f0fdf4; color: #15803d; }
.smp-status-rejected { background: #fef2f2; color: #b91c1c; }

.smp-account-choice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1.5px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 8px;
	cursor: pointer;
	font-size: 13.5px;
	transition: border-color 0.12s ease, background 0.12s ease;
}
.smp-account-choice:hover {
	border-color: #2271b1;
	background: #f9fafb;
}
.smp-account-choice input[type="radio"] {
	flex-shrink: 0;
}

.smp-whatsapp-fallback {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #16a34a;
	font-weight: 600;
	font-size: 13.5px;
	text-decoration: none;
}
.smp-whatsapp-fallback:hover {
	text-decoration: underline;
}

.smp-customer-panel {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
	margin-top: 16px;
	background: #fff;
}
.smp-customer-panel h2 {
	font-size: 16px;
	margin: 0 0 12px;
}

.smp-customer-panel-header {
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f0f0f1;
}
.smp-customer-panel-header h2 {
	margin: 0 0 4px;
	font-size: 17px;
	color: #111827;
}
.smp-customer-panel-subtitle {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
}

.smp-panel-step {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0 10px;
}
.smp-step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #2271b1;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}
.smp-step-title {
	font-size: 13.5px;
	font-weight: 600;
	color: #374151;
}

.smp-rejection-note {
	background: #fef2f2;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	color: #991b1b;
}

.smp-upload-error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 12px;
}

#smp-proof-upload-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-top: 12px;
	margin-bottom: 4px;
}
#smp-proof-upload-form input[type="text"],
#smp-proof-upload-form input[type="file"] {
	width: 100%;
	max-width: 420px;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13.5px;
}
#smp-proof-upload-form button[type="submit"] {
	margin-top: 16px;
	background: var(--smp-accent, #2271b1);
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
}

/* Mobile-first: stack account card contents on small screens */
@media (max-width: 480px) {
	.smp-account-card {
		flex-wrap: wrap;
	}
	.smp-account-qr {
		margin: 8px auto 0;
	}
}

/* Modal mode wrapper (opened automatically on the Thank You page) */
.smp-customer-panel.smp-modal-open {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border: none;
	margin: 0;
	border-radius: 0;
}
.smp-customer-panel.smp-modal-open > * {
	background: #fff;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 12px;
	padding: 22px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
