/* Base Layout */
.location-stock-cards {
    display: flex !important;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
    visibility: visible !important;
    opacity: 1 !important;
    flex-wrap: wrap;
}

/* Product page specific card layout */
.single-product .location-stock-cards .location-stock-card {
    flex: 1 1 calc(33.333% - 15px);
    max-width: calc(33.333% - 15px);
}

/* Shop page specific card layout */
.cgml-location-shop .location-stock-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px; /* Space for potential scrollbar */
    margin-bottom: 30px;
}

.cgml-location-shop .location-stock-cards .location-stock-card {
    flex: 1;
    min-width: 120px; /* Minimum width to prevent too narrow cards */
    max-width: 200px; /* Maximum width to prevent too wide cards */
}

/* Card Layout */
.location-stock-card {
    padding: 15px;
    border-radius: 6px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Card Elements */
.location-stock-card:hover:not(.unavailable) {
    background-color: #2C2D33;
}

.location-stock-card:hover:not(.unavailable) .location-name,
.location-stock-card:hover:not(.unavailable) .bi {
    color: white;
}

.location-icon-name {
    margin-bottom: 10px;
    font-size: 20px;
    color: #000;
    margin-top: 2px;
    text-align: center;
}

.location-icon-name .bi {
    font-size: 30px;
    margin-bottom: 5px;
}

.location-name {
    font-size: 13px;
    line-height: 1.2em;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Stock Status */
.location-stock {
    border-radius: 6px;
    color: white;
    margin-top: 10px;
    border: 2px solid #fff !important;
    line-height: 1.4em;
}

.stock-quantity {
    margin: 9px 0;
    font-size: 15px;
    text-align: center;
}

/* Stock Status Colors and States */
.location-stock-card.available .location-stock {
    background-color: #28a745;
}

.location-stock-card.limited .location-stock {
    background-color: #d3a48b;
}

.location-stock-card.unavailable .location-stock,
.location-stock-card.neutral .location-stock {
    background-color: #a1a1a1;
}

/* Card States - Regular Locations */
.location-stock-card.unavailable {
    opacity: 0.6;
    background: #bdbdbd;
    pointer-events: none;
    cursor: not-allowed;
}

.location-stock-card.limited:not(.shipping-location) {
    pointer-events: none;
    cursor: not-allowed;
}

.location-stock-card.limited:not(.shipping-location) i.bi,
.location-stock-card.limited:not(.shipping-location) .location-icon-name,
.location-stock-card.limited:not(.shipping-location) .location-name {
    color: #fff;
}

/* Card States - Shipping Location */
.location-stock-card.shipping-location {
    background-color: #ffffff;
}

.location-stock-card.shipping-location.limited {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.location-stock-card.shipping-location i.bi,
.location-stock-card.shipping-location .location-icon-name,
.location-stock-card.shipping-location .location-name {
    color: #2C2D33;
}

.location-stock-card.shipping-location:hover {
    background-color: #2C2D33;
}

.location-stock-card.shipping-location:hover i.bi,
.location-stock-card.shipping-location:hover .location-icon-name,
.location-stock-card.shipping-location:hover .location-name {
    color: #ffffff;
}

/* Selected State */
.location-stock-card.selected {
    background-color: #111;
}

.location-stock-card.selected .location-name,
.location-stock-card.selected .bi {
    color: white !important;
}

/* Tooltip for disabled cards */
.location-stock-card.unavailable,
.location-stock-card.limited:not(.shipping-location) {
    position: relative;
}

.location-stock-card.unavailable::after,
.location-stock-card.limited:not(.shipping-location)::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.location-stock-card.unavailable:hover::after,
.location-stock-card.limited:not(.shipping-location):hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 5px);
}

/* Shipping Icon Override */
.location-stock-card.shipping-location .bi-shop::before {
    content: "\F5EA" !important;
}

/* Low Stock Indicator for Product Cards */
.cgml-low-stock::after {
    content: var(--cgml-low-stock-text, "Low Stock");
    display: inline-block;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: normal;
    color: #fff;
    background-color: var(--cgml-low-stock-color, #ffc107);
    border-radius: 3px;
    z-index: 5;
}

/* Ensure the low stock indicator stays visible on hover */
ul.products li.product.cgml-low-stock:hover::after {
    z-index: 11;
}

/* Define CSS variables for theme customization */
:root {
    --cgml-low-stock-color: #ffc107;
    --cgml-low-stock-text: "Low Stock";
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .location-stock-cards {
        flex-direction: column;
    }
    
    .location-stock-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
}

/* Cart Location Display */
.cgml-cart-location {
    margin-top: 5px;
    color: #666;
}

.cgml-cart-location-address {
    margin-top: 2px;
    color: #999;
    font-style: italic;
}

.cgml-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
}

.cgml-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 2em;
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.cgml-modal h3 {
    margin-top: 0;
    color: #333;
}

.cgml-modal-buttons {
    margin-top: 1.5em;
    display: flex;
    justify-content: center;
    gap: 1em;
}

.cgml-modal button {
    min-width: 120px;
}

.cgml-modal .cgml-cancel {
    background-color: #f0f0f0;
    color: #333;
}

.cgml-modal .cgml-confirm {
    background-color: #0073aa;
    color: #fff;
}

/* Pickup Message Styles */
.cgml-pickup-message {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 1.2em 1.5em;
    margin: 0 0 2em 0;
    border-radius: 6px;
    font-size: 0.95em;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.cgml-pickup-message:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.cgml-pickup-message strong {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.5em;
    color: #2c2d33;
    font-size: 1.05em;
}

.cgml-pickup-message.after-hours {
    background-color: #fff8e5;
    border-color: #ffe4b0;
}

.cgml-pickup-message.after-hours:hover {
    border-color: #ffd980;
}

.cgml-pickup-message.closing-soon {
    background-color: #fff4f4;
    border-color: #ffd0d0;
}

.cgml-pickup-message.closing-soon:hover {
    border-color: #ffb0b0;
}

.cgml-message-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 1.1em;
}

.cgml-pickup-message .cgml-message-icon {
    color: #28a745;
}

.cgml-pickup-message.after-hours .cgml-message-icon {
    color: #ffc107;
}

.cgml-pickup-message.closing-soon .cgml-message-icon {
    color: #dc3545;
}

.cgml-pickup-message-content {
    margin-top: 0.5em;
    color: #4a4a4a;
    font-size: 0.95em;
}

.cgml-pickup-confirmation {
    margin: 1.5em 0;
    padding-top: 1.5em;
    border-top: 1px solid #e5e5e5;
}

.cgml-pickup-confirmation label {
    font-weight: normal;
    line-height: 1.6;
    display: inline !important;
}

.cgml-pickup-confirmation input[type="checkbox"] {
    margin-right: 8px;
}

#place_order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Location Shop Category Styling */
.cgml-category-title {
    font-size: 24px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cgml-category-title:first-child {
    margin-top: 0;
}

.cgml-category-section {
    margin-bottom: 40px;
}

.cgml-category-section:last-child {
    margin-bottom: 0;
}

/* Ensure proper spacing between products within categories */
.cgml-category-section ul.products {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cgml-category-title {
        font-size: 20px;
        margin: 30px 0 15px;
    }
    
    .cgml-category-section {
        margin-bottom: 30px;
    }
} 

@media(min-width: 981px){
    .columns-3 ul.products.columns-4 li.product,t {
        float: left;
        width: 24.97%;
    }
}

/* Variation Swatches Styling */
:root {
    --sale-color: #9b3737;
    --button-dark: #2C2D33;
    --low-stock-color: #ffc107;
}

.cgml-variation-swatches {
    margin: 0 0 20px;
    clear: both;
    width: 100%;
}

/* Hide variations not available at any location by default */
.cgml-variation-swatches .cgml-swatch-button[data-available="false"] {
    display: none;
}

/* Loading state */
.cgml-variation-swatches.loading-swatches {
    position: relative;
    min-height: 80px;
}

.cgml-variation-swatches.loading-swatches::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 10;
}

.cgml-variation-swatches.loading-swatches::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top: 3px solid var(--sale-color, #333);
    border-radius: 50%;
    animation: cgml-spin 0.8s linear infinite;
    z-index: 11;
}

@keyframes cgml-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.cgml-swatch-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

/* Base button style */
body .cgml-variation-swatches .cgml-swatch-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    min-width: 90px;
    /* min-height: 95px; */
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Product-2025 styles */

body.product-2025 .cgml-variation-swatches .cgml-swatch-button {
    background-color: transparent;
    border-radius: 7px;
    border-width: 2px;
    border-color: var(--slate);
    font-family: var(--heading-font);
    position: relative;
    margin: 0px 5px 5px 0px;
    width: calc(33% - 10px);
    max-width: 180px;
    margin: 0;
}

body.product-2025 .cgml-swatch-button span.name {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    text-align: center;
    font-size: 22px;
    margin-top: 6px;
    padding: 0;
    font-weight: normal;
}

body.product-2025 .cgml-swatch-button span.price {
    display: block;
    font-weight: bold;
    font-size: 15px;
    font-size: 22px;
    margin-bottom: 11px;
    font-weight: normal;
    color: var(--green);
    margin-bottom: 4px;
}

.product-2025 .low-stock span.save-amount {
    display: none;
}

.product-2025 .cgml-swatch-button .save-amount {
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0 0 4px 4px;
    letter-spacing: normal;
    text-align: center;
    box-sizing: border-box;
    display: block;
    font-size: 14px;
    background-color: var(--red);
    margin-top: 10px;
    color: #fff;
    font-family: var(--heading-font);
    font-weight: var(--bold-weight);
    padding: 5px 14px !important;
    width: 100%;
}

body.product-2025 .cgml-swatch-button.has-savings span.name {
    font-size: 30px;
}

body.product-2025 .cgml-variation-swatches .cgml-swatch-button.selected:hover,
body.product-2025 .cgml-variation-swatches .cgml-swatch-button.selected {
    color: #fff !important;
    background-color: var(--green);
    border-color: var(--green);
    border-width: 2px;
}

body.product-2025 .cgml-variation-swatches button.cgml-swatch-button.has-savings.selected {
    background-color: var(--red);
    border-color: var(--red);
}

body.product-2025 .cgml-swatch-button.selected span.price{
    color:#fff;
}

/* Hover style */
body .cgml-variation-swatches .cgml-swatch-button:hover:not(.unavailable) {
    border-color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #eee;
}

/* Selected button style */
body .cgml-variation-swatches .cgml-swatch-button.selected {
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background-color: var(--button-dark);
}
body .cgml-variation-swatches .cgml-swatch-button.selected:hover{
    background-color: var(--button-dark);
    color: #fff;
}

/* Low Stock variation styling */
body .cgml-variation-swatches .cgml-swatch-button.low-stock {
    border-color: #e6bf8a;
    background-color: #fceadc;
    color: #b8a293;
    position: relative;
    pointer-events: none;
}

body .cgml-variation-swatches .cgml-swatch-button.low-stock:hover {
    background-color: #f9dcc3;
    border-color: #d9ae7c;
}

body .cgml-variation-swatches .cgml-swatch-button.low-stock.selected {
    background-color: #fceadc;
    border: 3px solid var(--sale-color);
    color: #b8a293;
}


body .cgml-variation-swatches .cgml-swatch-button.low-stock::before {
    content: "Low Stock";
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #222;
    z-index: 1;
    text-decoration: none;
    background-color: #fceadc;
    opacity: 0.7;
    padding: 7px 0;
}

body .cgml-variation-swatches .cgml-swatch-button.low-stock span.name,
body .cgml-variation-swatches .cgml-swatch-button.low-stock span.price {
    color: #b8a293;
    text-decoration: none;
}

/* Style for buttons with savings */
.cgml-swatch-button.has-savings {
    border-color: #28a745;
    background-color: #f1f8f3;
}

button.cgml-swatch-button.has-savings {
    padding-bottom: 35px;
}

.cgml-swatch-button.has-savings.selected {
    border: 3px solid var(--sale-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Button text element */
.cgml-swatch-button span.name {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    text-align: center;
}

/* Price element */
.cgml-swatch-button span.price {
    display: block;
    font-weight: bold;
    font-size: 15px;
}

.cgml-swatch-button :last-child:not(.save-amount) {
    margin-bottom: 0;
}

.cgml-swatch-button .save-amount {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--sale-color);
    color: white;
    font-size: 12px;
    padding: 4px 0;
    border-radius: 0 0 4px 4px;
    font-weight: bold;
    letter-spacing: normal;
    text-align: center;
    box-sizing: border-box;
}

/* Unavailable variation styling */
body .cgml-variation-swatches .cgml-swatch-button.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    background-color: #f1f1f1;
    position: relative;
    color: #777;
    text-decoration: line-through;
}

body .cgml-variation-swatches .cgml-swatch-button.unavailable::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.05) 10px,
        rgba(0,0,0,0.08) 10px,
        rgba(0,0,0,0.08) 20px
    );
    pointer-events: none;
}

