/* ==========================================================================
   Satum Search Toggle – widget styles
   ========================================================================== */

/* --- Widget wrapper --- */
.satum-search-toggle {
    position: relative;
	display: flex;
	border-radius: 5px;
	padding: 5px;
}

.satum-search-toggle.is-open{
    background: #0084C8;
}
/* --- Toggle icon button --- */
.satum-search-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 1;
    color: inherit;
    fill: currentColor;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.satum-search-toggle__icon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.satum-search-toggle__icon i {
    display: block;
    font-size: 16px;
    line-height: 1;
}

/* --- Search panel (dropdown, right-aligned to icon) --- */
.satum-search-toggle__panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9998;
    width: 350px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 16px;
    margin-top: 12px;
    /* Hidden state – CSS handles everything */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.satum-search-toggle.is-open .satum-search-toggle__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- Form layout --- */
.satum-search-toggle__form {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Label --- */
.satum-search-toggle__label {
    font-family: Raleway, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.25px;
    color: #08263F;
    white-space: nowrap;
    margin: 0;
    cursor: default;
}

/* --- Input --- */
.satum-search-toggle__input {
    flex: 1;
    min-width: 0;
    font-family: Raleway, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25px;
    color: #08263F;
    background: #fff;
    border: 1px solid #08263F;
    border-radius: 4px;
    padding: 8px 12px;
    outline: none;
    transition: border-color 0.2s ease;
}
.satum-search-toggle__input:focus {
    border-color: #0084C8;
}
.satum-search-toggle__input::placeholder {
    color: #08263F80;
}

/* --- Submit button --- */
.satum-search-toggle__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: Raleway, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.25px;
    color: #fff;
    background: #0084C8;
    border: none;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.satum-search-toggle__submit:hover {
    background: #006BA3;
}
.satum-search-toggle__submit svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
.satum-search-toggle__submit i {
    font-size: 14px;
    line-height: 1;
}

/* When search is open, disable hover on nav menu so no dropdowns appear */
.e-con:has(.satum-search-toggle.is-open) .elementor-widget-nav-menu {
    pointer-events: none;
}
