/* MA Product Fields - Frontend */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700&display=swap');

.ma-pf-fields-wrap * {
	font-family: 'League Spartan', sans-serif !important;
	box-sizing: border-box;
}

/* ===== FIELD WRAPPER ===== */
.ma-pf-fields-wrap {
	margin: 20px 0;
}

.ma-pf-field {
	margin-bottom: 22px;
}

/* ===== LABEL ===== */
.ma-pf-label {
	display: block;
	font-family: 'League Spartan', sans-serif !important;
	font-weight: 600;
	font-size: 16px;
	color: #1a1a1a;
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}

.ma-pf-required {
	color: #e53e3e;
	margin-left: 2px;
}

/* ===== DESCRIPTION ===== */
.ma-pf-field-desc {
	font-family: 'League Spartan', sans-serif !important;
	font-size: 13px;
	color: #888;
	margin: 6px 0 0;
	line-height: 1.4;
}

/* ===== TEXT INPUT (bez autocomplete) ===== */
.ma-pf-text-input {
	width: 100% !important;
	font-family: 'League Spartan', sans-serif !important;
	font-size: 15px !important;
	color: #1a1a1a !important;
	background: #fff !important;
	border: 1.5px solid #e2e2e2 !important;
	border-radius: 10px !important;
	padding: 12px 16px !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color .2s !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	line-height: 1 !important;
}

.ma-pf-text-input::placeholder {
	color: #aaa !important;
	font-weight: 400 !important;
}

.ma-pf-text-input:focus {
	border-color: #999 !important;
	box-shadow: none !important;
}

/* ===== AUTOCOMPLETE BOX ===== */
.ma-pf-autocomplete-wrap {
	position: relative;
}

.ma-pf-chips-input-box {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 6px;
	width: 100%;
	background: #fff;
	border: 1.5px solid #e2e2e2;
	border-radius: 10px;
	cursor: text;
	transition: border-color .2s;
}

.ma-pf-chips-input-box:focus-within {
	border-color: #999;
}

/* ===== CHIP ===== */
.ma-pf-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #f0f0f0;
	color: #1a1a1a;
	border-radius: 6px;
	padding: 4px 10px 4px 12px;
	font-family: 'League Spartan', sans-serif !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	animation: ma-chip-in .15s ease;
	margin: 5px;
}

@keyframes ma-chip-in {
	from { opacity:0; transform:scale(.85); }
	to   { opacity:1; transform:scale(1); }
}

.ma-pf-chip-remove {
	background: none;
	border: none;
	cursor: pointer;
	color: #888;
	font-size: 15px;
	line-height: 1;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	transition: all .15s;
	flex-shrink: 0;
	flex-basis: auto !important;
}

.ma-pf-chip-remove:hover {
	background: #ddd;
	color: #333;
}

/* ===== INPUT W BOXIE ===== */
.ma-pf-ac-input {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 4px 0 !important;
	margin: 0 !important;
	background: transparent !important;
	font-family: 'League Spartan', sans-serif !important;
	font-size: 15px !important;
	color: #1a1a1a !important;
	flex: 1;
	min-width: 120px;
	width: auto !important;
	line-height: 1 !important;
}

.ma-pf-ac-input::placeholder {
	color: #aaa !important;
	font-weight: 400 !important;
}

/* ===== DROPDOWN ===== */
.ma-pf-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1.5px solid #e2e2e2;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0,0,0,.10);
	z-index: 9999;
	max-height: 230px;
	overflow-y: auto;
	animation: ma-drop-in .15s ease;
}

.ma-pf-dropdown.is-open {
	display: block;
}

@keyframes ma-drop-in {
	from { opacity:0; transform:translateY(-6px); }
	to   { opacity:1; transform:translateY(0); }
}

/* Scrollbar */
.ma-pf-dropdown::-webkit-scrollbar { width: 5px; }
.ma-pf-dropdown::-webkit-scrollbar-track { background: transparent; }
.ma-pf-dropdown::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

/* ===== DROPDOWN ITEM ===== */
.ma-pf-dropdown-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 16px;
	font-family: 'League Spartan', sans-serif !important;
	font-size: 14px;
	color: #1a1a1a;
	cursor: pointer;
	border-bottom: 1px solid #f5f5f5;
	transition: background .12s;
	user-select: none;
}

.ma-pf-dropdown-item:last-child {
	border-bottom: none;
}

.ma-pf-dropdown-item:hover {
	background: #f8f8f8;
}

.ma-pf-dropdown-item.is-selected {
	background: #f0f0f0 !important;
	color: #1a1a1a !important;
	font-weight: 600 !important;
}


/* Brak wyników */
.ma-pf-dropdown-empty {
	padding: 14px 16px;
	font-family: 'League Spartan', sans-serif !important;
	font-size: 13px;
	color: #aaa;
	text-align: center;
}


/* ===== SELECT ===== */
.ma-pf-select {
	width: 100% !important;
	font-family: 'League Spartan', sans-serif !important;
	font-size: 15px !important;
	color: #1a1a1a !important;
	background: #fff !important;
	border: 1.5px solid #e2e2e2 !important;
	border-radius: 10px !important;
	padding: 12px 16px !important;
	outline: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	line-height: 1 !important;
}

.ma-pf-select:focus {
	border-color: #999 !important;
}

/* ===== TOGGLE ===== */
.ma-pf-toggle-wrap {
	margin-bottom: 4px;
}

.ma-pf-toggle-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.ma-pf-toggle-text {
	flex: 1;
}

.ma-pf-toggle-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
	margin-top: 2px;
	cursor: pointer;
}

.ma-pf-toggle-switch input {
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	position: absolute !important;
}

.ma-pf-toggle-slider {
	position: absolute;
	inset: 0;
	background: #e5e7eb;
	border-radius: 50px;
	transition: .3s;
	cursor: pointer;
}

.ma-pf-toggle-slider::before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: .3s;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.ma-pf-toggle-input:checked + .ma-pf-toggle-slider {
	background: #39e938;
}

.ma-pf-toggle-input:checked + .ma-pf-toggle-slider::before {
	transform: translateX(20px);
}

.cart-item-attribute.cart-item-addon .addon-label {
    font-family: "League Spartan", sans-serif !important;
    font-weight: 600;
    color: black;
}

.cart-item-attribute.cart-item-addon .addon-value {
    font-family: "League Spartan", sans-serif !important;
    font-weight: 400;
    color: black;
}