/* Woo Variation Matrix Frontend Styles */

.wvm-variation-matrix-wrapper {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.wvm-grid-container {
    max-width: 100%;
    margin: 0 auto;
}

.wvm-grid-header {
    margin-bottom: 20px;
    text-align: center;
}

.wvm-grid-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: #333;
}

.wvm-grid-header p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

.wvm-grid {
    margin-bottom: 20px;
}

.wvm-grid-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wvm-grid-item:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.wvm-grid-item.has-quantity {
    border-color: #007cba;
    background: #e8f4f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.2);
}

.wvm-variation-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wvm-variation-image {
    text-align: center;
    margin-bottom: 10px;
}

.wvm-variation-image img {
    max-width: 60px;
    height: auto;
    border-radius: 4px;
}

.wvm-variation-name {
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 8px;
}

.wvm-variation-attributes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.wvm-attribute {
    color: #666;
    display: block;
}

.wvm-attribute strong {
    color: #333;
}

.wvm-variation-price {
    font-weight: bold;
    color: #007cba;
    text-align: center;
    font-size: 1.1em;
}

.wvm-variation-price .woocommerce-Price-amount {
    font-weight: bold;
}

.wvm-variation-price del {
    color: #999;
    font-weight: normal;
}

.wvm-stock-status {
    font-size: 0.85em;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.wvm-stock-status.in-stock {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wvm-stock-status.low-stock {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.wvm-stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wvm-quantity-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.wvm-quantity-input label {
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
}

.wvm-qty-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
    max-width: 80px;
}

.wvm-qty-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.wvm-qty-input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.wvm-add-to-cart-section {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

.wvm-add-to-cart-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wvm-add-to-cart-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.wvm-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.wvm-loading {
    margin: 10px 0;
    color: #666;
}

.wvm-loading span {
    display: inline-block;
    animation: wvm-pulse 1.5s infinite;
}

@keyframes wvm-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.wvm-messages {
    margin-top: 15px;
}

.wvm-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.wvm-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wvm-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wvm-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Table Layout Styles */
.wvm-table-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.wvm-table-header {
    margin-bottom: 20px;
    text-align: center;
}

.wvm-table-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: #333;
}

.wvm-table-header p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

.wvm-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.wvm-variations-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wvm-variations-table th,
.wvm-variations-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.wvm-variations-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.wvm-variations-table tbody tr:hover {
    background: #f8f9fa;
}

.wvm-variations-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table row with quantity selected */
.wvm-table-row.has-quantity {
    background: #e8f4f8 !important;
    border-left: 3px solid #007cba;
}

.wvm-table-row.has-quantity td {
    border-bottom-color: #b3d9e6;
}

/* Table column styles */
.wvm-col-image {
    width: 60px;
    text-align: center;
}

.wvm-table-image {
    max-width: 40px;
    height: auto;
    border-radius: 4px;
}

.wvm-col-name {
    min-width: 150px;
}

.wvm-col-sku {
    width: 100px;
}

.wvm-col-attributes {
    min-width: 120px;
}

.wvm-col-price {
    width: 100px;
    text-align: right;
}

.wvm-col-stock {
    width: 120px;
    text-align: center;
}

.wvm-col-quantity {
    width: 100px;
    text-align: center;
}

.wvm-table-attribute {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 2px;
}

.wvm-table-attribute:last-child {
    margin-bottom: 0;
}

.wvm-table-stock {
    font-size: 0.85em;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
}

.wvm-table-stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.wvm-table-stock.low-stock {
    background: #fff3cd;
    color: #856404;
}

.wvm-table-stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.wvm-table-qty-input {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.wvm-table-qty-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Table density options */
.wvm-density-1 th,
.wvm-density-1 td {
    padding: 16px 12px;
    font-size: 1em;
}

.wvm-density-2 th,
.wvm-density-2 td {
    padding: 14px 10px;
    font-size: 0.95em;
}

.wvm-density-3 th,
.wvm-density-3 td {
    padding: 12px 8px;
    font-size: 0.9em;
}

.wvm-density-4 th,
.wvm-density-4 td {
    padding: 10px 6px;
    font-size: 0.85em;
}

.wvm-density-5 th,
.wvm-density-5 td {
    padding: 8px 6px;
    font-size: 0.8em;
}

.wvm-density-6 th,
.wvm-density-6 td {
    padding: 6px 4px;
    font-size: 0.75em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wvm-grid-container[data-columns="1"] .wvm-grid,
    .wvm-grid-container[data-columns="2"] .wvm-grid,
    .wvm-grid-container[data-columns="3"] .wvm-grid,
    .wvm-grid-container[data-columns="4"] .wvm-grid,
    .wvm-grid-container[data-columns="5"] .wvm-grid,
    .wvm-grid-container[data-columns="6"] .wvm-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .wvm-variations-table {
        font-size: 0.85em;
    }
    
    .wvm-variations-table th,
    .wvm-variations-table td {
        padding: 8px 4px;
    }
    
    .wvm-col-image,
    .wvm-col-sku {
        display: none;
    }
    
    .wvm-table-attribute {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .wvm-grid-container .wvm-grid {
        grid-template-columns: 1fr !important;
    }
    
    .wvm-variation-matrix-wrapper {
        padding: 15px;
    }
    
    .wvm-grid-item {
        padding: 12px;
    }
    
    .wvm-variation-image img {
        max-width: 40px;
    }
    
    .wvm-table-wrapper {
        overflow-x: scroll;
    }
    
    .wvm-variations-table {
        min-width: 500px;
    }
}

/* Theme Compatibility */
body.woocommerce .wvm-variation-matrix-wrapper {
    font-family: inherit;
}

/* Animation for adding items */
.wvm-grid-item.adding {
    animation: wvm-adding 0.6s ease;
}

@keyframes wvm-adding {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        background: #e8f4f8;
    }
    100% {
        transform: scale(1);
    }
}

/* Vertical layout specific styles */
.wvm-grid-container[data-layout="vertical"] .wvm-grid {
    grid-auto-flow: column;
}

.wvm-grid-container[data-layout="vertical"] .wvm-grid-item {
    min-height: 200px;
}

/* Custom spacing */
.wvm-grid-container[data-spacing="0"] .wvm-grid {
    gap: 0;
}

.wvm-grid-container[data-spacing="5"] .wvm-grid {
    gap: 5px;
}

.wvm-grid-container[data-spacing="15"] .wvm-grid {
    gap: 15px;
}

.wvm-grid-container[data-spacing="20"] .wvm-grid {
    gap: 20px;
}

.wvm-grid-container[data-spacing="25"] .wvm-grid {
    gap: 25px;
}

.wvm-grid-container[data-spacing="30"] .wvm-grid {
    gap: 30px;
}

/* Print styles */
@media print {
    .wvm-add-to-cart-section {
        display: none;
    }
}

/* Grid Layout - Conditional Display Elements */
.wvm-variation-sku {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

.wvm-variation-description {
    font-size: 0.85em;
    color: #555;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.wvm-variation-attributes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.wvm-variation-attributes .wvm-attribute {
    color: #666;
    display: block;
}

.wvm-variation-attributes .wvm-attribute strong {
    color: #333;
}

/* Hide elements when disabled */
.wvm-grid-item .wvm-variation-image[style*="display: none"],
.wvm-grid-item .wvm-variation-sku[style*="display: none"],
.wvm-grid-item .wvm-variation-attributes[style*="display: none"],
.wvm-grid-item .wvm-variation-price[style*="display: none"],
.wvm-grid-item .wvm-variation-description[style*="display: none"],
.wvm-grid-item .wvm-stock-status[style*="display: none"] {
    display: none !important;
}

/* Adjust grid item spacing when elements are hidden */
.wvm-grid-item:not(:has(.wvm-variation-image)) .wvm-variation-info {
    padding-top: 0;
}

.wvm-grid-item:not(:has(.wvm-variation-price)) .wvm-stock-status {
    margin-top: 0;
}

/* Matrix Layout Styles */
.wvm-matrix-container {
    max-width: 100%;
    margin: 20px 0;
}

.wvm-matrix-header {
    margin-bottom: 20px;
}

.wvm-matrix-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #333;
}

.wvm-matrix-header p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.wvm-matrix-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wvm-matrix-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.wvm-matrix-table th,
.wvm-matrix-table td {
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    padding: 8px;
}

.wvm-matrix-corner {
    background: #f8f9fa;
    position: relative;
    min-width: 120px;
}

.wvm-corner-labels {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wvm-corner-labels .wvm-row-label {
    position: absolute;
    bottom: 2px;
    left: 2px;
    font-size: 11px;
    color: #666;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.wvm-corner-labels .wvm-col-label {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 11px;
    color: #666;
}

.wvm-matrix-col-header,
.wvm-matrix-row-header {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.wvm-matrix-col-header {
    min-width: 80px;
}

.wvm-matrix-row-header {
    min-width: 100px;
    text-align: left;
}

.wvm-matrix-cell {
    min-width: 80px;
    width: 80px;
    padding: 4px;
}

.wvm-matrix-cell-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.wvm-matrix-cell-content.has-quantity {
    background: #e8f5e8;
    border: 1px solid #4caf50;
}

.wvm-matrix-price {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    line-height: 1;
}

.wvm-matrix-stock {
    font-size: 10px;
    line-height: 1;
}

.wvm-matrix-stock.in-stock {
    color: #4caf50;
}

.wvm-matrix-stock.out-of-stock {
    color: #f44336;
}

.wvm-matrix-sku {
    font-size: 9px;
    color: #666;
    line-height: 1;
}

.wvm-matrix-qty {
    width: 100%;
}

.wvm-matrix-qty-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    padding: 2px;
    box-sizing: border-box;
}

.wvm-matrix-qty-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 3px rgba(76, 175, 80, 0.3);
}

.wvm-matrix-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}

.wvm-dash {
    font-size: 18px;
    color: #ccc;
    font-weight: bold;
}

.wvm-matrix-legend {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
}

.wvm-legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 5px;
}

.wvm-legend-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 20px;
    margin-right: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    font-size: 12px;
}

