/* MA Bundle Pricing — Frontend */
.ma-bp { margin: 0 0 16px; font-family: 'League Spartan', sans-serif; }

.ma-bp-heading {
	font-size: 12px; font-weight: 700; color: #6b7280;
	text-transform: uppercase; letter-spacing: .6px; margin: 0 0 10px;
}

/* Options */
.ma-bp-options { display: flex; flex-direction: column; gap: 8px; }

.ma-bp-opt {
	display: flex; align-items: center; gap: 12px;
	padding: 13px 16px; border: 2px solid #e5e7eb; border-radius: 12px;
	cursor: pointer; background: #fff;
	transition: border-color .15s, background .15s, box-shadow .15s;
	user-select: none;
}
.ma-bp-opt:hover { border-color: #b3f5b3; background: #fafffe; }
.ma-bp-opt--active {
	border-color: #39e938 !important; background: #fafffe;
	box-shadow: 0 0 0 3px rgba(57,233,56,.1);
}
.ma-bp-opt--best { background: linear-gradient(135deg,#fafffe,#f0fff0); }

/* Radio */
.ma-bp-radio {
	width: 20px; height: 20px; border: 2px solid #d1d5db; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0; transition: border-color .15s;
}
.ma-bp-opt--active .ma-bp-radio { border-color: #39e938; }
.ma-bp-radio-dot {
	width: 10px; height: 10px; background: #39e938; border-radius: 50%;
	opacity: 0; transform: scale(.3); transition: opacity .15s, transform .15s;
}
.ma-bp-opt--active .ma-bp-radio-dot { opacity: 1; transform: scale(1); }

/* Content */
.ma-bp-opt-content { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ma-bp-opt-label { font-size: 15px; font-weight: 600; color: #111827; }
.ma-bp-badge {
	display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
	background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 10px; width: fit-content;
}
.ma-bp-badge--best { background: #39e938; color: #052e04; }

/* Right side */
.ma-bp-opt-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.ma-bp-opt-price { font-size: 16px; font-weight: 700; color: #111827; }
.ma-bp-opt-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; color: inherit; }
.ma-bp-opt-sub { font-size: 11px; color: #9ca3af; }

/* Qty ctrl */
.ma-bp-qty-ctrl {
	display: flex; align-items: center; gap: 6px;
	background: #f3f4f6; border-radius: 8px; padding: 3px 8px; margin-bottom: 2px;
}
.ma-bp-qty-btn {
	background: none; border: none; font-size: 15px; font-weight: 700;
	color: #374151; cursor: pointer; padding: 0 3px; line-height: 1;
	transition: color .15s;
}
.ma-bp-qty-btn:hover { color: #39e938; }
.ma-bp-qty-num { font-size: 14px; font-weight: 700; color: #111; min-width: 18px; text-align: center; }

/* Bar */
.ma-bp-bar {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: 12px; padding: 8px 2px;
}
.ma-bp-bar-total { display: flex; align-items: baseline; gap: 8px; }
.ma-bp-bar-label { font-size: 13px; color: #6b7280; }
.ma-bp-bar-price { font-size: 20px; font-weight: 800; color: #111827; }
.ma-bp-bar-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; color: inherit; }

.ma-bp-prefs-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'League Spartan', sans-serif;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: black;
    background-color: transparent !important;
    padding: 0;
    cursor: pointer;
    transition: color .15s;
	flex-basis: fit-content !important;
	border-radius: 0px !important;
	padding: 5px !important;
}
.ma-bp-chevron { transition: transform .2s; }
.ma-bp-prefs-btn[aria-expanded="true"] .ma-bp-chevron { transform: rotate(180deg); }
.ma-bp-prefs-btn[aria-expanded="true"] .ma-bp-chevron { transform: rotate(180deg); }

/* Preferences panel */
.ma-bp-prefs {
	margin-top: 10px;
	animation: ma-bp-slide-in .25s ease;
}
@keyframes ma-bp-slide-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.ma-bp-prefs-list { display: flex; flex-direction: column; gap: 10px; }

/* Item card */
.ma-bp-card { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.ma-bp-card-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 9px 14px; background: #f9fafb; border-bottom: 1px solid #f3f4f6;
}
.ma-bp-card-title { font-size: 13px; font-weight: 700; color: #374151; }
.ma-bp-copy {
	font-size: 11px; font-weight: 600; color: #6b7280;
	background: none; border: 1px solid #e5e7eb; border-radius: 5px;
	padding: 3px 8px; cursor: pointer; font-family: 'League Spartan', sans-serif;
	transition: border-color .15s, color .15s;
}
.ma-bp-copy:hover { border-color: #39e938; color: #16a34a; }
.ma-bp-card-fields { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }

/* Fields */
.ma-bp-card-fields .ma-bp-field { display: flex; flex-direction: column; gap: 5px; }
/* Autocomplete */
.ma-bp-ac-wrap { position: relative; }
.ma-bp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.ma-bp-tag {
	display: flex; align-items: center; gap: 4px;
	background: #f0fff0; border: 1px solid #d1fad1; color: #166534;
	font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
}
.ma-bp-tag-x { cursor: pointer; color: #9ca3af; font-size: 14px; line-height: 1; transition: color .15s; }
.ma-bp-tag-x:hover { color: #dc2626; }
.ma-bp-dropdown {
	position: absolute; top: 100%; left: 0; right: 0;
	background: #fff; border: 1px solid #d1d5db; border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,.1); z-index: 999;
	max-height: 180px; overflow-y: auto; display: none;
}
.ma-bp-dropdown.open { display: block; }
.ma-bp-dd-item { padding: 9px 12px; font-size: 13px; cursor: pointer; transition: background .12s; }
.ma-bp-dd-item:hover { background: #f0fff0; color: #166534; }

/* Our ATC button */
.ma-bp-atc {
	    font-family: "League Spartan", Sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    border-radius: 8px;
    padding: 15px;
    background-color: #39e938;
    transition: all .2s;
	color: white;
	padding: 10px;
}
.ma-bp-atc:hover { background: #2dd42c; transform: translateY(-1px); }
.ma-bp-atc:active { transform: translateY(0); }
.ma-bp-atc:disabled { opacity: .6; cursor: not-allowed; transform: none; }


.ma-bp-opt input[type="radio"] {
    display: none !important;
}

.ma-bp-atc-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.ma-bp-atc-wrap .ma-bp-atc {
    flex: 1;
    margin-top: 0;
}
.ma-bp-atc-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 12px 10px;
    flex-shrink: 0;
}

#ma-bp-atc-qty .minus,
#ma-bp-atc-qty .plus {
    display: none !important;
}

.ma-bp-error {
    margin-top: 10px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    font-family: 'League Spartan', sans-serif;
}

