.wp-block-kadence-header .wp-block-kadence-search {
    /*width: min(100%, 560px);*/
    max-width: 560px;
    position: relative;
    /*padding-bottom: 0.45rem;*/
}

.wp-block-kadence-header .wp-block-kadence-search::after {
    content: "";
    position: absolute;
    inset-inline: clamp(1rem, 2vw, 1.35rem);
    bottom: 0;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        color-mix(in srgb, var(--global-palette6) 26%, transparent) 12%,
        color-mix(in srgb, var(--global-palette6) 62%, var(--global-palette7)) 50%,
        color-mix(in srgb, var(--global-palette6) 26%, transparent) 88%,
        transparent 100%
    );
    pointer-events: none;
}

.wp-block-kadence-search .kb-search-modal-content {
    width: min(100%, 760px);
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.wp-block-kadence-search .kb-search-modal-content .kb-search-form {
    width: min(100%, 760px);
    max-width: 760px;
}

.wp-block-kadence-search .kb-search-input-wrapper,
.search-form,
.woocommerce-product-search,
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem;
    border: 1px solid color-mix(in srgb, var(--global-palette6) 26%, var(--global-palette9));
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--global-palette8) 94%, var(--global-palette9)) 0%,
        var(--global-palette9) 100%
    );
    box-shadow: 0 18px 40px -30px color-mix(in srgb, var(--global-palette1) 34%, transparent);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wp-block-kadence-search .kb-search-input-wrapper:hover,
.wp-block-kadence-search .kb-search-input-wrapper:focus-within,
.search-form:hover,
.search-form:focus-within,
.woocommerce-product-search:hover,
.woocommerce-product-search:focus-within,
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp:hover,
.dgwt-wcas-search-wrapp.dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp,
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp:focus-within {
    border-color: color-mix(in srgb, var(--global-palette11) 34%, var(--global-palette9));
    box-shadow: 0 24px 44px -30px color-mix(in srgb, var(--global-palette1) 42%, transparent);
}

.wp-block-kadence-search .kb-search-input[type="text"],
.search-form .search-field,
.woocommerce-product-search .search-field,
.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:hover,
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 0.9rem 0 1rem;
    border: 0 !important;
    border-radius: 10px;
    background: color-mix(in srgb, var(--global-palette8) 88%, var(--global-palette9)) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--global-palette6) 30%, transparent) !important;
    color: var(--global-palette2) !important;
    font-size: 1rem;
    line-height: 1.4;
}

.wp-block-kadence-search .kb-search-input[type="text"]:hover,
.wp-block-kadence-search .kb-search-input[type="text"]:focus,
.search-form .search-field:hover,
.search-form .search-field:focus,
.woocommerce-product-search .search-field:hover,
.woocommerce-product-search .search-field:focus,
.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:hover,
.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
    background: var(--global-palette9) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--global-palette11) 22%, var(--global-palette9)) !important;
}

.wp-block-kadence-search .kb-search-input::placeholder,
.search-form .search-field::placeholder,
.woocommerce-product-search .search-field::placeholder,
.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
    color: color-mix(in srgb, var(--global-palette4) 62%, var(--global-palette6));
    opacity: 1;
}

.search-form label,
.woocommerce-product-search label {
    flex: 1 1 auto;
    margin: 0;
}

.wp-block-kadence-search .kb-search-icon-submit,
.search-form .search-submit,
.woocommerce-product-search button[type="submit"] {
    position: relative !important;
    inset: auto !important;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--global-palette2) 0%, var(--global-palette6) 100%);
    color: var(--global-palette9);
    box-shadow: 0 16px 28px -20px color-mix(in srgb, var(--global-palette1) 70%, transparent);
    transform: none !important;
    transition: box-shadow 0.18s ease, filter 0.18s ease;
}

.wp-block-kadence-search .kb-search-icon-submit:hover,
.wp-block-kadence-search .kb-search-icon-submit:focus-visible,
.search-form .search-submit:hover,
.search-form .search-submit:focus-visible,
.woocommerce-product-search button[type="submit"]:hover,
.woocommerce-product-search button[type="submit"]:focus-visible {
    transform: none;
    filter: saturate(1.05);
    box-shadow: 0 18px 28px -20px color-mix(in srgb, var(--global-palette1) 76%, transparent);
}

.wp-block-kadence-search .kb-search-icon,
.wp-block-kadence-search .kb-search-close-btn,
.search-form .search-submit,
.woocommerce-product-search button[type="submit"] {
    color: inherit;
}

.wp-block-kadence-search .kb-search-icon,
.wp-block-kadence-search .kb-search-close-btn,
.wp-block-kadence-search .kb-search-icon-submit .kb-search-icon {
    position: static !important;
    inset: auto !important;
    flex: 0 0 auto;
    transform: none !important;
    transition: none !important;
}

.wp-block-kadence-search .kb-search-icon svg,
.wp-block-kadence-search .kb-search-close-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transform: none !important;
    transition: none !important;
}

.wp-block-kadence-search .kb-search-close-btn {
    position: relative !important;
    inset: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--global-palette9);
    transform: none !important;
}

