.jlcontentcart input.jlcc-input {
    height: 32px;
    line-height: 32px;
    margin: 8px 0;
}

/* Add to cart / primary buttons - green (positive action); excludes View Store Cart */
.jlcontentcart button.jlcc-add-to-cart,
button.jlcc-button.jlcc-add-to-cart,
.jlcontentcart .jlcc-button.jlcc-primary:not(.jlcc-view-store-cart),
.jlcontentcart input.jlcc-button.jlcc-primary {
    display: inline-block;
    margin: 8px 0;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #198754 0%, #157347 100%);
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.jlcontentcart button.jlcc-add-to-cart:hover,
button.jlcc-button.jlcc-add-to-cart:hover,
.jlcontentcart .jlcc-button.jlcc-primary:not(.jlcc-view-store-cart):hover,
.jlcontentcart input.jlcc-button.jlcc-primary:hover {
    background: linear-gradient(180deg, #157347 0%, #146c43 100%) !important;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.jlcontentcart button.jlcc-add-to-cart:active,
button.jlcc-button.jlcc-add-to-cart:active,
.jlcontentcart .jlcc-button.jlcc-primary:not(.jlcc-view-store-cart):active,
.jlcontentcart input.jlcc-button.jlcc-primary:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.jlcontentcart button.jlcc-add-to-cart:focus,
button.jlcc-button.jlcc-add-to-cart:focus,
.jlcontentcart .jlcc-button.jlcc-primary:not(.jlcc-view-store-cart):focus,
.jlcontentcart input.jlcc-button.jlcc-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.35);
}

.jlcc-count {
	max-width: 80px;
}

/* Add to cart row: quantity stepper OR Add button (default: show Add only; in-cart: show stepper only) */
.jlcc-add-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 8px 0;
    justify-content:center;
}
.jlcc-availability-note.jlcc-availability-unavailable{
    color: #dc3545;
}

.jlcc-add-row .jlcc-qty-only {
	display: none;
}

.jlcc-add-row .jlcc-add-only {
	display: inline-block;
}