body .cgml-variation-swatches .cgml-swatch-button.unavailable:hover {
    box-shadow: none;
    background-color: #f1f1f1;
    border-color: #ccc;
}

/* Tooltip for unavailable variations */
body .cgml-variation-swatches .cgml-swatch-button.unavailable::before {
    content: "Out of stock";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    z-index: 10;
}

body .cgml-variation-swatches .cgml-swatch-button.unavailable:hover::before {
    opacity: 1;
    visibility: visible;
}

body .cgml-variation-swatches .cgml-swatch-button.unavailable .save-amount{
    display: none;
}

.savings-divider {
    width: 100%;
    padding: 15px 0;
    margin: 0;
    text-align: center;
    position: relative;
}

.savings-divider:before {
    content: "";
    display: block;
    border-bottom: 1px solid var(--sale-color);
    position: absolute;
    z-index: 0;
    top: 50%;
    width: 100%;
}

.savings-divider span {
    z-index: 1;
    position: relative;
    background-color: #f8f8f8;
    padding: 0 15px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--sale-color);
}

.competitor-notice {
    width: 100%;
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    text-align: left;
    font-style: italic;
}

/* Shipping Products Section */
.cgml-shipping-products-section {
    margin-top: 2em;
    padding: 1.5em;
    background-color: #f9f9f9;
    border-radius: 4px;
    clear: both;
}