.wp-block-kadence-search .kb-search-close-btn,
#search-drawer .drawer-inner .drawer-header .search-toggle-close.drawer-toggle {
    position: fixed !important;
    inset: unset !important;
    top: clamp(1.5rem, 3.6vw, 2.1rem) !important;
    right: clamp(1.15rem, 2.8vw, 1.75rem) !important;
    bottom: auto !important;
    left: auto !important;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    box-shadow: none;
    font-size: 0 !important;
    line-height: 0;
    overflow: visible;
    z-index: 120;
}

.wp-block-kadence-search .kb-search-close-btn:hover,
.wp-block-kadence-search .kb-search-close-btn:focus-visible,
#search-drawer .drawer-inner .drawer-header .search-toggle-close.drawer-toggle:hover,
#search-drawer .drawer-inner .drawer-header .search-toggle-close.drawer-toggle:focus-visible {
    filter: none;
    box-shadow: none;
}

#search-drawer .drawer-inner .drawer-header {
    min-height: 0;
    padding: 0;
}

#search-drawer .drawer-inner .drawer-header .search-toggle-close.drawer-toggle .kadence-svg-iconset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.wp-block-kadence-search .kb-search-close-btn svg,
#search-drawer .drawer-inner .drawer-header .search-toggle-close.drawer-toggle .kadence-svg-icon {
    display: block;
    width: 18px;
    height: 18px;
    transform: none !important;
    transition: none !important;
}

.wp-block-kadence-search .kb-search-close-btn svg {
    stroke: currentColor;
    fill: none;
}

#search-drawer .drawer-inner .drawer-header .search-toggle-close.drawer-toggle .kadence-svg-icon,
#search-drawer .drawer-inner .drawer-header .search-toggle-close.drawer-toggle .kadence-svg-icon path {
    fill: currentColor;
}

.dgwt-wcas-search-wrapp {
    width: 100%;
    max-width: 100% !important;
}

.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp {
    padding: 0.25rem;
}

.dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--global-palette11) 0%, var(--global-palette4) 100%) !important;
    box-shadow: 0 16px 28px -20px color-mix(in srgb, var(--global-palette1) 70%, transparent);
    transform: none !important;
}

.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::before {
    content: none;
}

.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:hover,
.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:focus {
    opacity: 1;
    filter: saturate(1.05);
    transform: none !important;
}

.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier path,
.dgwt-wcas-search-wrapp .dgwt-wcas-close path,
.dgwt-wcas-search-wrapp .dgwt-wcas-voice-search svg path {
    fill: var(--global-palette9) !important;
}

.dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-details-wrapp {
    margin-top: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--global-palette6) 24%, var(--global-palette9)) !important;
    border-radius: 18px;
    background: var(--global-palette9) !important;
    box-shadow: 0 28px 54px -32px color-mix(in srgb, var(--global-palette1) 40%, transparent);
    overflow: hidden;
}

.dgwt-wcas-open-pirx .dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-open-pirx .dgwt-wcas-details-wrapp {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion,
.dgwt-wcas-details-wrapp .dgwt-wcas-suggestion,
.dgwt-wcas-details-wrapp .dgwt-wcas-details-inner {
    border-color: color-mix(in srgb, var(--global-palette7) 55%, transparent) !important;
}

.dgwt-wcas-suggestion-selected,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:hover {
    background: color-mix(in srgb, var(--global-palette8) 92%, var(--global-palette9)) !important;
}

.dgwt-wcas-st,
.dgwt-wcas-si,
.dgwt-wcas-sp,
.dgwt-wcas-sd,
.dgwt-wcas-st-title,
.dgwt-wcas-suggestion-product .dgwt-wcas-st > span {
    color: var(--global-palette3) !important;
}

.dgwt-wcas-st-price,
.dgwt-wcas-suggestion-product .price,
.dgwt-wcas-suggestion-product .woocommerce-Price-amount {
    color: var(--global-palette11) !important;
}

@media screen and (max-width: 1024px) {
    .wp-block-kadence-search .kb-search-modal-content {
        width: 100%;
        padding: 0 1.35rem 0 1rem;
        box-sizing: border-box;
    }

    .wp-block-kadence-search .kb-search-modal.active .kb-search-modal-content .kb-search-form,
    .wp-block-kadence-search .kb-search-modal-content .kb-search-form {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }

    .wp-block-kadence-search .kb-search-modal.active .kb-search-modal-content .kb-search-input-wrapper {
        width: 100%;
    }

    .wp-block-kadence-search .kb-search-close-btn,
    #search-drawer .drawer-inner .drawer-header .search-toggle-close.drawer-toggle {
        top: 1.35rem !important;
        right: 1rem !important;
    }
}

@media screen and (max-width: 767px) {
    .wp-block-kadence-search .kb-search-modal-content {
        padding: 0 1.15rem 0 0.85rem;
    }

    .wp-block-kadence-search .kb-search-input-wrapper,
    .search-form,
    .woocommerce-product-search,
    .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp {
        border-radius: 12px;
    }

    .wp-block-kadence-search .kb-search-input[type="text"],
    .search-form .search-field,
    .woocommerce-product-search .search-field,
    .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
    .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:hover,
    .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
        min-height: 40px;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
        font-size: 0.95rem;
    }

    .wp-block-kadence-search .kb-search-icon-submit,
    .search-form .search-submit,
    .woocommerce-product-search button[type="submit"] {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
    }
}
.kb-search .kb-search-modal-content {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}