/**
 * MA Cart Subscription Upgrade -- Styles v2.8.0
 *
 * Two UI modes:
 *  1. One-time items: green "Subscribe & Save 25%" button (unchanged)
 *  2. Subscribed items: segmented pill bar for delivery frequency
 */


a.fkcart-select-options {
	display: none !important;
}
#fkcart-modal .fkcart-slider-body .fkcart-item-wrap .fkcart--item {
	gap: 10px !important;
}
fkcart-modal .fkcart-panel:not(.fkwcs_fkcart_gpay_wrapper) {
	padding-left: 12px !important;
}

/* ---------------------------------------------------------------------------
   Wrapper -- shared base
   --------------------------------------------------------------------------- */

body .ma-csu-wrapper {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 5px 0 5px;
	padding: 0;
	text-align: center;
	background: none;
	border: none;
	box-shadow: none;
	font-size: 11px;
	line-height: 1;
}

/* ---------------------------------------------------------------------------
   MODE 1: One-time -- Upgrade button
   height: auto overrides Woodmart --wd-form-height: 42px
   --------------------------------------------------------------------------- */

body .ma-csu-wrapper .ma-csu-upgrade-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: auto;
	min-width: 210px;
	max-width: 90%;
	height: auto;
	min-height: 0;
	padding: 8px 14px;
	margin: 0;

	border-radius: 999px;
	border: none;
	outline: none;

	background: linear-gradient(135deg, #2ecc71 0%, #22a855 100%);
	color: #fff;

	font-size: 11px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1;
	letter-spacing: 0.2px;
	text-transform: none;
	white-space: nowrap;
	text-decoration: none;
	vertical-align: middle;

	box-shadow: 0 1px 5px rgba(34, 168, 85, 0.28);
	cursor: pointer;
	transition: box-shadow 0.18s ease, transform 0.13s ease;
}

body .ma-csu-wrapper .ma-csu-upgrade-btn:hover {
	box-shadow: 0 3px 10px rgba(34, 168, 85, 0.38);
	transform: translateY(-1px);
	color: #fff;
	background: linear-gradient(135deg, #2ecc71 0%, #22a855 100%);
}

body .ma-csu-wrapper .ma-csu-upgrade-btn:active,
body .ma-csu-wrapper .ma-csu-upgrade-btn:focus {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(34, 168, 85, 0.20);
	color: #fff;
	outline: none;
}

body .ma-csu-wrapper .ma-csu-upgrade-btn:focus-visible {
	outline: 2px solid #27ae60;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.2);
}

/* ---------------------------------------------------------------------------
   MODE 2: Subscribed -- Segmented pill bar
   --------------------------------------------------------------------------- */

body .ma-csu-wrapper.ma-csu-mode-subscribed {
	margin: 4px 0 3px;
}

body .ma-csu-wrapper .ma-csu-pill-bar {
	display: inline-flex;
	gap: 0;
	border: 1.5px solid #ccc;
	border-radius: 7px;
	overflow: hidden;
}

body .ma-csu-wrapper .ma-csu-freq-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: auto;
	min-height: 0;
	padding: 7px 14px;
	margin: 0;

	border: none;
	border-right: 1px solid #ccc;
	outline: none;
	background: #fff;
	color: #555;

	font-size: 11px;
	font-weight: 500;
	font-family: inherit;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

body .ma-csu-wrapper .ma-csu-freq-pill:last-child {
	border-right: none;
}

body .ma-csu-wrapper .ma-csu-freq-pill:hover:not(.ma-csu-pill-active) {
	background: #f0faf4;
	color: #1e6b3a;
}

body .ma-csu-wrapper .ma-csu-freq-pill.ma-csu-pill-active {
	background: #27ae60;
	color: #fff;
	font-weight: 600;
	cursor: default;
}

body .ma-csu-wrapper .ma-csu-freq-pill:focus-visible {
	outline: 2px solid #27ae60;
	outline-offset: -2px;
}

/* ---------------------------------------------------------------------------
   Loading state (shared)
   --------------------------------------------------------------------------- */

body .ma-csu-wrapper.ma-csu-loading .ma-csu-upgrade-btn {
	opacity: 0.45;
	cursor: wait;
	pointer-events: none;
}

body .ma-csu-wrapper.ma-csu-loading .ma-csu-freq-pill {
	pointer-events: none;
	opacity: 0.5;
	cursor: wait;
}

body .ma-csu-wrapper.ma-csu-loading .ma-csu-freq-pill.ma-csu-pill-active {
	opacity: 0.7;
}

/* ---------------------------------------------------------------------------
   Error (shared)
   --------------------------------------------------------------------------- */

body .ma-csu-wrapper .ma-csu-error {
	display: inline-block;
	margin-top: 4px;
	padding: 2px 10px;
	background: #fff5f5;
	border: 1px solid #fcc;
	border-radius: 999px;
	color: #c0392b;
	font-size: 10px;
	line-height: 1.4;
}
