/* CS Donate Public Styles */

/* ============================================
   Floating Button
   ============================================ */

.cs-donate-floating-button-container {
	position: fixed;
	bottom: 20px;
	z-index: 99999;
	animation: slideIn 0.4s ease-out;
}

.cs-donate-floating-button-container.cs-donate-position-right {
	right: 20px;
}

.cs-donate-floating-button-container.cs-donate-position-left {
	left: 20px;
}

.cs-donate-floating-button {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: none;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cs-donate-floating-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cs-donate-floating-button:active {
	transform: translateY(0);
}

.cs-donate-heart-icon {
	animation: heartbeat 0.6s ease-in-out infinite;
}

.cs-donate-button-text {
	font-size: 14px;
	letter-spacing: 0.3px;
}

.cs-donate-test-mode-badge {
	position: absolute;
	top: -25px;
	right: 0;
	background: #ff9800;
	color: white;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 12px;
	letter-spacing: 0.5px;
}

/* ============================================
   Modal
   ============================================ */

.cs-donate-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.2s ease-out;
}

.cs-donate-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	animation: fadeIn 0.2s ease-out;
}

.cs-donate-modal-content {
	position: relative;
	background: white;
	border-radius: 12px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	animation: slideUp 0.3s ease-out;
	max-height: 90vh;
	overflow-y: auto;
}

.cs-donate-modal-header {
	padding: 24px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.cs-donate-modal-header h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	color: #1a1a1a;
}

.cs-donate-modal-close {
	background: none;
	border: none;
	font-size: 32px;
	color: #999;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.cs-donate-modal-close:hover {
	color: #333;
}

.cs-donate-modal-body {
	padding: 24px;
}

.cs-donate-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Amount Selection */
.cs-donate-amounts label,
.cs-donate-custom-amount label,
.cs-donate-email label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cs-donate-amount-buttons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.cs-donate-amount-btn {
	padding: 12px;
	background: #f5f5f5;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	color: #1a1a1a;
	font-family: inherit;
}

.cs-donate-amount-btn:hover {
	border-color: #999;
	background: #fafafa;
}

.cs-donate-amount-btn.active {
	background: #e91e63;
	border-color: #e91e63;
	color: white;
}

/* Custom Amount */
.cs-donate-custom-amount {
	display: flex;
	flex-direction: column;
}

.cs-donate-input-group {
	position: relative;
	display: flex;
	align-items: center;
}

.cs-donate-input {
	width: 100%;
	padding: 12px;
	padding-right: 50px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.cs-donate-input:focus {
	outline: none;
	border-color: #e91e63;
	box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.cs-donate-currency-label {
	position: absolute;
	right: 12px;
	font-size: 13px;
	font-weight: 600;
	color: #999;
	pointer-events: none;
}

.cs-donate-email input {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}

.cs-donate-email input:focus {
	outline: none;
	border-color: #e91e63;
	box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.required {
	color: #e91e63;
}

/* Recurring Donation */
.cs-donate-recurring {
	margin: 0;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 6px;
	border-left: 4px solid #e91e63;
	margin-bottom: 15px;
}

.cs-donate-recurring .description {
	margin-top: 8px !important;
	margin-bottom: 0 !important;
}

/* GDPR Consent */
.cs-donate-gdpr {
	margin: 0;
}

.cs-donate-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #666;
	cursor: pointer;
	user-select: none;
}

.cs-donate-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	cursor: pointer;
	accent-color: #e91e63;
	flex-shrink: 0;
}

/* Submit Button */
.cs-donate-submit-btn {
	padding: 14px 20px;
	background: #e91e63;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	font-family: inherit;
	letter-spacing: 0.3px;
}

.cs-donate-submit-btn:hover {
	background: #c2185b;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.cs-donate-submit-btn:active {
	transform: translateY(0);
}

.cs-donate-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Error Message */
.cs-donate-error-message {
	padding: 12px;
	background: #fee;
	color: #c33;
	border-radius: 6px;
	font-size: 13px;
	border-left: 4px solid #c33;
}

/* Loading State */
.cs-donate-loading {
	text-align: center;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.cs-donate-spinner {
	border: 3px solid #f0f0f0;
	border-top-color: #e91e63;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	animation: spin 0.8s linear infinite;
}

.cs-donate-loading p {
	color: #666;
	font-size: 13px;
	margin: 0;
}

/* Modal Footer */
.cs-donate-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid #f0f0f0;
	background: #fafafa;
}

.cs-donate-secure-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 12px;
	color: #666;
	margin: 0;
}

.cs-donate-secure-badge svg {
	color: #28a745;
}

/* ============================================
   Animations
   ============================================ */

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes heartbeat {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 600px) {
	.cs-donate-floating-button-container {
		bottom: 15px;
	}

	.cs-donate-floating-button-container.cs-donate-position-right {
		right: 15px;
	}

	.cs-donate-floating-button-container.cs-donate-position-left {
		left: 15px;
	}

	.cs-donate-floating-button {
		padding: 10px 14px;
		font-size: 13px;
	}

	.cs-donate-button-text {
		display: none;
	}

	.cs-donate-floating-button {
		border-radius: 50%;
		width: 50px;
		height: 50px;
		justify-content: center;
	}

	.cs-donate-modal-content {
		width: 95%;
		max-width: 100%;
		border-radius: 16px;
		max-height: 85vh;
	}

	.cs-donate-modal-header {
		padding: 20px;
	}

	.cs-donate-modal-header h2 {
		font-size: 20px;
	}

	.cs-donate-modal-body {
		padding: 20px;
	}

	.cs-donate-amount-buttons {
		grid-template-columns: repeat(2, 1fr);
	}

	.cs-donate-form {
		gap: 18px;
	}
}

@media (max-width: 400px) {
	.cs-donate-modal-header {
		padding: 16px;
	}

	.cs-donate-modal-header h2 {
		font-size: 18px;
	}

	.cs-donate-modal-body {
		padding: 16px;
	}

	.cs-donate-amount-buttons {
		grid-template-columns: 1fr;
	}

	.cs-donate-amount-btn {
		padding: 10px;
		font-size: 13px;
	}

	.cs-donate-submit-btn {
		padding: 12px;
		font-size: 14px;
	}
}

/* ============================================
   Divi Theme Compatibility
   ============================================ */

.et_pb_section .cs-donate-floating-button {
	all: revert;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: none;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.cs-donate-modal {
	all: revert;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
