:root {
    --qobs-primary-color: #273878;
    --qobs-border-color: #e0e0e0;
	--qobs-success-color: #4CAF50;
}

#qobs-container {
    margin: 20px auto;
    padding: 25px;
    border-radius: 8px;
    background-color: #fff;
    
    border: 1px solid var(--qobs-border-color);
}
#qobs-container .header-description{
	color: #111;
}
.qobs-main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.qobs-left-column,
.qobs-right-column {
    display: flex;
    flex-direction: column;
}

#qobs-cart-wrapper {
    position: relative; /* Needed for the loader overlay */
    margin-bottom: 25px;
}

/* New Div-based Cart Styles */
.qobs-cart-header {
    display: none; /* Hidden on mobile */
}



.qobs-product-item {
    display: grid
;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    
    padding: 1rem 0;
    position: relative;
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
}

.qobs-product-item:last-child {
    border-bottom: none;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-thumbnail img {
    width: 60px; /* Increased size for better visibility */
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.product-name {
    font-weight: bold;
}
.product-name b {
    font-weight: bold;
	font-size: 12px;
    color: #555;
    display: block;
    margin-bottom: 4px;
}


    .product-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}


.qobs-mobile-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    display: block;
}

.product-price, .product-subtotal {
    text-align: left;
}
.product-quantity, .product-remove {
    text-align: left;
}

.product-remove .remove {
    color: #aaa;
    text-decoration: none;
    font-size: 32px;
   
    
    margin-top: 1.25rem; /* Align with quantity stepper */
	
}

/* --- End of New Cart Styles --- */


#qobs-quick-entry-form {
  border: 1px solid var(--qobs-border-color);
  padding: 15px;
  border-radius: 5px;
}
#qobs-quick-entry-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
}

.qobs-input-group {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    position: relative;
}

.qobs-input-group input[type="text"] {
    padding: 10px;
    border: 1px solid var(--qobs-border-color);
    border-radius: 4px;
}

.qobs-input-group .button {
    padding: 12px 20px;
}

.qobs-input-group .button:disabled {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
}

#qobs-sku-input.valid-sku {
    border-color: var(--qobs-success-color);
}
#qobs-sku-input{
	padding-left: 20px;
}

.qobs-sku-valid-icon {
    position: absolute;
    left: 5px; /* Adjust based on button and quantity input width */
    top: 50%;
    transform: translateY(-50%);
    color: var(--qobs-success-color);
    font-size: 1.1em;
    line-height: 1;
    font-weight: bold;
    display: none; /* Hidden by default */
}

#qobs-product-preview-wrapper {
    margin-top: 15px;
    min-height: 92px; /* Prevents layout shift */
}

.qobs-product-preview {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--qobs-border-color);
    border-radius: 6px;
}

.qobs-product-preview .preview-image img {
    width: 60px;
    height: auto;
    border-radius: 4px;
}

.qobs-product-preview .preview-details .sku {
    font-weight: bold;
    display: block;
}
.qobs-product-preview .preview-details {
   display: flex;
  flex-direction: column;
	
}
.qobs-product-preview .preview-details .product-code-label {
   font-size: 12px;
	font-weight: 500;
	
}

.qobs-product-preview .preview-details .name {
   color: #111;
	font-weight: 500;
	
}

.qobs-product-preview .preview-price {
    text-align: right;
}

.qobs-product-preview .preview-price .price-label {
    font-size: 0.8em;
    color: #777;
    display: block;
}

.qobs-product-preview .preview-price .price {
    font-weight: bold;
}

/* --- QUANTITY STEPPER STYLES --- */
.qobs-quantity-stepper {
    display: inline-flex;
    border: 1px solid var(--qobs-border-color);
    border-radius: 4px;
    overflow: hidden;
    height: 44px;
}

.qobs-quantity-stepper input.qty {
    width: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--qobs-border-color);
    border-right: 1px solid var(--qobs-border-color);
    padding: 2px;
    -moz-appearance: textfield; /* Firefox */
}

.qobs-quantity-stepper input.qty::-webkit-inner-spin-button,
.qobs-quantity-stepper input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qobs-quantity-stepper .button {
    background-color: var(--qobs-success-color);
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.2em;
    line-height: 1.5;
    color: #555;
    min-width: 18px;
    height: 100%;
}
.qobs-quantity-stepper .button {
    background-color: #f9f9f9;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.2em;
    line-height: 1.5;
    color: #555;
    min-width: 18px;
    height: 100%;
}
.qobs-quantity-stepper .button:hover {
    background-color: #f1f1f1;
    color: #222;
}

.qobs-quantity-stepper .button:disabled {
    background-color: #f1f1f1;
    color: #c0c0c0;
    cursor: not-allowed;
}

#qobs-totals-wrapper {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.qobs-cart-totals h2 {
    margin-top: 0;
    font-size: 1.5em;
}

/* New Totals Styles */
.qobs-cart-totals .totals-table {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.qobs-cart-totals .total-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--qobs-border-color);
}
.qobs-cart-totals .total-line:last-child {
    border-bottom: none;
}
.qobs-cart-totals .order-total {
    font-weight: bold;
    font-size: 1.1em;
	color: #111;
	
}
.qobs-cart-totals .order-total span:last-child {
   
    font-size: 1.1em;
}
/* End New Totals Styles */

.qobs-checkout-button {
    background-color: var(--qobs-primary-color);
    border-color: var(--qobs-primary-color);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.2em;
    border-radius: 5px;
}

.qobs-checkout-button:hover {
    background-color: #6BC7D1;
    color: white;
}

.qobs-actions-bottom {
    margin-top: 20px;
}

.qobs-agreement-text {
    font-size: 0.9em;
    color: #777;
    text-align: center;
}

#qobs-messages .woocommerce-message,
#qobs-messages .woocommerce-error {
    margin: 0 0 15px 0 !important;
}

/* --- LOADER OVERLAY STYLES --- */
.qobs-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
}

.qobs-spinner {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid var(--qobs-primary-color); /* Primary color */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: qobs-spin 1s linear infinite;
}

@keyframes qobs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .qobs-main-layout {
        grid-template-columns: 1fr;
    }
    .qobs-right-column {
        margin-top: 30px;
    }
}

@media (min-width: 768px) {
    .qobs-mobile-label {
        display: none;
    }

    .qobs-cart-header {
        display: grid;
        grid-template-columns: 3fr 3fr;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    .qobs-cart-header .header-details {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
        text-align: left;
        color: #111;
        font-weight: normal;
        
        font-size: 0.9em;
    }
	.qobs-cart-header .header-details .header-quantity{
        
        text-align: center;
       
    }
     .qobs-cart-header .header-details .header-total,
     .qobs-cart-header .header-details .header-remove {
        text-align: right;
     }


    .qobs-product-item {
        grid-template-columns: 3fr 3fr;
    }
    
    .product-details {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-price, .product-quantity { text-align: center; }
    .product-subtotal, .product-remove { text-align: right; }
    .product-quantity { display: flex; justify-content: center; }
    .product-remove .remove { margin-top: 0; }
	
	
	
	
}

@media (max-width: 600px){
	.product-remove .remove {
    position: absolute;
		top: 0;
		right: 10px;
		margin-top: 0;
	
}
	.product-quantity .qobs-mobile-label{
		display: none;
	}
}


