/* WCS Donation System – styles for donation form and checkout */

.wcs-donation-wrapper {
	margin: 1em 0;
}

.wcs-donation-button {
	display: inline-block;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background-color: #23565B;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	text-decoration: none;
}

.wcs-donation-button:hover {
	background-color: #23565B;
}

.wcs-donation-button:focus {
	outline: 2px solid #23565B;
	outline-offset: 2px;
}

/* Form Styles */
.wcs-donation-form {
	margin-top: 2em;
	padding: 1.5em;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
}

.wcs-form-section {
	margin-bottom: 1.5em;
}

.wcs-form-section:last-child {
	margin-bottom: 0;
}

.wcs-form-section-title {
	margin: 0 0 1em 0;
	font-size: 1.2em;
	font-weight: 600;
	color: #333;
}

.wcs-form-row {
	display: flex;
	gap: 1em;
	margin-bottom: 1em;
}

.wcs-form-row .wcs-form-field {
	flex: 1;
	margin-bottom: 0;
}

.wcs-form-field {
	margin-bottom: 1em;
}

.wcs-form-field:last-child {
	margin-bottom: 0;
}

.wcs-form-label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: 500;
	color: #333;
}

.wcs-required {
	color: #d63638;
	margin-left: 0.25em;
}

.wcs-form-input,
.wcs-form-select, .wcs-form-textarea {
	width: 100%;
	padding: 0.75em;
	font-size: 1em;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
}

.wcs-form-input:focus,
.wcs-form-select:focus,
.wcs-form-textarea:focus {
	outline: 2px solid #23565B;
	outline-offset: 2px;
	border-color: #23565B;
}

.wcs-radio-label,
.wcs-checkbox-label {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	gap: 0.5em;
}

.wcs-radio-input,
.wcs-checkbox-input {
	margin-top: 0.2em;
	flex-shrink: 0;
}

.wcs-checkbox-wrapper {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 0.25em;
}

.wcs-checkbox-wrapper .wcs-checkbox-label {
	margin: 0;
}

.wcs-checkbox-wrapper .wcs-terms-link {
	color: #23565B;
	text-decoration: underline;
}

.wcs-checkbox-wrapper .wcs-terms-link:hover {
	color: #23565B;
}

.wcs-project-section {
	display: none;
}

.wcs-project-section.active {
	display: block;
}

.wcs-quick-amounts {
	display: flex;
	gap: 0.5em;
	flex-wrap: wrap;
	margin-top: 0.5em;
}

.wcs-quick-amount-btn {
	padding: 0.5em 1em;
	font-size: 0.9em;
	color: #23565B;
	background-color: #fff;
	border: 1px solid #23565B;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.wcs-quick-amount-btn:hover {
	background-color: #2F6E73 ;
	color: #fff;
}

.wcs-submit-button {
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background-color: #23565B;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	width: 100%;
}

.wcs-submit-button:hover {
	background-color: #2F6E73;
}

.wcs-submit-button:focus {
	outline: 2px solid #2F6E73;
	outline-offset: 2px;
}

.woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; }
.woocommerce-checkout #customer_details .col-1 { width: 100%; float: none; }

/* Hide totals on checkout page */
.woocommerce-checkout-review-order-table .cart-subtotal,
.woocommerce-checkout-review-order-table .order-total,
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal,
.woocommerce-checkout-review-order-table tfoot tr.order-total {
	display: none !important;
}


/* Thank You page - Order received notice styling */
.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
	font-weight: 600;
}

/* Payment method images below donation form */
.wcs-payment-images {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 15px;
	background-color: rgb(255, 255, 255);
	padding: 20px;
	border-radius: 10px;
	margin-top: 20px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: auto;
}

.wcs-payment-image {
	max-width: 150px;
	max-height: 150px;
	min-width: 0;
	width: auto;
	height: auto;
	flex-shrink: 1;
	display: block;
	object-fit: contain;
}

/* Responsive adjustments for payment images */
@media (max-width: 768px) {
	.wcs-payment-images {
		gap: 10px;
		padding: 15px;
	}
	
	.wcs-payment-image {
		max-width: 100px;
		max-height: 100px;
	}
}

@media (max-width: 480px) {
	.wcs-payment-images {
		gap: 8px;
		padding: 10px;
	}
	
	.wcs-payment-image {
		max-width: 80px;
		max-height: 80px;
	}
}

/* Checkout page - Place order button styling */
.woocommerce-checkout #place_order, .woocommerce #payment #place_order {
	background-color: #23565B !important;
	border-color: #23565B !important;
	display: block;
    margin: 0 auto;
	float: unset !important;
	width: 100%;
}
