.dasty3a-search-experience {
    position: relative;
    min-width: 0;
}

.dasty3a-search-experience.is-open {
    z-index: 10020;
}

.dasty3a-search-experience__clear {
    position: absolute;
    top: 50%;
    right: 48px;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--dasty-text-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.dasty3a-search-experience__clear[hidden] {
    display: none;
}

.dasty3a-search-experience__clear:hover,
.dasty3a-search-experience__clear:focus-visible {
    background: var(--dasty-surface-warm) !important;
    color: var(--dasty-primary);
    box-shadow: none !important;
}

.dasty3a-search-experience__clear svg {
    width: 18px;
    height: 18px;
}

.dasty3a-search-experience.is-open .dgwt-wcas-search-input,
.dasty3a-search-experience.is-open .dasty3a-search-fallback input[type="search"] {
    border-color: var(--dasty-primary) !important;
    box-shadow: 0 0 0 3px rgba(234, 127, 0, 0.12) !important;
}

.dasty3a-search-experience.is-querying .dasty3a-search-experience__clear {
    display: grid;
}

@media (min-width: 901px) {
    .dasty3a-search-experience .dgwt-wcas-preloader.dgwt-wcas-close {
        display: none;
    }
}

.dasty3a-search-experience .dgwt-wcas-search-input,
.dasty3a-search-experience .dasty3a-search-fallback input[type="search"] {
    padding-right: 96px !important;
}

.dasty3a-search-experience__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1;
    width: min(680px, 100%);
    padding: 22px;
    border: 1px solid var(--dasty-border);
    border-radius: 14px;
    background: var(--dasty-surface);
    box-shadow: 0 16px 34px rgba(32, 33, 36, 0.14);
}

.dasty3a-search-experience__mobile-bar {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.dasty3a-search-experience__discovery {
    display: grid;
    gap: 22px;
}

.dasty3a-search-experience__section h2 {
    margin: 0 0 12px;
    color: var(--dasty-text);
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.dasty3a-search-experience__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dasty3a-search-experience__chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid var(--dasty-border);
    border-radius: 999px;
    background: var(--dasty-surface-warm);
    color: var(--dasty-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
}

.dasty3a-search-experience__chip:hover,
.dasty3a-search-experience__chip:focus-visible {
    border-color: var(--dasty-primary);
    background: #fff7ec;
    color: var(--dasty-primary-hover);
}

.dasty3a-search-experience__section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.dasty3a-search-experience__section-heading h2 {
    margin-bottom: 0;
}

.dasty3a-search-experience__section-heading button {
    min-height: 40px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--dasty-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.dasty3a-search-experience__section-heading button:hover,
.dasty3a-search-experience__section-heading button:focus-visible {
    color: var(--dasty-primary-hover);
    text-decoration: underline;
}

.dasty3a-search-experience__history {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dasty3a-search-experience__history li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dasty3a-search-experience__history-query {
    flex: 1 1 auto;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--dasty-border);
    border-radius: 10px;
    background: var(--dasty-surface);
    color: var(--dasty-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.dasty3a-search-experience__history-query:hover,
.dasty3a-search-experience__history-query:focus-visible {
    border-color: var(--dasty-primary);
    background: var(--dasty-surface-warm);
    color: var(--dasty-text);
}

.dasty3a-search-experience__history-remove {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--dasty-border);
    border-radius: 50%;
    background: var(--dasty-surface);
    color: var(--dasty-text-muted);
    cursor: pointer;
}

.dasty3a-search-experience__history-remove:hover,
.dasty3a-search-experience__history-remove:focus-visible {
    background: var(--dasty-surface-warm);
    color: var(--dasty-primary);
}

.dasty3a-search-experience__history-remove svg {
    width: 17px;
    height: 17px;
}

html.dasty3a-search-open .dgwt-wcas-suggestions-wrapp {
    z-index: 10021 !important;
}

@media (max-width: 900px) {
    .dasty3a-search-experience__panel {
        width: 100%;
    }
}

@media (max-width: 767px) {
    html.dasty3a-search-open,
    html.dasty3a-search-open body {
        overflow: hidden;
    }

    .dasty3a-search-experience.is-open .dasty3a-search-experience__engine {
        position: fixed;
        top: 16px;
        right: 16px;
        left: 68px;
        z-index: 10022;
    }

    body.admin-bar .dasty3a-search-experience.is-open .dasty3a-search-experience__engine {
        top: 62px;
    }

    .dasty3a-search-experience.is-open .dasty3a-search-experience__clear {
        position: fixed;
        top: 39px;
        right: 56px;
        z-index: 10023;
        transform: translateY(-50%);
    }

    body.admin-bar .dasty3a-search-experience.is-open .dasty3a-search-experience__clear {
        top: 85px;
    }

    .dasty3a-search-experience .dgwt-wcas-search-input,
    .dasty3a-search-experience .dasty3a-search-fallback input[type="search"] {
        padding-right: 88px !important;
    }

    .dasty3a-search-experience__panel {
        position: fixed;
        inset: 0;
        z-index: 10021;
        width: auto;
        max-height: none;
        padding: 80px 16px 28px;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        background: var(--dasty-surface);
        box-shadow: none;
    }

    body.admin-bar .dasty3a-search-experience__panel {
        padding-top: 126px;
    }

    .dasty3a-search-experience.is-open .dasty3a-search-experience__mobile-bar {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 10023;
        display: block;
        width: 44px;
        height: 46px;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    body.admin-bar .dasty3a-search-experience.is-open .dasty3a-search-experience__mobile-bar {
        top: 62px;
    }

    .dasty3a-search-experience__mobile-bar strong {
        display: none;
    }

    .dasty3a-search-experience__back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-width: 44px;
        min-height: 46px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--dasty-primary);
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .dasty3a-search-experience__back svg {
        width: 20px;
        height: 20px;
    }

    .dasty3a-search-experience__back span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .dasty3a-search-experience__discovery {
        gap: 26px;
    }

    .dasty3a-search-experience__section h2 {
        margin-bottom: 14px;
        font-size: 15px;
    }

    .dasty3a-search-experience__chips {
        gap: 10px;
    }

    .dasty3a-search-experience__chip,
    .dasty3a-search-experience__history-query {
        min-height: 40px;
        font-size: 14px;
    }

    .dasty3a-search-experience__history {
        gap: 8px;
    }

    .dasty3a-search-experience__history-remove {
        width: 40px;
        height: 40px;
    }

    html.dasty3a-search-open .dgwt-wcas-suggestions-wrapp {
        z-index: 10024 !important;
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
    }
}

.dasty3a-search-experience__clear[hidden] {
    display: none;
}

/* Mobile search close control: override the legacy Elementor button surface directly. */
@media (max-width: 767px) {
    body.elementor-kit-93 .dasty3a-search-experience__back {
        background-color: #FFFFFF;
        color: #2F2A25;
        border: 1px solid #F1E6D6;
        border-radius: 12px;
    }

    body.elementor-kit-93 .dasty3a-search-experience__back:hover,
    body.elementor-kit-93 .dasty3a-search-experience__back:focus,
    body.elementor-kit-93 .dasty3a-search-experience__back:focus-visible,
    body.elementor-kit-93 .dasty3a-search-experience__back:active {
        background-color: #FFF8EE;
        color: #E58E00;
        border-color: #F5A300;
    }

    body.elementor-kit-93 .dasty3a-search-experience__back:focus-visible {
        outline: 2px solid #F5A300;
        outline-offset: 2px;
    }
}
