/*
 * Career Services Package Manager - Front-end styles
 *
 * Styles the pricing-table style Add to Cart buttons rendered inside the
 * Elementor Loop Grid, the "featured" Career Success Package card, and
 * hides the "View Cart" mini-cart button so customers go straight to
 * checkout.
 */

/* ---------------------------------------------------------------------
 * Order buttons (all states)
 * ------------------------------------------------------------------- */

.cspm-order-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 20px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 15px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

/* Default / "Order Now" state. */
.cspm-order-button.cspm-btn-default {
	background-color: #1e3a8a;
	color: #ffffff;
	border: 2px solid #1e3a8a;
}

.cspm-order-button.cspm-btn-default:hover {
	background-color: #14285f;
	border-color: #14285f;
	transform: translateY(-1px);
}

/* Selected state - product is currently in the cart. */
.cspm-order-button.cspm-btn-selected {
	background-color: #15803d;
	color: #ffffff;
	border: 2px solid #15803d;
}

.cspm-order-button.cspm-btn-selected:hover {
	background-color: #116430;
	border-color: #116430;
}

/* Included-in-package (disabled) state. */
.cspm-order-button.cspm-btn-included {
	background-color: #e5e7eb;
	color: #6b7280;
	border: 2px solid #e5e7eb;
	cursor: not-allowed;
	pointer-events: none;
}

/* Loading state applied briefly by JS while an AJAX request is in flight. */
.cspm-order-button.cspm-btn-loading {
	opacity: 0.6;
	cursor: wait;
	pointer-events: none;
}

/* Inline error/notice shown beneath a button after a blocked action. */
.cspm-inline-notice {
	display: block;
	margin-top: 8px;
	padding: 8px 10px;
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 13px;
	border-radius: 4px;
}

/* ---------------------------------------------------------------------
 * Featured Career Success Package card
 * ------------------------------------------------------------------- */

.featured {
	position: relative;
	overflow: visible;
	border: 2px solid #15803d !important;
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(21, 128, 61, 0.18);
	transform: scale(1.03);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	z-index: 1;
}

.featured:hover {
	transform: scale(1.06);
	box-shadow: 0 10px 26px rgba(21, 128, 61, 0.28);
}

.featured::before {
	content: 'BEST VALUE';
	position: absolute;
	top: 14px;
	right: -34px;
	background-color: #15803d;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 5px 40px;
	transform: rotate(45deg);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	z-index: 2;
	pointer-events: none;
}

/* ---------------------------------------------------------------------
 * Mini cart: hide "View Cart", keep only "Proceed to Checkout"
 * ------------------------------------------------------------------- */

.widget_shopping_cart .woocommerce-mini-cart__buttons .wc-forward:not(.checkout),
.widget_shopping_cart_content .woocommerce-mini-cart__buttons .wc-forward:not(.checkout) {
	display: none !important;
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .checkout,
.widget_shopping_cart_content .woocommerce-mini-cart__buttons .checkout {
	width: 100%;
}