.wvm-legend-text {
    color: #666;
}

/* Price and Weight Totals Section */
.wvm-totals-section {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wvm-totals-section.has-items {
    background: #e8f5e8;
    border-color: #28a745;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.1);
}

.wvm-totals-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.wvm-total-price,
.wvm-total-weight,
.wvm-total-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    min-width: 120px;
}

.wvm-total-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wvm-total-amount {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

.wvm-totals-section.has-items .wvm-total-amount {
    color: #28a745;
}

.wvm-total-price .wvm-total-amount {
    font-size: 1.4em;
    color: #007cba;
}

.wvm-totals-section.has-items .wvm-total-price .wvm-total-amount {
    color: #0056b3;
}

/* Responsive design for totals */
@media (max-width: 768px) {
    .wvm-totals-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .wvm-total-price,
    .wvm-total-weight,
    .wvm-total-items {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 8px 15px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 4px;
    }
    
    .wvm-total-label {
        margin-bottom: 0;
        margin-right: 10px;
    }
}

/* Animation for total updates */
.wvm-total-amount {
    transition: all 0.3s ease;
}

.wvm-total-amount.updating {
    transform: scale(1.05);
    color: #ffc107 !important;
}

/* Enhanced styling for different layouts */
.wvm-grid-layout .wvm-totals-section {
    margin-top: 25px;
}

.wvm-table-layout .wvm-totals-section {
    margin-top: 20px;
    background: #fff;
    border: 2px solid #dee2e6;
}

.wvm-matrix-layout .wvm-totals-section {
    margin-top: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Weight Limit Progress Bar Styles */
.wvm-weight-limit-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Global weight progress bar states */
.wvm-global-weight-section.insufficient .wvm-global-weight-text {
    color: #d63638;
}

.wvm-global-weight-section.sufficient .wvm-global-weight-text {
    color: #00a32a;
}

.wvm-global-weight-section.insufficient .wvm-global-weight-progress {
    border-color: #d63638;
}

.wvm-global-weight-section.sufficient .wvm-global-weight-progress {
    border-color: #00a32a;
}

/* Disabled state for add to cart buttons when weight requirement not met */
.wvm-add-to-cart-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ddd !important;
    border-color: #ccc !important;
    color: #999 !important;
}

.wvm-add-to-cart-btn.disabled:hover {
    background-color: #ddd !important;
    border-color: #ccc !important;
    color: #999 !important;
}

/* Hide global progress bar initially */
.wvm-global-weight-section {
    display: block !important; /* Always visible */
}
.wvm-global-weight-section {
    margin: 0 0 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.wvm-global-weight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #007cba, transparent);
    animation: topShimmer 3s infinite;
}

@keyframes topShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.wvm-global-weight-header {
    text-align: center;
    margin-bottom: 15px;
}

.wvm-global-weight-header h4 {
    margin: 0 0 8px 0;
    font-size: 1.4em;
    color: #495057;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wvm-global-weight-header p {
    margin: 0;
    font-size: 0.95em;
    color: #6c757d;
}

.wvm-global-progress-container {
    position: relative;
}

.wvm-global-progress-bar {
    width: 100%;
    height: 35px;
    background: #e9ecef;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    border: 3px solid #dee2e6;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1);
}

.wvm-global-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 25%, #ffc107 50%, #20c997 75%, #28a745 100%);
    transition: width 0.8s ease-in-out, background-color 0.4s ease;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wvm-global-progress-fill.wvm-sufficient {
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.wvm-global-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2.5s infinite;
}

.wvm-global-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 0.9em;
    color: #495057;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
    z-index: 10;
    letter-spacing: 0.5px;
}