.cgml-shipping-products-section .section-title {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

.cgml-shipping-products-section .section-subtitle {
    margin-bottom: 0;
    color: #666;
}

.cgml-shipping-products-section .cgml-result-count {
    margin-bottom: 1em;
    font-weight: bold;
}

/* Archive Header */
.cgml-archive-header {
    margin-bottom: 2em;
    padding: 1em;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.cgml-archive-header .cgml-archive-title {
    margin-top: 0;
    font-size: 1.5em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cgml-shipping-products-section,
    .cgml-archive-header {
        padding: 1em;
    }
    
    .cgml-shipping-products-section .section-title,
    .cgml-archive-header .cgml-archive-title {
        font-size: 1.3em;
    }
}

/* Section subtitle styles */
.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 0;
    font-style: italic;
}

#cgml-local-products-section{
    margin-bottom: 50px;
}
#cgml-local-products-section .cgml-archive-header{
    margin-bottom: 20px;
}

/* No Products Message */
.cgml-no-products-message{
    padding: 20px; 
    margin: 20px 0; 
    border: 1px solid #f0f0f0; 
    background-color: #f9f9f9; 
    color: #333;
    text-align: center;
    border-radius: 5px;
}

.cgml-no-products-message h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.4em;
}

.cgml-no-products-message p {
    margin-bottom: 0.8em;
    font-size: 0.95em;
}

