/* ==========================================================================
   CAShaadi UI — Site-wide fixes
   --------------------------------------------------------------------------
   Migrated verbatim from the site-wide portion of WPCode #11641. The original
   snippet loaded in the site header (all pages), so this stylesheet is enqueued
   on every front-end page — NOT scoped to member screens.

   Keep the BuddyX off-canvas mobile menu fixed/off-screen so it does not inflate
   the header height on mobile (it was rendering position:static in-flow, creating
   a tall white gap below the header).
   ========================================================================== */

@media (max-width: 767px) {
	.main-navigation .primary-menu-container.buddyx-mobile-menu {
		position: fixed !important;
		top: 0;
		bottom: 0;
		right: 0;
		width: 340px;
		max-width: 85%;
		z-index: 9999;
		overflow: auto;
		opacity: 0;
		visibility: hidden;
		transform: translate3d(340px, 0, 0);
		transition: transform .25s ease, opacity .25s ease;
	}
	body.mobile-menu-opened .main-navigation .primary-menu-container.buddyx-mobile-menu {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
	}
}

/* --------------------------------------------------------------------------
   Hide the BuddyX widget-area sidebar site-wide + let content span full width.
   Migrated from WPCode #11612 (which echoed this from wp_head).
   -------------------------------------------------------------------------- */
#secondary,
.primary-sidebar,
.site-content .widget-area,
aside#secondary { display: none !important; }

.site-content #primary,
.site-content .content-area,
#primary.site-main {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}
.site-content,
.site-content .site-wrapper { display: block !important; }

/* --------------------------------------------------------------------------
   Hide the custom Caps Lock warning on the registration/signup form.
   Migrated from WPCode #11582.
   -------------------------------------------------------------------------- */
#caps-warning,
.caps-warning { display: none !important; }

/* --------------------------------------------------------------------------
   Support-email footer (migrated from WPCode #11691). Styles moved out of the
   PHP into this stylesheet. The general-sibling rule hides any duplicate footer
   so the plugin's copy and the still-active snippet's copy never both show.
   -------------------------------------------------------------------------- */
.csm-support-footer {
	text-align: center;
	padding: 14px 16px;
	font-size: 15px;
	color: #333;
	background: #f7f5ef;
	border-top: 1px solid #e5ddc8;
}
.csm-support-footer .csm-support-email {
	color: #b8860b;
	font-weight: 600;
	text-decoration: none;
}
.csm-support-footer ~ .csm-support-footer { display: none !important; }

/* --------------------------------------------------------------------------
   Premium upgrade / complete-profile buttons (migrated from WPCode #11579).
   Rendered by the premium module (gated); harmless when absent.
   -------------------------------------------------------------------------- */
.cashaadi-upgrade-btn,
.cashaadi-complete-profile-btn {
	display: inline-block;
	margin: 10px 0;
	padding: 11px 22px;
	border-radius: 10px;
	font-family: var(--csm-sans, ui-sans-serif, system-ui, sans-serif);
	font-weight: 700;
	text-decoration: none;
	color: #fff !important;
}
.cashaadi-upgrade-btn { background: var(--csm-blue, #2c5b8c); }
.cashaadi-upgrade-btn:hover { background: var(--csm-blue-press, #234a73); }
.cashaadi-complete-profile-btn { background: var(--csm-green, #6f9f2e); }
.cashaadi-complete-profile-btn:hover { background: var(--csm-green-press, #5e8926); }

/* "already a premium member" label that replaces the buy link (#11795) */
.cashaadi-already-premium {
	display: inline-block;
	font-weight: 700;
	color: var(--csm-green-press, #5e8926);
}

/* --------------------------------------------------------------------------
   Membership checkout styling (migrated from WPCode #11581). Pure CSS on the
   WooCommerce block checkout; safe alongside the snippet (idempotent).
   -------------------------------------------------------------------------- */
.wc-block-checkout,
.wp-block-woocommerce-checkout { max-width: 1100px; margin-left: auto; margin-right: auto; }
.wc-block-components-order-summary,
.wp-block-woocommerce-checkout-order-summary-block {
	background: #ffffff;
	border: 1px solid #eee;
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
	padding: 8px 4px;
}
.wc-block-components-order-summary-item__quantity { display: none !important; }
.wc-block-components-order-summary-item__image img { border-radius: 10px; }
.wc-block-components-totals-coupon { opacity: 0.85; }
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.wc-block-cart__submit-button {
	border-radius: 10px !important;
	font-weight: 700 !important;
	letter-spacing: 0.3px;
	background: #c2185b !important;
}
.wc-block-components-checkout-step__title { font-weight: 700; }