.wvm-global-progress-status {
    margin-top: 12px;
    text-align: center;
}

.wvm-global-status-text {
    font-size: 0.95em;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85em;
}

.wvm-status-insufficient {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.wvm-status-sufficient {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #c3e6cb;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.wvm-weight-limit-header {
    text-align: center;
    margin-bottom: 15px;
}

.wvm-weight-limit-header h4 {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    color: #495057;
    font-weight: 600;
}

.wvm-weight-limit-header p {
    margin: 0;
    font-size: 0.9em;
    color: #6c757d;
}

.wvm-progress-container {
    position: relative;
}

.wvm-progress-bar {
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid #dee2e6;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wvm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 25%, #ffc107 50%, #28a745 100%);
    transition: width 0.6s ease, background-color 0.3s ease;
    border-radius: 13px;
    position: relative;
    overflow: hidden;
}

.wvm-progress-fill.wvm-sufficient {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.wvm-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.wvm-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 0.85em;
    color: #495057;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.wvm-progress-status {
    margin-top: 10px;
    text-align: center;
}

.wvm-status-text {
    font-size: 0.9em;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.wvm-status-insufficient {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wvm-status-sufficient {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Add to Cart Button Modifications */
.wvm-add-to-cart-btn:disabled {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.wvm-add-to-cart-btn:disabled:hover {
    background: #6c757d !important;
    border-color: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

.wvm-weight-requirement {
    display: block;
    font-size: 0.8em;
    font-weight: normal;
    margin-top: 3px;
    opacity: 0.8;
}

.wvm-add-to-cart-btn:not(:disabled) .wvm-weight-requirement {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wvm-weight-limit-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .wvm-weight-limit-header h4 {
        font-size: 1.1em;
    }
    
    .wvm-progress-bar {
        height: 25px;
    }
    
    .wvm-progress-text {
        font-size: 0.8em;
    }
}

/* Additional styles for global progress bar elements */
.wvm-global-progress-container {
    position: relative;
    z-index: 1;
}

.wvm-global-progress-bar {
    background: #e9ecef;
    border-radius: 8px;
    height: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
}

.wvm-global-progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 8px;
    width: 0%;
    transition: width 0.6s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wvm-global-progress-fill.low {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
}

.wvm-global-progress-fill.medium {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
}

.wvm-global-progress-fill.high {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.wvm-global-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 12px;
    color: #495057;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.wvm-global-progress-status {
    text-align: center;
    margin-top: 8px;
}

.wvm-global-status-text {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wvm-global-status-text.wvm-status-insufficient {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.wvm-global-status-text.wvm-status-sufficient {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

/* Cart and Checkout Weight Notices */
.wvm-cart-weight-notice {
    border-left: 4px solid #ffc107 !important;
    background: rgba(255, 193, 7, 0.1) !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
}

.wvm-cart-weight-success {
    border-left: 4px solid #28a745 !important;
    background: rgba(40, 167, 69, 0.1) !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
}

.wvm-checkout-weight-error {
    border-left: 4px solid #dc3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
    text-align: center;
}

.wvm-checkout-weight-error .button {
    margin-top: 15px !important;
    background-color: #007cba !important;
    border-color: #007cba !important;
    color: white !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

.wvm-checkout-weight-error .button:hover {
    background-color: #005a87 !important;
    border-color: #005a87 !important;
}

/* Disabled checkout buttons */
.wvm-checkout-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #ddd !important;
    border-color: #ccc !important;
    color: #999 !important;
}

.wvm-checkout-disabled:hover {
    background-color: #ddd !important;
    border-color: #ccc !important;
    color: #999 !important;
}

.wvm-checkout-warning {
    display: block !important;
    color: #dc3545 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    text-align: center !important;
    font-weight: 500 !important;
}
