.swift-pay-widget {
	--swift-pay-brand: #635bff;
	max-width: 480px;
	margin: 1.5em 0;
	padding: 1.75em;
	border: 1px solid #e3e6ea;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	font-family: inherit;
}

.swift-pay-widget__title {
	margin: 0 0 0.25em;
	font-size: 1.25em;
}

.swift-pay-widget__description {
	margin: 0 0 1em;
	color: #6b7280;
}

.swift-pay-field {
	margin-bottom: 1em;
}

.swift-pay-field label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
	font-size: 0.9em;
}

.swift-pay-field input[type="text"],
.swift-pay-field input[type="email"],
.swift-pay-field input[type="number"] {
	width: 100%;
	padding: 0.65em 0.75em;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1em;
	box-sizing: border-box;
}

.swift-pay-field input:focus {
	outline: none;
	border-color: var(--swift-pay-brand);
	box-shadow: 0 0 0 1px var(--swift-pay-brand);
}

.swift-pay-amount-input {
	display: flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	overflow: hidden;
}

.swift-pay-amount-input .swift-pay-currency {
	padding: 0.65em 0.75em;
	background: #f3f4f6;
	font-weight: 600;
	color: #6b7280;
}

.swift-pay-amount-input input {
	border: none !important;
	box-shadow: none !important;
}

.swift-pay-field--summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75em 1em;
	background: #f9fafb;
	border-radius: 8px;
}

.swift-pay-widget__message {
	min-height: 1.2em;
	margin-bottom: 0.75em;
	font-size: 0.9em;
	color: #059669;
}

.swift-pay-widget__message.is-error {
	color: #dc2626;
}

.swift-pay-widget__submit {
	position: relative;
	width: 100%;
	padding: 0.85em 1em;
	background: var(--swift-pay-brand);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.swift-pay-widget__submit:hover {
	filter: brightness(0.95);
}

.swift-pay-widget__submit:disabled {
	opacity: 0.7;
	cursor: default;
}

.swift-pay-widget__spinner {
	display: none;
	position: absolute;
	right: 1em;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: swift-pay-spin 0.7s linear infinite;
}

.is-processing .swift-pay-widget__spinner {
	display: block;
}

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

.swift-pay-widget__secure {
	margin: 0.75em 0 0;
	text-align: center;
	font-size: 0.8em;
	color: #9ca3af;
}

.swift-pay-widget.is-complete {
	text-align: center;
}
