/* ═══════════════════════════════════════════════════════════════════════════
   Add Multiple Variations to Cart — Frontend CSS
   Version 2.1.0
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Native style ─────────────────────────────────────────────────────────── */
.wc-locked-variations-container {
	margin: 20px 0;
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f9f9f9;
}
.wc-locked-variations-list { margin: 10px 0; }

.wc-locked-variation-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	margin-bottom: 8px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 3px;
}
.wc-locked-variation-info  { display: flex; align-items: center; }
.wc-locked-variation-image { width: 50px; height: 50px; margin-right: 10px; object-fit: cover; border-radius: 3px; }
.wc-locked-variation-details  { display: flex; flex-direction: column; }
.wc-locked-variation-attributes { font-weight: bold; margin-bottom: 3px; }
.wc-locked-variation-price { color: #77a464; font-size: .9em; }
.wc-locked-variation-actions { display: flex; align-items: center; }
.wc-locked-variation-qty   { width: 50px; margin-right: 10px; text-align: center; }
.wc-remove-locked-variation { color: #a00; text-decoration: none; font-size: 1.2em; }
.wc-remove-locked-variation:hover { color: #dc3232; }

.wc-add-locked-to-cart,
.wc-lock-variation-btn { display: inline-block; padding: 10px 20px; text-decoration: none; border-radius: 3px; }
.wc-multiple-variation-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ── Matrix style ─────────────────────────────────────────────────────────── */
.xyno-matrix-wrapper {
	margin: 20px 0;
	font-size: 14px;
}

.xyno-matrix-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.xyno-matrix-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 300px;
}

.xyno-matrix-table th,
.xyno-matrix-table td {
	padding: 8px 10px;
	border: 1px solid #ddd;
	text-align: center;
	vertical-align: middle;
}

.xyno-matrix-corner,
.xyno-matrix-col-header {
	font-weight: 600;
	white-space: nowrap;
}

.xyno-matrix-row-label {
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
}

/* Available cell */
.xyno-matrix-cell {
	background: #fff;
	min-width: 80px;
}

/* Out-of-stock cell */
.xyno-matrix-cell--oos {
	background: #f9f9f9;
}

/* Non-existent combination */
.xyno-matrix-cell--na {
	background: #f2f2f2;
}
.xyno-matrix-na {
	color: #bbb;
	font-size: 18px;
}

/* Qty input inside cell */
.xyno-mx-amount {
	width: 58px;
	text-align: center;
	padding: 4px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 13px;
}
.xyno-mx-amount:focus { border-color: #7f54b3; outline: none; box-shadow: 0 0 0 1px #7f54b3; }
.xyno-mx-amount::placeholder { color: #aaa; }

/* Cell price + stock badge */
.xyno-matrix-cell-price {
	font-size: 11px;
	color: #77a464;
	margin-top: 4px;
}
.xyno-matrix-stock-badge {
	font-size: 10px;
	color: #c0392b;
	margin-top: 2px;
	font-weight: 600;
}
.xyno-matrix-oos-label {
	font-size: 11px;
	color: #aaa;
	display: block;
	padding: 4px 0;
}

/* Footer summary */
.xyno-matrix-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 12px 0;
	border-top: 1px solid #eee;
}
.xyno-matrix-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	flex: 1;
}
.xyno-matrix-summary-item {
	font-size: 13px;
	color: #333;
}
.xyno-matrix-summary-item strong {
	font-weight: 700;
	margin-left: 4px;
}

.xyno-matrix-atc-btn {
	padding: 10px 22px !important;
	font-size: 14px !important;
	border: none !important;
	cursor: pointer;
	border-radius: 3px !important;
	transition: opacity .2s;
}
.xyno-matrix-atc-btn:disabled { opacity: .45; cursor: not-allowed; }
.xyno-matrix-atc-btn:not(:disabled):hover { opacity: .85; }

/* (legacy — no longer used, notices now render in WC's own top wrapper) */

/* Responsive: small screens */
@media (max-width: 640px) {
	.xyno-matrix-footer { flex-direction: column; align-items: flex-start; }
	.xyno-mx-amount    { width: 48px; }
}

/* Matrix add-to-cart notice, inserted into WooCommerce's own notices wrapper */
.woocommerce-notices-wrapper .woocommerce-message {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

/* Self-contained "View cart" button styling -- matches WooCommerce's default
   .button.wc-forward look, so it renders correctly even if the active theme's
   own WooCommerce CSS doesn't reach a notice we inserted outside its normal
   template flow (our JS creates the .woocommerce-notices-wrapper manually). */
.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward {
	display: inline-block;
	margin-left: auto;
	padding: 8px 16px;
	background: #333;
	color: #fff !important;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1.4;
}
.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward:hover {
	background: #111;
	color: #fff !important;
}
