.mopar-decoder-container {
	font-family: Arial, sans-serif !important;
	max-width: 800px !important;
	margin: 0 auto !important;
	padding: 20px !important;
	background-color: #f4f4f4 !important;
}

.mopar-decoder-container h1 {
	text-align: center !important;
	color: #333 !important;
}

.mopar-grid-container {
	display: grid !important;
	grid-template-columns: repeat(6, 1fr) !important;
	gap: 5px !important;
	margin-bottom: 20px !important;
	background-color: #fff !important;
	padding: 10px !important;
	border: 1px solid #ccc !important;
	border-radius: 5px !important;
}

.mopar-grid-container input {
	width: 60px !important;
	padding: 5px !important;
	text-transform: uppercase !important;
	text-align: center !important;
	border: 1px solid #ccc !important;
	border-radius: 3px !important;
}

.mopar-empty-cell {
	background-color: #e0e0e0 !important;
}

.mopar-button-container {
	text-align: center !important;
	margin-bottom: 20px !important;
	display: flex !important;
	justify-content: center !important;
	gap: 10px !important;
}

.mopar-button-container button {
	padding: 10px 20px !important;
	background-color: #0073aa !important;
	color: #fff !important;
	border: none !important;
	border-radius: 5px !important;
	cursor: pointer !important;
	font-size: 16px !important;
}

.mopar-button-container button:hover {
	background-color: #005f87 !important;
}

.mopar-output {
	background-color: #fff !important;
	padding: 15px !important;
	border: 1px solid #ccc !important;
	border-radius: 5px !important;
	min-height: 100px !important;
}

.mopar-output p {
	margin: 5px 0 !important;
	color: #333 !important;
}

.mopar-output .mopar-unknown {
	color: #e44 !important;
}




/* FREE price label */
.kinley-free-label {
    color: #16803c;
    font-weight: 700;
}

/* Free download button */
.kinley-free-download {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #171717 !important;
    color: #ffffff !important;
    border: 1px solid #171717 !important;
    border-radius: 8px !important;
    padding: 12px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

/* Hover */
.kinley-free-download:hover {
    background: #d93636 !important;
    border-color: #d93636 !important;
    color: #ffffff !important;
}

/* Mobile */
@media (max-width: 767px) {
    .kinley-free-download {
        width: 100%;
        padding: 12px 15px !important;
    }
}






/* =========================================
   KINLEY'S CLASSICS
   FREE 3D DOWNLOAD PRODUCT CARDS
   ========================================= */

/* Arrange free product cards using CSS Grid */
.kinley-products li.product:has(.kinley-free-download) {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 0;
    align-content: start;
    align-items: center;
}

/* Allow image, title and price to occupy grid positions */
.kinley-products li.product:has(.kinley-free-download)
.woocommerce-LoopProduct-link {
    display: contents !important;
}

/* Product image spans full card width */
.kinley-products li.product:has(.kinley-free-download)
.woocommerce-LoopProduct-link img {
    grid-column: 1 / -1;
    width: 100%;
}

/* Product title spans full card width */
.kinley-products li.product:has(.kinley-free-download)
.woocommerce-loop-product__title {
    grid-column: 1 / -1;
}

/* FREE price on left */
.kinley-products li.product:has(.kinley-free-download)
.price {
    grid-column: 1;
    margin: 0 !important;
    align-self: center;
}

/* FREE label */
.kinley-products .kinley-free-label,
.kinley-products .kinley-free-price {
    color: #008577 !important;
    font-weight: 700 !important;
}

/* Download button on right */
.kinley-products li.product .kinley-free-download {
    grid-column: 2;
    justify-self: start;
    align-self: center;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: auto !important;
    margin: 0 !important;
    padding: 8px 14px !important;

    background: #171717 !important;
    border: 1px solid #171717 !important;
    border-radius: 7px !important;

    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap;

    transition: all 0.2s ease;
}

/* Hover */
.kinley-products li.product .kinley-free-download:hover {
    background: #d93636 !important;
    border-color: #d93636 !important;
    color: #ffffff !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .kinley-products li.product:has(.kinley-free-download) {
        column-gap: 8px;
    }

    .kinley-products li.product .kinley-free-download {
        padding: 7px 10px !important;
        font-size: 11px !important;
    }
}



/* Keep free 3D products hidden when category filters exclude them */
.kinley-products li.product[style*="display: none"] {
    display: none !important;
}