.cgml-no-products-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cgml-no-products-actions .button {
    min-width: 150px;
}

.cgml-no-products-actions .button-secondary {
    background-color: #f0f0f0;
    color: #333;
}

@media (max-width: 768px) {
    .cgml-no-products-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cgml-no-products-actions .button {
        margin-bottom: 10px;
        width: 100%;
    }
}


.single_variation_wrap .woocommerce-variation.single_variation{
    /* display: none!important;  */
    /* Was hiding the product description 20260129 - Also there was a snippet with the same CSS */
}

/* Location Indicator - Used when cards are disabled */
#cgml-location-indicator-wrapper {
    margin-bottom: 20px !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
    clear: both !important;
    box-sizing: border-box !important;
}

/* Reset and override any potentially conflicting styles */
#cgml-location-indicator,
#cgml-location-indicator * {
    box-sizing: border-box !important;
}

/* Use higher specificity and !important to override any conflicting styles */
#cgml-location-indicator {
    display: flex !important;
    align-items: center !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #e5e5e5 !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    position: relative !important;
    z-index: 1 !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

#cgml-location-indicator,
#cgml-location-indicator > div,
#cgml-location-indicator span,
#cgml-location-indicator i,
#cgml-location-indicator button {
    line-height: normal !important;
    background-image: none !important;
    text-shadow: none !important;
    transform: none !important;
    text-transform: none !important;
    float: none !important;
    box-shadow: none !important;
    letter-spacing: normal !important;
    overflow: visible !important;
    margin: 0 !important;
}

