/* EE Payments - Mitchell Bennis - mitch@elementengage.com */

#eePay {
	max-width: 600px;
	margin: 0 auto;
	/* border: 1px dashed #999; */
}

/* Payment Form Styling */
#eePay form {
	margin: 20px auto;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background-color: #f9f9f9;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Fieldset Styling for Clear Grouping */
#eePay fieldset {
	border: 2px solid #ccc;
	padding: 10px 15px;
	margin-bottom: 15px;
	border-radius: 5px;
	background-color: #ffffff;
}

/* Legend Styling */
#eePay fieldset legend {
	font-weight: bold;
	padding: 0 10px;
	margin-bottom: 10px;
	font-size: 1.1em;
	color: #333;
}

/* Label Styling */
#eePay label {
	display: flex;
	align-items: center;
	font-weight: 600;
	color: #333;
	margin-bottom: 10px;
	cursor: pointer;
}

/* Input Alignment */
#eePay label input[type="radio"],
#eePay label input[type="checkbox"] {
	margin-right: 8px;
}

/* Pay Amount and Recurring Checkbox Alignment */
#eePay #set-amount {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 5px;
}

/* Ensure Checkbox is Properly Aligned */
#eePay label[for="recurring"] {
	display: flex;
	align-items: center;
	margin-left: 10px;
	font-weight: normal;
}

/* Style All Text and Number Inputs */
#eePay input[type="text"],
#eePay input[type="url"],
#eePay input[type="email"],
#eePay input[type="number"],
#eePay input[type="password"],
#eePay input[type="tel"] {
	width: 100%;
	padding: 8px 10px;
	margin-top: 5px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	background-color: #ffffff;
}

/* Hourly Work Input Section */
#eePay #hourly-quantity {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 5px;
}

/* Hide Hourly Input Initially */
#eePay #hourly-quantity.hidden {
	display: none;
}

/* Button Styling */
#eePay button[type="submit"] {
	display: block;
	width: 100%;
	padding: 12px;
	background-color: #0073aa;
	border: none;
	border-radius: 4px;
	color: white;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

#eePay button[type="submit"]:hover {
	background-color: #005177;
}


/* Center and style the spinner */
#eePaySpinner {
	display: none; /* Hidden by default */
	text-align: center;
	margin-top: 15px;
	padding: 10px;
}

#eePaySpinner img {
	width: 60px; /* Adjust size */
	height: 60px;
	animation: spin 1s linear infinite;
}

/* Loading text */
#eePaySpinner p {
	font-size: 14px;
	color: #555;
	margin-top: 5px;
	font-weight: bold;
}

/* Disable button styling when processing */
button[type="submit"]:disabled {
	background-color: #ccc !important;
	cursor: not-allowed !important;
	opacity: 0.6;
}

/* Spinner animation */
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}






#eePaymentSuccess {
	text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
	#eePay #set-amount,
	#eePay #hourly-quantity {
		flex-direction: column;
		align-items: flex-start;
	}

	#eePay input[type="number"] {
		width: 100%;
	}
}



#eeMessage {
	margin-top: 15px;
	padding: 10px;
	border-radius: 4px;
	font-size: 14px;
	color: white;
	text-align: center;
}

#eeMessage.success {
	background-color: #4caf50;
}

#eeMessage.error {
	background-color: #f44336;
}


#eeCreateAccount {
	float: right;
	/* color: #EEE;
	background: #333;
	padding: .5em .8em;
	border-radius: .8em; */
}


/* Account Information Section */
#eeToggleFormButton {
	font-size: 1.3em;
	font-weight: bold;
	color: #0073aa;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
}

#eeToggleFormButton:hover {
	color: #005177;
}

/* Toggle Icon - Rotates when expanded */
#eeToggleIcon {
	transition: transform 0.3s ease;
}

#eeUserInfoFormContainer {
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background-color: #f9f9f9;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin-top: 10px;
}

/* Form Elements */
#eeUserInfoForm {
	max-width: 500px;
	margin: 0 auto;
}

/* Label Styling */
#eeUserInfoForm label {
	display: block;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

/* Input Fields */
#eeUserInfoForm input[type="email"],
#eeUserInfoForm input[type="text"],
#eeUserInfoForm input[type="tel"],
#eeUserInfoForm input[type="url"],
#eeUserInfoForm input[type="password"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 14px;
	background-color: #ffffff;
	margin-bottom: 15px;
}

/* Submit Button */
#eeUserInfoForm button[type="submit"] {
	width: 100%;
	padding: 12px;
	background-color: #0073aa;
	border: none;
	border-radius: 5px;
	color: white;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

#eeUserInfoForm button[type="submit"]:hover {
	background-color: #005177;
}


/* Payment History */
.eePay-history-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 15px;
	margin-bottom: 30px;
}

.eePay-history-card {
	background-color: #f9f9f9;
	border-radius: 6px;
	padding: 15px;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
	border-left: 5px solid #0073aa;
	position: relative;
}

/* Hide older transactions by default */
.eePay-hidden {
	display: none;
}

/* Show More / Show Less button */
.eePay-toggle {
	display: block;
	margin-top: 10px;
	background: #0073aa;
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 5px;
	font-size: 14px;
	cursor: pointer;
}

.eePay-toggle:hover {
	background: #005b88;
}

/* Style for older transactions */
.eePay-old-transaction {
	background: #f8f8f8;
	padding: 10px;
	margin-top: 5px;
	border-radius: 5px;
	border-left: 3px solid #0073aa;
}



/* Date at the top */
.eePay-date {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 5px;
	color: #333;
}

/* General styling */
.eePay-history-card p {
	margin: 5px 0;
	font-size: 14px;
}

.eePay-history-card p strong {
	color: #333;
	font-weight: bold;
}

/* Cancel Recurring Button */
.eePay-cancel {
	display: block;
	float: right;
	background: #d9534f;
	color: white;
	border: none;
	padding: 8px 12px;
	margin-top: 10px;
	border-radius: 5px;
	font-size: 14px;
	cursor: pointer;
}

.eePay-cancel:hover {
	background: #c9302c;
}


/* Better spacing on very small screens */
@media (max-width: 480px) {
	.eePay-history-card {
		padding: 12px;
	}

	.eePay-history-card p {
		font-size: 13px;
	}
}




/* Mobile-Friendly Adjustments */
@media (max-width: 600px) {
	#eeUserInfoForm {
		max-width: 100%;
	}

	#eeUserInfoForm input {
		font-size: 16px;
	}

	#eeToggleFormButton {
		font-size: 1.2em;
	}
}



.eePay-cancel-sub {
	background: #dc3232;
	color: white;
	padding: 5px 10px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.eePay-cancel-sub:hover {
	background: #a70000;
}




#eeLog {
	max-width: 600px;
	margin: 10px auto;
}

.eeCentered {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.eeRight {
	text-align: right;
	float: right;
}

.eeHide {
	display: none !important;
}