/* OpenTuition Stripe Donation — front-end styles */

.ot-sd-wrap {
	max-width: 560px;
	margin: 0 auto;
	font-family: inherit;
	color: #222;
}

.ot-sd-form {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.ot-sd-heading {
	margin: 0 0 8px;
	font-size: 1.35em;
}

.ot-sd-intro {
	margin-bottom: 16px;
	color: #555;
}

.ot-sd-fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 18px;
}

.ot-sd-fieldset > legend {
	font-weight: 600;
	padding: 0;
	margin-bottom: 8px;
	font-size: .95em;
}

.ot-sd-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.ot-sd-preset {
	flex: 1 1 0;
	min-width: 80px;
	padding: 12px 8px;
	font-size: 16px;
	font-weight: 600;
	background: #fff;
	border: 2px solid #d1d5db;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
	color: #222;
}

.ot-sd-preset:hover {
	border-color: #6b7280;
}

.ot-sd-preset.is-selected {
	border-color: #2563eb;
	background: #2563eb;
	color: #fff;
}

.ot-sd-preset--custom {
	flex: 1 1 100px;
}

.ot-sd-custom-wrap {
	position: relative;
	margin-top: 4px;
}

.ot-sd-currency {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #555;
	pointer-events: none;
}

.ot-sd-custom-amount {
	width: 100%;
	padding: 10px 10px 10px 28px;
	font-size: 16px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-sizing: border-box;
}

.ot-sd-row {
	margin-bottom: 10px;
}

.ot-sd-row label {
	display: block;
	font-size: 13px;
	margin-bottom: 4px;
	color: #374151;
}

.ot-sd-row input[type="text"],
.ot-sd-row input[type="email"] {
	width: 100%;
	padding: 10px;
	font-size: 15px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-sizing: border-box;
}

.ot-sd-card-element {
	padding: 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
}

/* Stripe Payment Element renders its own chrome — leave it alone, just give it room. */
.ot-sd-payment-element {
	min-height: 56px;
}

.ot-sd-card-errors {
	color: #b91c1c;
	font-size: 13px;
	margin-top: 6px;
	min-height: 16px;
}

.ot-sd-actions {
	margin-top: 12px;
}

.ot-sd-button {
	display: inline-block;
	padding: 12px 20px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 6px;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}

.ot-sd-button--primary {
	background: #16a34a;
	color: #fff;
	width: 100%;
	position: relative;
}

.ot-sd-button--primary:hover {
	background: #15803d;
}

.ot-sd-button[disabled] {
	opacity: .8;
	cursor: progress;
}

.ot-sd-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 3px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ot-sd-spin .8s linear infinite;
}

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

.ot-sd-legal {
	margin-top: 12px;
	font-size: 12px;
	color: #6b7280;
	text-align: center;
}

.ot-sd-messages {
	margin-top: 14px;
}

.ot-sd-notice {
	border-radius: 6px;
	padding: 10px 14px;
	margin: 8px 0;
}

.ot-sd-notice p { margin: 0; }

.ot-sd-notice--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.ot-sd-notice--info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e3a8a;
}

.ot-sd-notice--login {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #7c2d12;
	padding: 16px;
	border-radius: 6px;
	text-align: center;
}

.ot-sd-thanks {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	padding: 24px;
	text-align: center;
}

.ot-sd-thanks h3 {
	margin-top: 0;
	color: #166534;
}

.ot-sd-receipt {
	font-size: 12px;
	color: #555;
	margin-top: 12px;
}

.screen-reader-text {
	clip: rect(1px,1px,1px,1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}