/* Additional specific styles for responsive adjustment */
@media (max-width: 768px) {
    #cgml-location-indicator {
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        padding: 10px !important;
    }
    
    #cgml-location-indicator .cgml-change-location {
        margin-top: 10px !important;
        width: 100% !important;
    }
    
    #cgml-location-indicator .cgml-change-location button {
        width: 100% !important;
    }
}

.cgml-location-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    white-space: nowrap;
}

body .cgml-location-mode i,
.single-product .cgml-location-mode i {
    font-size: 20px !important;
    color: #333 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
}

body .cgml-mode-text,
.single-product .cgml-mode-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

body .cgml-location-selected,
.single-product .cgml-location-selected {
    flex-grow: 1 !important;
    padding: 0 10px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

body .cgml-location-name,
.single-product .cgml-location-name {
    font-size: 15px !important;
    font-weight: 500 !important;
    max-width: 100% !important;
    display: inline-block !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

@media(max-width:767px){
    body #masthead .cgml-location-name, .single-product .cgml-location-name {
        /* display: none !important; */
    }
}

@media(max-width:981px){
    body #masthead .cgml-location-name, .single-product .cgml-location-name {
        /* display: none !important; */
    }
}

body .cgml-change-location,
.single-product .cgml-change-location {
    flex-shrink: 0 !important;
}

body .cgml-change-location button,
.single-product .cgml-change-location button {
    background-color: #2C2D33 !important;
    color: white !important;
    border: none !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: background-color 0.3s ease !important;
    white-space: nowrap !important;
    min-width: 120px !important;
    text-align: center !important;
}

body .cgml-change-location button:hover,
.single-product .cgml-change-location button:hover {
    background-color: #484a50 !important;
}

@media (max-width: 768px) {
    body .cgml-location-indicator,
    .single-product .cgml-location-indicator {
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        padding: 10px !important;
    }
    
    body .cgml-location-mode,
    .single-product .cgml-location-mode {
        min-width: auto !important;
        margin-right: 10px !important;
    }
    
    body .cgml-location-selected,
    .single-product .cgml-location-selected {
        width: auto !important;
        flex: 1 !important;
        padding: 0 !important;
    }
    
    body .cgml-change-location,
    .single-product .cgml-change-location {
        margin-top: 10px !important;
        width: 100% !important;
    }
    
    body .cgml-change-location button,
    .single-product .cgml-change-location button {
        width: 100% !important;
        min-width: auto !important;
    }
}

/* test */