#gpc-compare-bar,
#gpc-popup-overlay,
.gpc-checkbox-wrapper {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}
#gpc-compare-bar *,
#gpc-popup-overlay *,
.gpc-checkbox-wrapper * {
    box-sizing: border-box;
}

.gpc-bar-actions .button {
	background-color: var(--fs-color-success);
	font-family: inherit;
    font-size: inherit;
	flex-shrink: 0;
    margin: 0 !important;
}

.gpc-checkbox-wrapper {
    display: flex;
    align-items: center;
    clear: both;
}

.gpc-compare-checkbox {
    margin-right: 8px;
}

.gpc-checkbox-wrapper label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
	font-size:1rem;
	font-weight:500;
}

.gpc-checkbox-wrapper .gpc-compare-checkbox {

    margin-top: 0;
    margin-bottom: 0;
    vertical-align: middle; 
}

.gpc-checkbox-wrapper label {
    vertical-align: middle;
}

#gpc-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 99998;
    transform: translateY(100%);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    visibility: hidden;
}

#gpc-compare-bar:not(.gpc-compare-bar-hidden) {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.gpc-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

#gpc-bar-products {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 75%;
    padding-bottom: 5px;
}

.gpc-bar-item {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #eee;
    padding-right: 25px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
	position:relative;
}

.gpc-bar-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    margin-right: 8px;
    border-radius: 2px;
}

.gpc-bar-item-name {
    font-size: 1em;
	font-weight:500;
}

.gpc-bar-remove,
#gpc-clear-list-btn {
    margin-top: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: normal;
    padding: 0;
    opacity: 0.7;
    flex-shrink: 0;
}

#gpc-clear-list-btn img {
    width: 32px;
    height: 32px;
    display: block;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#gpc-clear-list-btn:hover img {
    opacity: 1;
}

.gpc-bar-remove:hover,
#gpc-clear-list-btn:hover {
    opacity: 1;
}

.gpc-bar-item .gpc-bar-remove {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 0px;
    right: -1px;
    line-height: 1;
    font-size: 0;
    color: transparent;
}

.gpc-bar-item .gpc-bar-remove img {
    width: 16px;
    height: 16px;
    display: block;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.gpc-bar-item .gpc-bar-remove:hover img {
    opacity: 1;
}

#gpc-bar-count {
    font-weight: 700;
    color: #333;
    display: block;
    line-height: 1.4;
}

body.gpc-popup-open {
    overflow: hidden;
}

#gpc-popup-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

#gpc-popup-overlay:not(.gpc-popup-hidden) {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

#gpc-popup-content {
    background: #ffffff;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
#gpc-popup-overlay:not(.gpc-popup-hidden) #gpc-popup-content {
    transform: scale(1);
}


#gpc-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.2em;
    font-weight: 300;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 5px;
}
#gpc-popup-close:hover {
    color: #000;
}

#gpc-popup-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-family: inherit;
}

#gpc-table-container {
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
}

.gpc-loader {
    font-size: 1.2em;
    color: #555;
    text-align: center;
    padding: 40px;
}
.gpc-error {
    font-size: 1.1em;
    color: #D8000C;
    background-color: #FFD2D2;
    border: 1px solid #D8000C;
    padding: 15px;
    border-radius: 4px;
}

.gpc-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.gpc-comparison-table th,
.gpc-comparison-table td {
    padding: 15px;
    border: 1px solid #eee;
    text-align: center;
    vertical-align: top;
    min-width: 150px;
}

.gpc-comparison-table tr {
	font-size: 0.95rem;
}
.gpc-comparison-table thead th {
    background: #f9f9f9;
    font-size: 1.1em;
    font-family: inherit;
	letter-spacing: 0px;
	text-transform: capitalize
}

.gpc-comparison-table tbody tr td:first-child {
    text-align: right;
    font-weight: 600;
    background: #fcfcfc;
    min-width: 200px;
    width: 20%;
	vertical-align: middle;
}

.gpc-comparison-table img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.gpc-comparison-table .button {
    font-family: inherit;
    font-size: inherit;
}
.gpc-comparison-table .add_to_cart_button {
    margin-top: 10px;
}

@media (max-width: 768px) {
    
    .gpc-comparison-table {
        display: none;
    }
    
    .gpc-mobile-view {
        display: block;
    }
    
    
    .gpc-feature-group {
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
    }
    
    .gpc-feature-title {
        font-size: 1.1em;
        font-weight: 600;
        background: #f5f5f5;
        padding: 12px 15px;
        border-bottom: 1px solid #e0e0e0;
        margin: 0;
    }
    
    .gpc-feature-values {
        padding: 10px 15px;
    }

    .gpc-product-value-pair {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
        padding: 12px 0;
    }
    .gpc-product-value-pair:last-child {
        border-bottom: none;
        padding-bottom: 5px;
    }
    .gpc-product-value-pair:first-child {
        padding-top: 5px;
    }
    
    .gpc-product-value-pair strong {
        flex: 0 0 40%;
        margin-right: 10px;
        font-weight: 600;
        line-height: 1.4;
    }
    
    .gpc-product-value-content {
        flex-grow: 1;
        text-align: center;
    }
	
	.gpc-product-value-content .woocommerce-Price-amount bdi,
	.gpc-product-value-content .pag-text {
		font-size:14px;
		font-weight: 500;
	}
    
    .gpc-product-value-content img {
        max-width: 100px;
        height: auto;
    }
    .gpc-product-value-content .button {
        display: block;
        margin-left: auto;
    }
    .gpc-product-value-content .add_to_cart_button {
        margin-top: 10px;
    }    
    .gpc-bar-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 15px;
    }
    
	#gpc-compare-bar {
        display: block !important;
	}	
    #gpc-bar-products {
        max-width: 100%;
        padding-bottom: 0;
    }
    
    .gpc-bar-actions {
        justify-content: space-between;
        gap: 10px;
    }
    #gpc-bar-count {
        flex-grow: 1;
    }
    
    #gpc-popup-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 20px 15px;
    }
    
    #gpc-popup-content h2 {
        font-size: 1.5em;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    #gpc-popup-close {
        top: 5px;
        right: 5px;
    }
	
	#gpc-show-popup-btn {
		width: 50%;
	}
	
	.gpc-bar-text-wrapper {
		max-width: 20%;
	}
}

@media (min-width: 769px) {
    .gpc-mobile-view {
        display: none;
    }
}

.gpc-bar-actions {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
	margin-bottom:-10px;
}

.gpc-bar-text-wrapper {
	margin-top: 0;
    display: block;
    font-size: 13px;
	line-height:1.4;
    color: #555;
    white-space: nowrap; 
    flex-shrink: 0;
    flex-grow: 1;
}

.gpc-bar-limit {
    font-size: 12px;
    color: #777;
    display: block; 
    line-height: 1.4;
}