.mwcp-sticky {
    position: fixed;
    bottom: 0;
    width: 100vw;
    display: none;
    background: rgba(0, 0, 0, .8);
    box-sizing: border-box;
    padding: 20px;
    color: #fff;
    z-index: 99;
}

.mwcp-sticky.show {
    display: block;
}

.mwcp-sticky .mwcp-sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.mwcp-sticky .mwcp-list {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mwcp-sticky .mwcp-list .mwcp-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #ffffff;
    background: #ffffff;
    width: 80px;
    height: 80px;
    position: relative;
    flex-shrink: 0;
    padding: 0;
}

.mwcp-sticky .mwcp-pill img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.mwcp-sticky .mwcp-pill .mwcp-price {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    padding: 2px 4px;
    border-radius: 0 0 4px 4px;
    line-height: 1.2;
}

.mwcp-sticky .mwcp-pill .mwcp-price del {
    color: #ccc;
    font-size: 9px;
}

.mwcp-sticky .mwcp-pill .mwcp-price ins {
    text-decoration: none;
    color: #4CAF50;
    font-weight: bold;
}

.mwcp-sticky .mwcp-pill button {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border: none;
    background: #e74c3c;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.mwcp-sticky .mwcp-pill button:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Empty slot styling */
.mwcp-sticky .mwcp-pill.mwcp-empty-slot {
    background-color: transparent;
    border: 1px dashed #dee2e6;
}

.mwcp-table {
    margin: 20px 0;
}

.mwcp-table .mwcp-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.mwcp-table .mwcp-header h2 {
    font-weight: 700;
}

.mwcp-table .mwcp-tabs {
    display: none !important;
    gap: 8px;
    flex-wrap: wrap;
}

.mwcp-table .mwcp-tabs button {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
}

.mwcp-table .mwcp-tabs button[aria-selected="true"] {
    background: #222;
    color: #fff;
}

.mwcp-table .mwcp-grid {
    width: 100%;
    border-collapse: collapse;
    display: none;
}

.mwcp-table .mwcp-grid td,
.mwcp-table .mwcp-grid th {
    border: 1px solid #eee;
    padding: 20px;
    vertical-align: top;
}

.mwcp-table .mwcp-grid td:not(:first-child) {
    text-align: center;
}

.mwcp-table .mwcp-empty {
    text-align: center;
    padding: 20px;
    color: #666;
}

.mwcp-table .mwcp-actions {
    margin-top: 20px;
    text-align: right;
    background-color: #ebebeb;
    padding: 15px 20px;
    border-radius: 5px;
}

.mwcp-table .mwcp-actions .mwcp-clear {
    background-color: #685bc7;
    border: none;
    border-radius: 5px;
    color: #fff;
    padding: 5px 20px;
}

/* Default fields styling */
.mwcp-table .mwcp-grid td .button {
    padding: 0 12px;
    font-size: 20px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    transition: all 0.2s ease;
    background-color: #3d3d3d;
    border: none;
    color: #fff;
}

.mwcp-table .mwcp-grid td img {
    max-width: 200px;
}

.mwcp-table .mwcp-grid td strong a {
    color: #2c3e50;
    text-decoration: none;
}

.mwcp-table .mwcp-grid td strong a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Availability badge styling */
.mwcp-availability-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    min-width: 80px;
    transition: all 0.2s ease;
}

