/* ===== Sanad Donation Frequency Toggle ===== */

/* Hide the original recurring checkbox, label, and subscription dropdowns */
.row3 .recurring-label,
.row3 .donation_subscription,
.row3 .wc-label-radio.recurring-label,
.is_recurring_label,
.wc_donation_subscription_table {
	display: none !important;
}

/* Toggle container */
.sanad-freq-toggle {
	display: flex;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 16px;
	max-width: 100%;
	background: #f5f5f5;
}

/* Hide the radio inputs */
.sanad-freq-toggle input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Toggle button labels */
.sanad-freq-toggle label {
	flex: 1;
	text-align: center;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
	color: #555;
	background: transparent;
	margin: 0;
	border: none;
	line-height: 1.4;
	user-select: none;
}

/* Active state */
.sanad-freq-toggle input[type="radio"]:checked + label {
	background: #3498db;
	color: #fff;
}

/* Hover on inactive */
.sanad-freq-toggle label:hover {
	background: #e8e8e8;
}

.sanad-freq-toggle input[type="radio"]:checked + label:hover {
	background: #2980b9;
}

/* RTL adjustments */
[dir="rtl"] .sanad-freq-toggle,
.rtl .sanad-freq-toggle {
	direction: rtl;
}

/* ===== Simplify checkout order summary ===== */

.wc-donation-body .woocommerce-checkout-review-order-table thead,
.wc-donation-body .woocommerce-checkout-review-order-table tbody,
.wc-donation-body .woocommerce-checkout-review-order-table tr.cart-subtotal:not(.recurring-total),
.wc-donation-body .woocommerce-checkout-review-order-table tr.recurring-totals,
.wc-donation-body .woocommerce-checkout-review-order-table tr.recurring-total.cart-subtotal {
	display: none !important;
}

ul.wc_payment_methods.payment_methods.methods {
	display: none !important;
}

.woocommerce-privacy-policy-text {
    display: none !important;
}


.wc-donation-body .woocommerce-checkout-review-order-table {
	border-collapse: collapse;
}

.wc-donation-body .woocommerce-checkout-review-order-table tr.order-total th,
.wc-donation-body .woocommerce-checkout-review-order-table tr.order-total td {
	border-top: 1px solid #e0e0e0 !important;
}

.wc-donation-body .woocommerce-checkout-review-order-table tr.order-total.recurring-total {
	display: table-row !important;
}

/* Mobile */
@media (max-width: 480px) {
	.sanad-freq-toggle label {
		padding: 10px 12px;
		font-size: 14px;
	}
}


input.wc-donation-amount-field {
    border: 0 !important;
}