/* View Store Cart link - blue (secondary/informational) */
.jlcontentcart .jlcc-view-store-cart,
.jlcc-view-store-cart {
	display: inline-block;
	text-decoration: none !important;
	margin: 8px 0;
	padding: 10px 20px;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 8px;
	background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
	color: #fff !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}
.jlcontentcart .jlcc-view-store-cart:hover,
.jlcc-view-store-cart:hover {
	background: linear-gradient(180deg, #0a58ca 0%, #084298 100%) !important;
	color: #fff !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.jlcc-add-row.jlcc-in-cart .jlcc-qty-only {
	display: inline-flex !important;
}

.jlcc-add-row.jlcc-in-cart .jlcc-add-only {
	display: none !important;
}

.jlcc-qty-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}

.jlcc-qty-stepper .jlcc-count {
	margin: 0;
	width: 3rem;
	min-width: 3rem;
	text-align: center;
	border: none;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
	border-radius: 0;
	-moz-appearance: textfield;
}

.jlcc-qty-stepper .jlcc-count::-webkit-outer-spin-button,
.jlcc-qty-stepper .jlcc-count::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.jlcc-qty-btn {
	width: 2rem;
	min-width: 2rem;
	padding: 0 6px;
	font-size: 1.1rem;
	line-height: 1;
	font-weight: 600;
	background: #f0f0f0;
	border: none;
	color: #333;
	cursor: pointer;
	user-select: none;
}

.jlcc-qty-btn:hover {
	background: #e0e0e0;
}

.jlcc-qty-btn:focus {
	outline: 1px dotted #00588a;
}

.jlcc-qty-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.jlcontentcart a.jlcc-button {
    text-decoration: none;
}

/* Go to cart (success) button */
.jlcc-button.jlcc-success,
.jlcontentcart a.jlcc-button.jlcc-success {
    background: linear-gradient(180deg, #198754 0%, #157347 100%) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.jlcc-button.jlcc-success:hover,
.jlcontentcart a.jlcc-button.jlcc-success:hover {
    background: linear-gradient(180deg, #157347 0%, #0f5132 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.jlcontentcart .jlcc-textarea {
    margin: 8px 0;
}

.jlcc-block-data {
    text-align: center;
}

.jlcc-block-data .jlcc-input, .jlcc-block-data .jlcc-textarea {
    min-width: 280px;
}

.jlcontentcart table {
	text-align: left;
}

.jlcontentcart table tr {
	height: 32px;
    line-height: 32px;
}

.jlcontentcart table th {
    background-color: #c4c4c433;
    padding-left: 8px;
}

.jlcontentcart table td {
    padding-left: 8px;
}

.jlcc-title-data {
    text-align: center;
}

tr.order_item {
    border-bottom: 1px solid #d7d7d7;
}

.content_cart.jlcontentcart {
    border: 1px solid #e5e3e3;
    padding: 10px;
}

/* ContentCart v4.0.0 - localStorage support */

/* Loader spinner */
.jlcc-loader {
    display: inline-block;
    margin-left: 10px;
    animation: jlcc-spin 1s linear infinite;
    font-size: 1.2em;
}

@keyframes jlcc-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Removing animation */
tr.order_item.removing {
    opacity: 0.3;
    transition: opacity 0.3s ease-out;
}

/* Disabled button state */
.jlcc-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Module cart items list */
.jlcc-cart-items {
    list-style: none;
    margin: 10px 0;
    padding: 0;
}

.jlcc-cart-item {
    padding: 8px 0;
    border-bottom: 1px solid #e5e3e3;
    font-size: 0.9em;
}

.jlcc-cart-item:last-child {
    border-bottom: none;
}

.jlcc-cart-item a {
    color: #00588a;
    text-decoration: none;
}

.jlcc-cart-item a:hover {
    text-decoration: underline;
}

.jlcc-item-count {
    color: #666;
    font-size: 0.85em;
    margin-left: 5px;
}

.jlcc-item-price {
    float: right;
    font-weight: bold;
    color: #5bb75b;
}

/* Empty cart message */
#cart-empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1.1em;
    background-color: #f9f9f9;
    border: 1px dashed #d7d7d7;
    border-radius: 4px;
    margin: 20px 0;
}

/* Floating category cart bar (subcategory page): left = N items, right = View Cart */
.jlcc-category-cart-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 20px;
    background: linear-gradient(180deg, #198754 0%, #157347 100%);
    color: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
}
.jlcc-category-cart-bar .jlcc-category-cart-count {
    font-weight: 600;
}
.jlcc-category-cart-bar .jlcc-category-cart-view {
    color: #fff !important;
    font-weight: 600;
    text-decoration: underline;
    padding: 4px 8px;
}
.jlcc-category-cart-bar .jlcc-category-cart-view:hover {
    color: #fff !important;
    text-decoration: none;
    opacity: 0.9;
}

/* Module: category list – whole row clickable, count on the right */
.jlcc-category-list .jlcc-category-row {
    list-style: none;
}
.jlcc-category-list .jlcc-category-link {
    width: 100%;
    padding: 0.25rem 0;
    color: inherit;
}
.jlcc-category-list .jlcc-category-link:hover {
    color: inherit;
    opacity: 0.85;
}
.jlcc-category-list .jlcc-cat-count {
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* Checkout page: reserve space above fixed bar */
.content_cart.jlcontentcart.jlcontentcart-checkout {
    margin-bottom: 200px;
}

/* Module checkout: 3-column table */
.jlcc-checkout-table { width: 100%; border-collapse: collapse; margin: 0; }
.jlcc-checkout-table th,
.jlcc-checkout-table td { padding: 10px 8px; vertical-align: middle; border-bottom: 1px solid #eee; }
.jlcc-checkout-table th { font-weight: 600; font-size: 0.9rem; color: #495057; }
.jlcc-col-name { width: 70%; }
.jlcc-col-qty { width: 25%; text-align: right; }
.jlcc-col-delete { width: 5%; text-align: center !important; min-width: 40px; }
.jlcc-checkout-item-title { font-weight: 500; }
.jlcc-checkout-item-code { font-size: 0.75rem; color: #6c757d; margin-top: 2px; }
.jlcc-checkout-table tr.jlcc-item-unavailable td { background-color: #fff8e6; }
.jlcc-item-not-available-msg { font-style: italic; }
.jlcc-checkout-unavailable-alert .jlcc-alert-warning { padding: 10px 14px; border-radius: 6px; border: 1px solid #ffc107; background: #fff8e1; color: #856404; }
.jlcc-checkout-item-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2px;
}
.jlcc-checkout-item-qty .jlcc-qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jlcc-checkout-item-qty .jlcc-qty-btn:hover { background: #e0e0e0; }
.jlcc-checkout-item-qty .jlcc-item-count {
    width: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    padding: 2px 0;
    font-size: 0.8rem;
}
.jlcc-checkout-item-qty .jlcc-item-count[readonly] {
    background: #f8f9fa;
    cursor: default;
}
.jlcc-checkout-item-qty .jlcc-item-count[readonly]:focus {
    outline: none;
}
.jlcc-checkout-item-price { font-weight: 600; font-size: 0.85rem; }
.jlcc-delete-icon {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #dc3545;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jlcc-delete-icon:hover { color: #c82333; }
.jlcc-delete-icon:disabled { opacity: 0.5; cursor: not-allowed; }

/* Orders list (Customer Orders / Shop Orders) – mobile card layout */
.jlcc-orders-list-view { margin: 0 0 1.5rem; }
.jlcc-orders-list-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; color: #1a1a1a; }
.jlcc-no-orders { margin: 1rem 0; color: #6c757d; }
.jlcc-order-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.jlcc-order-card-wrap { margin: 0; }
.jlcc-order-card {
    display: block;
    padding: 1rem 1.125rem;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.jlcc-order-card:hover,
.jlcc-order-card:focus {
    border-color: #198754;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.12);
    color: #1a1a1a;
}
.jlcc-order-card-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.375rem; }
.jlcc-order-card-head { margin-bottom: 0.5rem; }
.jlcc-order-card-id { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; color: #6b7280; }
.jlcc-order-card-count { font-size: 0.8rem; color: #6b7280; font-weight: 500; }
.jlcc-order-card-category {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.jlcc-order-card-foot { font-size: 0.8rem; color: #6b7280; }
.jlcc-order-card-date { font-variant-numeric: tabular-nums; }
.jlcc-order-card-total { font-weight: 700; color: #1a1a1a; font-size: 0.95rem; }

/* Order detail – receipt style */
.jlcc-order-detail-view { margin: 0 0 1.5rem; }
.jlcc-back-to-orders { display: inline-block; margin-bottom: 0.75rem; font-size: 0.9rem; }
.jlcc-order-detail-receipt .jlcc-receipt {
    max-width: 380px;
    background: #fafafa;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.jlcc-receipt-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.jlcc-receipt-store { font-weight: 700; font-size: 1.05rem; color: #1a1a1a; margin: 0.25rem 0; }
.jlcc-receipt-sep { color: #9ca3af; margin: 0.4rem 0; font-size: 0.8em; letter-spacing: 0.03em; }
.jlcc-receipt-line { margin: 0.2rem 0; }
.jlcc-receipt-label { margin-top: 0.4rem; }
.jlcc-receipt-items-list { margin: 0.4rem 0 0; }
.jlcc-receipt-item { margin-bottom: 0.5rem; }
.jlcc-receipt-item-title { font-size: 0.9rem; color: #1a1a1a; }
.jlcc-receipt-item-line { font-size: 0.85rem; color: #6b7280; margin-top: 0.15rem; padding-left: 1.5em; }
.jlcc-receipt-items {
    margin: 0.4rem 0 0;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
    border: none;
    background: transparent;
    font-family: inherit;
    line-height: 1.45;
    color: #374151;
}
.jlcc-order-detail-table.jlcc-checkout-table .jlcc-col-delete { display: none; }
.jlcc-order-detail-table .jlcc-checkout-item-qty { display: none; }
.jlcc-order-detail-table .jlcc-order-detail-qty { display: inline-block; margin-right: 8px; font-weight: 500; }

/* Module checkout: total at bottom above Place Order */
.jlcc-checkout-summary {
    margin-top: 12px;
    padding: 12px 0;
    border-top: 1px solid #dee2e6;
    text-align: right;
}
.jlcc-checkout-total-line { margin: 4px 0; }
.jlcc-checkout-total-amount { font-size: 1.1rem; }

/* Checkout page: fixed bottom Place Order button */
.jlcc-place-order-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 20px;
    background: linear-gradient(180deg, #198754 0%, #157347 100%);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}
.jlcc-place-order-fixed.jlcc-checkout-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
.jlcc-checkout-buttons .jlcc-go-to-main-page {
    flex: 0 0 auto;
}
.jlcc-checkout-buttons .jlcc-place-order-btn {
    flex: 1 1 auto;
    min-width: 140px;
}
.jlcc-place-order-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}
.jlcc-place-order-btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.jlcc-place-order-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.jlcc-place-order-btn:active {
    transform: scale(0.98);
}
.jlcc-place-order-btn:disabled,
.jlcc-place-order-btn.jlcc-place-order-btn--store-closed {
    opacity: 0.6;
    filter: grayscale(0.5);
}
.jlcc-place-order-btn:disabled {
    pointer-events: none;
}
.jlcc-place-order-btn.jlcc-place-order-btn--store-closed:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Checkout info block (before table) */
.jlcc-checkout-info-line {
    margin: 0;
}

/* Checkout empty cart message - center aligned */
.jlcc-checkout-empty {
    text-align: center;
    padding: 1.5rem 1rem;
}
.jlcc-checkout-empty .jlcc-checkout-empty-msg {
    margin: 0 0 1rem;
}
.jlcc-checkout-empty .jlcc-checkout-empty-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.jlcc-checkout-empty .jlcc-go-to-store,
.jlcc-checkout-empty .jlcc-go-to-main-page {
    display: inline-block;
}

/* Common full-page loading overlay */
.jlcc-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
}
.jlcc-overlay.is-visible {
    display: flex;
}
.jlcc-overlay-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: jlcc-overlay-spin 0.8s linear infinite;
}
@keyframes jlcc-overlay-spin {
    to { transform: rotate(360deg); }
}

/* Checkout modals (delete confirm, order success) */
.jlcc-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.jlcc-modal-backdrop.is-visible {
    display: flex;
}
.jlcc-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.jlcc-modal-title { margin: 0 0 0.75rem; font-size: 1.1rem; }
.jlcc-modal-body { margin-bottom: 1rem; }
.jlcc-modal-footer { display: flex; gap: 0.5rem; justify-content: flex-end; }
.jlcc-modal-footer .jlcc-button { min-width: 80px; }

/* Store not accepting orders modal: smooth open/close */
.jlcc-modal-backdrop.jlcc-store-not-accepting-modal {
    opacity: 0;
    transition: opacity 0.25s ease;
}
.jlcc-modal-backdrop.jlcc-store-not-accepting-modal .jlcc-modal {
    transform: scale(0.94);
    transition: transform 0.25s ease;
}
.jlcc-modal-backdrop.jlcc-store-not-accepting-modal.jlcc-modal-open {
    opacity: 1;
}
.jlcc-modal-backdrop.jlcc-store-not-accepting-modal.jlcc-modal-open .jlcc-modal {
    transform: scale(1);
}
