/* ====================================
   HEADER SEARCH OVERLAY
==================================== */
.header-inner {
    position: relative;
}

.header-search-overlay {
    position: fixed;
    inset: var(--top-bar-height, 0) 0 0;
    background:
        radial-gradient(circle at 14% 8%, rgba(0, 107, 182, .10), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(155, 224, 0, .10), transparent 24%),
        linear-gradient(180deg, rgba(246, 249, 251, .98) 0%, rgba(255, 255, 255, .98) 58%);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1200;
    padding: clamp(46px, 7vh, 84px) var(--site-container-gutter) var(--section-space-sm);
    overflow-y: auto;
}

.header-search-overlay.open {
    display: flex;
}

.header-search-content {
    width: 100%;
    max-width: 920px;
}

.header-search-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--color-brand-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-align: center;
    text-transform: uppercase;
}

.header-search-title {
    margin: 0 0 var(--space-xl);
    color: var(--color-text);
    font-size: clamp(42px, 6vw, 82px);
    font-weight: var(--font-weight-bold);
    letter-spacing: -.055em;
    line-height: .92;
    text-align: center;
}

.search-close {
    position: absolute;
    right: clamp(18px, 4vw, 42px);
    top: clamp(18px, 4vw, 34px);
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: var(--border-default);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xs);
    color: var(--color-text);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transition:
        border-color var(--duration-base) var(--ease-standard),
        color var(--duration-base) var(--ease-standard),
        transform var(--duration-base) var(--ease-standard);
}

.search-close:hover {
    border-color: var(--color-action);
    color: var(--color-action);
    transform: translateY(-1px);
}

.header-search-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    color: var(--color-text-soft);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.header-search-quick-links a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 var(--space-sm);
    border: var(--border-default);
    border-radius: var(--radius-pill);
    background: var(--color-white);
    color: var(--color-brand-blue);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition:
        border-color var(--duration-base) var(--ease-standard),
        background var(--duration-base) var(--ease-standard),
        color var(--duration-base) var(--ease-standard);
}

.header-search-quick-links a:hover {
    border-color: var(--color-brand-blue);
    background: var(--color-brand-blue);
    color: var(--color-white);
}

.header-search-content .dgwt-wcas-search-wrapp {
    max-width: none !important;
    margin: 0 auto;
}

.header-search-content .dgwt-wcas-sf-wrapp {
    min-height: 66px;
    position: relative;
    padding: 0 16px 0 34px !important;
    border: 2px solid var(--color-text) !important;
    border-radius: var(--radius-pill) !important;
    background: var(--color-white) !important;
    box-shadow: var(--shadow-md) !important;
}

.header-search-content .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input,
.header-search-content .dgwt-wcas-style-pirx.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input,
.header-search-content .dgwt-wcas-search-input {
    height: 66px !important;
    padding: 0 112px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--color-text) !important;
    font-family: var(--font-body-family);
    font-size: clamp(22px, 3vw, 34px) !important;
    font-weight: var(--font-weight-medium) !important;
    letter-spacing: -.02em;
}

.header-search-content .dgwt-wcas-search-input::placeholder {
    color: var(--color-text-subtle) !important;
}

.header-search-content .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,
.header-search-content .dgwt-wcas-style-pirx.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,
.header-search-content .dgwt-wcas-search-submit {
    left: auto !important;
    right: 10px !important;
    top: 8px !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--color-brand-blue) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.header-search-content .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:hover {
    background: var(--color-brand-blue-dark) !important;
}

.header-search-content .dgwt-wcas-search-submit svg path {
    fill: var(--color-white) !important;
}

.header-search-content .dgwt-wcas-preloader,
.header-search-content .dgwt-wcas-close {
    right: 66px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Hide original header content when search open */
.header-inner.search-active > *:not(.header-search-overlay) {
    visibility: hidden;
}

.header-inner.search-active .header-search-overlay {
    visibility: visible;
}

body.search-open {
    overflow: hidden;
}

.dgwt-wcas-suggestions-wrapp {
    margin-top: var(--space-md) !important;
    border: var(--border-default) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    overflow: hidden !important;
}

.dgwt-wcas-suggestion {
    min-height: 82px !important;
    padding: var(--space-sm) var(--space-md) !important;
    border-bottom: var(--border-subtle) !important;
}

.dgwt-wcas-suggestion:last-child {
    border-bottom: 0 !important;
}

.dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
    background: var(--color-surface-cool) !important;
}

.dgwt-wcas-si {
    width: 66px !important;
    height: 66px !important;
    margin-right: var(--space-md) !important;
    border: var(--border-default);
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(246, 249, 251, .96)),
        var(--color-surface-cool);
    overflow: hidden;
}

.dgwt-wcas-si img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.dgwt-wcas-st-title {
    color: var(--color-text) !important;
    font-size: 16px !important;
    font-weight: var(--font-weight-bold) !important;
    line-height: 1.25 !important;
}

.dgwt-wcas-st-title strong,
.dgwt-wcas-st-title b {
    color: var(--color-brand-blue) !important;
}

.dgwt-wcas-st {
    color: var(--color-text-soft) !important;
    font-size: 12px !important;
    font-weight: var(--font-weight-semibold) !important;
}

.dgwt-wcas-sp {
    color: var(--color-text) !important;
    font-size: 15px !important;
    font-weight: var(--font-weight-bold) !important;
}

.dgwt-wcas-sp del,
.dgwt-wcas-sp .amount:first-child {
    color: var(--color-text-subtle) !important;
}

.dgwt-wcas-suggestion-headline,
.dgwt-wcas-st-more {
    color: var(--color-text-muted) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

.dgwt-wcas-suggestion-tax {
    color: var(--color-brand-blue) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.dgwt-wcas-details-wrapp {
    display: none !important;
}

@media (max-width: 767px) {
    .header-search-overlay {
        inset: 0;
        padding: 76px var(--site-container-gutter) 28px;
    }

    .header-search-title {
        margin-bottom: var(--space-lg);
    }

    .header-search-content .dgwt-wcas-sf-wrapp {
        min-height: 56px;
        padding-left: var(--space-lg) !important;
    }

    .header-search-content .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input,
    .header-search-content .dgwt-wcas-style-pirx.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input,
    .header-search-content .dgwt-wcas-search-input {
        height: 56px !important;
        padding-right: 90px !important;
        font-size: 21px !important;
    }

    .header-search-content .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,
    .header-search-content .dgwt-wcas-style-pirx.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,
    .header-search-content .dgwt-wcas-search-submit {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .search-close {
        top: 16px;
        right: 16px;
    }

    .dgwt-wcas-suggestions-wrapp {
        border-radius: 18px !important;
    }
}
