/**
 * GD Search Styles
 */

.gd-search-wrapper {
    display: inline-block;
    position: relative;
    right: 1rem;
}

.gd-search-icon {
    width: 25px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.gd-search-icon img {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.gd-search-input-container {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease, transform 0.1s ease;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    white-space: nowrap;
    width: 15rem !important;
    right: 2rem !important;
    max-width: calc(100vw - 10rem) !important;
}

.gd-search-input-container.active {
    opacity: 1;
    pointer-events: auto;
}

.gd-search-input {
    /* border: 1px solid #ccc !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    padding: 0.8rem !important; */
    outline: none !important;
    padding-right: 2.5rem !important;
    width: 100% !important;
    border: none;
}

.gd-search-input:focus {
    border-color: var(--e-global-color-primary, #333);
}

.gd-search-close {
    position: absolute;
    right: 12px;
    border: none;
    padding: 0;
    color: #666;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
}

.gd-search-close img {
    width: 100%;
    height: 100%;
    display: block;
}

.gd-search-close:hover {
    color: #000;
    background: none;
}

@media (max-width: 768px) {
    .gd-search-input-container {
        right: 3rem;
        width: 12rem;
    }
}
