/* Chronic Guru Theme Specific Styles */
/* .shoptimizer-primary-navigation .cgml-header-location {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.shoptimizer-primary-navigation .cgml-slideout-trigger.header-pin {
    background: transparent;
    border: none;
    padding: 8px;
    position: relative;
    cursor: pointer;
}

.shoptimizer-primary-navigation .cgml-slideout-trigger.header-pin i {
    font-size: 22px;
    color: var(--cgSageGreen, #4d7c0f);
} */

/* Updated pin styles */
.cgml-header-location {
    display: inline-flex !important;
    align-items: center;
    margin-right: 10px;
    cursor: pointer;
}

.cgml-header-location button {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
}

.cgml-header-location .bi-geo-alt-fill {
    font-size: 24px;
    color: #d2b48c;
}

.cgml-location-name {
    font-size: 14px;
    /* margin-left: 5px; */
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* Prevent extremely long location names from breaking layout */
    display: inline-block;
    vertical-align: middle;
}

/* Add specific styles for location name inside slideout trigger */
.cgml-slideout-trigger .cgml-location-name {
    transition: color 0.2s ease;
}

@media(min-width:981px){
    .cgml-slideout-trigger .cgml-location-name {
        color: #fff;
    }
}

.cgml-slideout-trigger:hover .cgml-location-name {
    color: var(--cgGoldOchre); /* Darker shade on hover, matching the icon hover color */
}

/* Responsive adjustments for location name */
@media (max-width: 767px) {
    .cgml-location-name {
        max-width: 100px; /* Smaller on mobile */
        font-size: 13px;
    }
}

/* Cart menu specific styles */

@media(min-width:768px){
    .shoptimizer-primary-navigation .site-header-cart.menu {
        display: flex !important;
        align-items: center;
    }
}

.site-header-cart.menu .cgml-header-location {
    margin: 0 15px 0 0;
}

/* Slideout Container - Updated for left side animation */
#cgml-slideout-container {
    position: fixed;
    top: 0;
    left: -400px; /* Start offscreen to the left */
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    z-index: 99999;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1); /* Shadow on right side */
    display: none;
    transition: transform 0.3s ease-in-out;
}

#cgml-slideout-container.active {
    transform: translateX(400px);
}

/* Slideout Overlay */
#cgml-slideout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cgml-slideout-overlay.active {
    opacity: 1;
}

/* Slideout open state for body */
.cgml-slideout-open {
    overflow: hidden !important;
}

/* Header */
.cgml-slideout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.cgml-slideout-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.cgml-slideout-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    padding: 4px;
}

.cgml-slideout-close:hover {
    color: #333;
}

/* Content */
.cgml-slideout-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Generic Trigger button */
.cgml-slideout-trigger {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.cgml-slideout-trigger:hover {
    /* background-color: #f5f5f5; */
}

.cgml-slideout-trigger i {
    font-size: 16px;
    color: var(--cgGoldOchre, #4d7c0f);
}
.cgml-slideout-trigger:hover i {
    color: var(--cgGoldOchre, #4d7c0f);
}


/* Header Location Map Pin Styles */
.cgml-header-location {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.cgml-slideout-trigger.header-pin {
    background: transparent;
    border: none;
    padding: 8px;
    position: relative;
}

.cgml-slideout-trigger.header-pin i {
    font-size: 22px;
    color: var(--cgSageGreen, #4d7c0f);
}

.cgml-slideout-trigger.header-pin:hover i {
    color: #3a5e0a;
}

/* Location indicator (small dot when location is selected) */
.cgml-location-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #ce1126;
    border-radius: 50%;
}

/* Shoptimizer specific styles */
.site-header .site-header-cart {
    margin-left: 0; /* Remove margin since we'll have the pin icon first */
}

/* Override location selector styles for slideout */
.cgml-slideout-content .cgml-location-selector {
    max-width: 100%;
    box-shadow: none;
    border: none;
}

.cgml-slideout-content .cgml-location-list {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    max-height: none;
    overflow: visible;
}

.cgml-slideout-content .cgml-current-header,
.cgml-slideout-content .cgml-empty-state {
    display: none;
}
@media (max-width: 991px) {
    #masthead .shoptimizer-myaccount {
        display: none;
    }
    #masthead .site-header-cart.menu .cgml-header-location {
        margin: -4px 5px 0 0;
    }
    #masthead .site-header-cart.menu{
        display: flex;
    }
}

/* Responsive styles */
@media (max-width: 480px) {
    #cgml-slideout-container {
        top: auto;
        left: 0;
        bottom: -80vh;
        height: 80vh;
        max-width: 100%;
        transform: translateY(0);
        transition: transform 0.3s ease-in-out;
    }

    #cgml-slideout-container.active {
        transform: translateY(-80vh);
    }
    
    .cgml-slideout-content .cgml-location-option {
        margin: 6px 0;
    }
} 