.mwcp-availability-in-stock {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mwcp-availability-out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mwcp-table .mwcp-grid td .add-to-cart-btn {
    color: #FFF;
    padding: 17px 50px 15px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 0;
    font-weight: 600;
    text-transform: uppercase;
    line-height: initial;
    outline: 0;
    text-align: center;
    padding: 15px 70px;
    height: 50px;
    border-radius: 60px;
    background-color: #1b1b1b;
    overflow: inherit;
}

.mwcp-table .mwcp-grid td .add-to-cart-btn:hover,
.mwcp-table .mwcp-grid td .add-to-cart-btn:focus {
    background-color: #550333;
}

.mwcp-table .mwcp-grid td.amount {
    font-weight: 700;
    font-size: 18px;
}

.mwcp-table .mwcp-grid td .name {
    font-weight: 700;
    font-size: 18px;
    color: #1b1b1b;
    text-decoration: none;
}

.mwcp-table .mwcp-grid td .name:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Compare Button Template Styles */
.single-product .summary .mwcp-compare-btn {
    position: relative;
    transition: all 0.3s ease;
    margin-top: 16px;
    border-radius: 33px;
    background-color: transparent;
    color: #550333;
    border: 1px solid #550333;
    padding: 10px 50px 9px !important;
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.single-product .summary .mwcp-compare-btn:hover,
.single-product .summary .mwcp-compare-btn:focus {
    background-color: #550333;
    color: #FFF;
}

.single-product .summary .mwcp-compare-btn.mwcp-in-compare {
    background-color: rgba(27, 27, 27, .7) !important;
    color: #000;
    cursor: not-allowed;
    border-color: rgba(27, 27, 27, .7) !important;
}

.single-product .summary .mwcp-compare-btn.mwcp-in-compare:hover,
.single-product .summary .mwcp-compare-btn.mwcp-in-compare:focus {
    background-color: #550333 !important;
    border-color: #550333 !important;
    transform: none;
    box-shadow: none;
}

.single-product .summary .mwcp-compare-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mwcp-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

.mwcp-sticky .mwcp-sticky-inner .mwcp-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mwcp-sticky .mwcp-sticky-inner .mwcp-actions .mwcp-open-table {
    border-radius: 33px;
    background-color: #ea078c;
    color: #fff;
    padding: 10px 50px 9px;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    height: 42px;
}

.mwcp-sticky .mwcp-sticky-inner .mwcp-actions .mwcp-open-table:hover,
.mwcp-sticky .mwcp-sticky-inner .mwcp-actions .mwcp-open-table:focus {
    background-color: #550333;
}

.mwcp-sticky .mwcp-sticky-inner .mwcp-actions .mwcp-clear {
    border-radius: 33px;
    padding: 10px 50px 9px;
    background-color: #685bc7;
}

.mwcp-sticky .mwcp-sticky-inner .mwcp-actions .mwcp-clear:hover,
.mwcp-sticky .mwcp-sticky-inner .mwcp-actions .mwcp-clear:focus {
    background-color: #550333;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Sticky Bar Template Styles */
.mwcp-sticky .mwcp-compare-text {
    display: inline-block;
}

.mwcp-count-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

.mwcp-remove-icon {
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
}

.mwcp-remove:hover .mwcp-remove-icon {
    color: #e74c3c;
}

/* Button text states */
.mwcp-btn-text,
.mwcp-btn-loading,
.mwcp-btn-added {
    transition: opacity 0.3s ease;
}

.mwcp-btn-added {
    color: white;
    font-weight: 600;
}

.mwcp-compare-btn:not(.mwcp-in-compare) .mwcp-btn-added {
    display: none !important;
}

.mwcp-compare-btn.mwcp-in-compare .mwcp-btn-text,
.mwcp-compare-btn.mwcp-in-compare .mwcp-btn-loading {
    display: none !important;
}

/* Dropdown column styles */
.mwcp-dropdown-column {
    text-align: center;
    vertical-align: middle;
}

.mwcp-dropdown-container {
    padding: 10px;
}

.mwcp-product-dropdown {
    width: 100%;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.mwcp-product-dropdown:hover {
    border-color: #999;
}

.mwcp-product-dropdown:focus {
    outline: none;
    border-color: #550333;
    box-shadow: 0 0 0 2px rgba(85, 3, 51, 0.2);
}

.mwcp-dropdown-cell {
    text-align: center;
    color: #999;
    font-style: italic;
}

.mwcp-product-header {
    text-align: center;
    padding: 10px;
}

.mwcp-product-header .mwcp-remove {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.mwcp-product-header .mwcp-remove:hover {
    background-color: #c0392b;
}

/* Loading states */
.mwcp-table-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.mwcp-loading-container {
    text-align: center;
    padding: 20px;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mwcp-loading-container .mwcp-spinner {
    margin: 0;
}

/* Error states */
.mwcp-error-container {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mwcp-retry-btn {
    background-color: #550333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.mwcp-retry-btn:hover {
    background-color: #44022a;
}

.mwcp-retry-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(85, 3, 51, 0.2);
}

/* Disabled dropdown state */
.mwcp-product-dropdown:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Button loading states */
.mwcp-clear:disabled {
    background-color: #999 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.mwcp-remove:disabled {
    background-color: #999 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.mwcp-remove .mwcp-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.mwcp-table .mwcp-grid td.mwcp-dropdown-column {
    min-width: 230px;
}

/* Select2 integration styles */
.mwcp-dropdown-container .select2-container {
    width: 100% !important;
}

.mwcp-dropdown-container .select2-container .select2-selection {
    background: #b02ef2;
    background: linear-gradient(90deg, #b02ef2 0%, #7c71fe 100%);
    padding: 1px !important;
    border-radius: 60px !important;
    border: none !important;
    height: 44px !important;
}

.mwcp-dropdown-container .select2-container .select2-selection .select2-selection__rendered {
    background-color: #fff;
    border-radius: 60px;
}

.mwcp-dropdown-container .select2-container .select2-selection .select2-selection__rendered .select2-selection__placeholder {
    color: #000;
}

.mwcp-dropdown-container .select2-container .select2-results__options {
    margin: 0;
    padding: 0;
}

.mwcp-dropdown-container .select2-selection {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    height: 38px !important;
    padding: 0 !important;
}

.mwcp-dropdown-container .select2-selection__rendered {
    padding: 8px 12px !important;
    line-height: 22px !important;
}

.mwcp-dropdown-container .select2-selection__arrow {
    height: 36px !important;
    right: 8px !important;
}

.mwcp-dropdown-container .select2-selection:focus {
    outline: none !important;
    border-color: #550333 !important;
    box-shadow: 0 0 0 2px rgba(85, 3, 51, 0.2) !important;
}

.mwcp-dropdown-container .select2-dropdown {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.mwcp-dropdown-container .select2-results__option {
    padding: 6px 8px !important;
    text-align: left;
    font-size: 13px;
}

.mwcp-dropdown-container .select2-results__option--highlighted {
    background-color: #550333 !important;
    color: white !important;
}

.mwcp-dropdown-container .select2-results__option[aria-selected="true"] {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

/* Hide actions when no products */
.mwcp-table.mwcp-no-products .mwcp-actions {
    display: none !important;
}

/* Full window overlay loading styles */
#mwcp-table .mwcp-table-loading.mwcp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

#mwcp-table .mwcp-overlay-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

#mwcp-table .mwcp-overlay-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

#mwcp-table .mwcp-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#mwcp-table .mwcp-overlay-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: background-color 0.2s ease;
}

#mwcp-table .mwcp-overlay-btn:hover {
    background-color: #005a87;
}

/* Alternating cell colors */
#mwcp-table .mwcp-cell-even {
    background-color: #ffffff;
}

#mwcp-table .mwcp-cell-odd {
    background-color: #f8f9fa;
}

#mwcp-table .mwcp-cell-odd img {
    mix-blend-mode: darken;
}

.mwcp-table .mwcp-grid .mwcp-attribute-label {
    min-width: 165px;
}

.single-product .summary .mwcp-compare-btn.mwcp-compare-link {
    gap: 8px;
    padding: 10px 30px 9px !important;
}

.single-product .summary .mwcp-compare-btn.mwcp-compare-link svg {
    width: 30px;
    height: 30px;
}

.single-product .summary .mwcp-compare-btn.mwcp-compare-link .mwcp-btn-wrap {
    display: inline-flex;
    flex-direction: column;
    text-transform: uppercase;
    font-weight: 600;
    text-align: left;
}

.single-product .summary .mwcp-compare-btn.mwcp-compare-link .mwcp-btn-wrap .mwcp-small-text {
    font-size: 10px;
    margin-bottom: -4px;
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
    .mwcp-table .mwcp-grid td.mwcp-product-column {
        min-width: 250px;
    }

    .mwcp-table .mwcp-grid td .add-to-cart-btn {
        padding: 15px 50px;
    }
}