/**
 * LZ Location Header Styles
 */

/* ==========================================================================
   Main Container
   ========================================================================== */

.lz-location-header {
    width: 100%;
}

.lz-location-header__container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 24px;
}

/* ==========================================================================
   Column 1: Info Section
   ========================================================================== */

.lz-location-header__info {
    flex: 1;
    padding-top: 10px;
}

.lz-location-header__info-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
}

/* ==========================================================================
   Location Icon (Inner Column 1)
   ========================================================================== */

.lz-location-header__icon-wrapper {
    flex-shrink: 0;
}

.lz-location-header__location-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* ==========================================================================
   Content (Inner Column 2) - Flex Column
   ========================================================================== */

.lz-location-header__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ==========================================================================
   Title
   ========================================================================== */

.lz-location-header__title {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #231f20;
    line-height: 1.3;
}

/* ==========================================================================
   Address
   ========================================================================== */

.lz-location-header__address {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #231f20;
    line-height: 1.4;
}

/* ==========================================================================
   Change Location Button
   ========================================================================== */

.lz-location-header__change-wrapper {
    position: relative;
    margin-top: 0px;
}

button.lz-location-header__change-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ff6632;
    transition: opacity 0.2s ease;
}

button.lz-location-header__change-btn:hover,
button.lz-location-header__change-btn:focus,
button.lz-location-header__change-btn:focus-visible {
    background-color: #00000000 !important;
    outline: none;
}

.lz-location-header__change-text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ff6632;
}

.lz-location-header__arrow-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* Arrow rotation when open */
.lz-location-header__change-wrapper--open .lz-location-header__arrow-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   Dropdown
   ========================================================================== */

.lz-location-header__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 10;
    min-width: 200px;
    background-color: #ffffff;
    border: 3px solid #dfdfdf;
    border-radius: 20px 6px 6px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    max-height: 280px;
    overflow-y: auto;
}

.lz-location-header__change-wrapper--open .lz-location-header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lz-location-header__dropdown-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.lz-location-header__dropdown-item {
    margin: 0;
    padding: 0;
}

.lz-location-header__dropdown-link {
    display: block;
    padding: 10px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #231f20!important;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.lz-location-header__dropdown-link:hover {
    background-color: #f5f5f5;
    color: #231f20!important;
    text-decoration: none;
}

/* Active item */
.lz-location-header__dropdown-item--active .lz-location-header__dropdown-link {
    background-color: #fff5f2;
    color: #ff6632!important;
    font-weight: 600;
}

.lz-location-header__dropdown-item--active .lz-location-header__dropdown-link:hover {
    background-color: #ffebe5;
}

/* ==========================================================================
   Column 2: Hero Icon
   ========================================================================== */

.lz-location-header__hero {
    flex-shrink: 0;
}

.lz-location-header__hero-icon {
    width: auto;
    height: 120px;
    object-fit: contain;
}

/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */

.lz-location-header__dropdown::-webkit-scrollbar {
    width: 6px;
}

.lz-location-header__dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.lz-location-header__dropdown::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
}

.lz-location-header__dropdown::-webkit-scrollbar-thumb:hover {
    background: #999999;
}