.swpe-site-header .search-shell {
    position: relative;
}

.swpe-smart-search-panel,
.swpe-smart-search-panel * {
    box-sizing: border-box;
}

.swpe-smart-search-panel .amount,
.swpe-smart-search-panel .woocommerce-Price-amount,
.swpe-smart-search-panel .woocommerce-Price-amount bdi,
.swpe-smart-search-panel .woocommerce-Price-currencySymbol,
.swpe-smart-search-page .amount,
.swpe-smart-search-page .woocommerce-Price-amount,
.swpe-smart-search-page .woocommerce-Price-amount bdi,
.swpe-smart-search-page .woocommerce-Price-currencySymbol {
    display: inline !important;
    white-space: nowrap !important;
}

.swpe-smart-search-panel {
    position: absolute;
    z-index: 150;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: min(72vh, 680px);
    overflow: auto;
    border: 1px solid #d6e1ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 54px rgba(20, 32, 51, .20);
    color: #172033;
}

.swpe-smart-search-panel[hidden] {
    display: none !important;
}

.swpe-smart-search-panel.is-loading::before,
.swpe-smart-search-results.is-loading::before {
    content: "Searching Silkworm Store...";
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid #e6edf5;
    background: #f5f8fb;
    color: #5d6a80;
    font-size: 13px;
    font-weight: 850;
}

.swpe-smart-panel-summary {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid #e6edf5;
    background: #f5f8fb;
}

.swpe-smart-panel-summary p,
.swpe-smart-summary p {
    margin: 0;
    color: #445166;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.swpe-smart-intent {
    display: grid;
    gap: 8px;
}

.swpe-smart-intent > span {
    color: #66758a;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.swpe-smart-intent > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.swpe-smart-intent strong {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border: 1px solid #cfdce8;
    border-radius: 999px;
    background: #fff;
    color: #172033;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    padding: 0 9px;
}

.swpe-smart-panel-list {
    display: grid;
    gap: 0;
}

.swpe-smart-panel-more {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e6edf5;
    background: #eaf8ff;
    color: #12658d !important;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.swpe-smart-panel-empty,
.swpe-smart-search-empty {
    display: grid;
    gap: 5px;
    padding: 18px;
    color: #5d6a80;
}

.swpe-smart-panel-empty strong,
.swpe-smart-search-empty strong {
    color: #172033;
    font-size: 16px;
    font-weight: 950;
}

.swpe-smart-panel-empty span,
.swpe-smart-search-empty span {
    font-size: 13px;
    font-weight: 700;
}

.swpe-smart-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e6edf5;
    background: #fff;
    color: #172033 !important;
    text-decoration: none;
}

.swpe-smart-card:hover,
.swpe-smart-card:focus {
    outline: 0;
    background: #f8fbfe;
}

.swpe-smart-card--compact {
    grid-template-columns: 58px minmax(0, 1fr);
}

.swpe-smart-card--no-image {
    grid-template-columns: 1fr;
}

.swpe-smart-card__image {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    background: #f5f8fb;
}

.swpe-smart-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swpe-smart-card__body {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.swpe-smart-card__type {
    color: #d85fc4;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.swpe-smart-card strong {
    color: #172033;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
}

.swpe-smart-card small {
    color: #5d6a80;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.swpe-smart-card__price {
    color: #087842;
    font-size: 13px;
    font-weight: 950;
}

.swpe-smart-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #66758a;
    font-size: 11px;
    font-weight: 850;
}

.swpe-smart-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.swpe-smart-badges span {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    border-radius: 999px;
    background: #eafaf2;
    color: #087842;
    font-size: 11px;
    font-weight: 900;
    padding: 0 8px;
}

.swpe-smart-search-preview {
    margin: 0;
    background: #f5f8fb;
    color: #2d394b;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.swpe-smart-search-page,
.swpe-smart-search-page * {
    box-sizing: border-box;
}

.swpe-smart-search-page {
    --swpe-smart-ink: #172033;
    --swpe-smart-text: #2d394b;
    --swpe-smart-muted: #66758a;
    --swpe-smart-line: #d6e1ec;
    --swpe-smart-soft: #f5f8fb;
    --swpe-smart-blue: #1ca7dc;
    --swpe-smart-blue-soft: #eaf8ff;
    --swpe-smart-pink: #d85fc4;
    --swpe-smart-pink-soft: #fff1fb;
    --swpe-smart-green: #087842;
    --swpe-smart-green-soft: #eafaf2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 64px;
}

.swpe-smart-search-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 18px;
    align-items: stretch;
}

.swpe-smart-search-hero__copy,
.swpe-smart-search-hero__panel,
.swpe-smart-search-workbench,
.swpe-smart-search-schema {
    border: 1px solid var(--swpe-smart-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(20, 32, 51, .08);
}

.swpe-smart-search-hero__copy {
    padding: clamp(24px, 4vw, 42px);
}

.swpe-smart-search-eyebrow {
    margin: 0 0 9px;
    color: var(--swpe-smart-pink);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.swpe-smart-search-hero h1 {
    max-width: 760px;
    margin: 0 0 12px;
    color: var(--swpe-smart-ink);
    font-size: clamp(34px, 4vw, 58px);
    line-height: .98;
}

.swpe-smart-search-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--swpe-smart-text);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.55;
}

.swpe-smart-search-hero__panel {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 26px;
    background: linear-gradient(135deg, #eaf8ff, #fff);
}

.swpe-smart-search-hero__panel span,
.swpe-smart-search-hero__panel small {
    color: var(--swpe-smart-muted);
    font-size: 13px;
    font-weight: 800;
}

.swpe-smart-search-hero__panel strong {
    color: var(--swpe-smart-ink);
    font-size: 24px;
    font-weight: 950;
    line-height: 1.15;
}

.swpe-smart-search-workbench {
    display: grid;
    gap: 18px;
    margin-top: 18px;
    padding: 18px;
}

.swpe-smart-search-page > .swpe-smart-search-workbench:first-child {
    margin-top: 0;
}

.swpe-smart-search-form {
    position: relative;
    display: grid;
    gap: 10px;
}

.swpe-smart-search-form label {
    color: var(--swpe-smart-ink);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.swpe-smart-search-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.swpe-smart-search-form input {
    width: 100%;
    min-height: 56px;
    border: 2px solid var(--swpe-smart-line);
    border-radius: 8px;
    background: var(--swpe-smart-soft);
    color: var(--swpe-smart-ink);
    font-size: 17px;
    font-weight: 750;
    letter-spacing: 0;
    outline: 0;
    padding: 0 16px;
}

.swpe-smart-search-form input:focus {
    border-color: var(--swpe-smart-blue);
    box-shadow: 0 0 0 3px rgba(28, 167, 220, .18);
}

.swpe-smart-search-form button[type="submit"] {
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    background: var(--swpe-smart-blue);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 950;
    padding: 0 20px;
}

.swpe-smart-search-form__samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.swpe-smart-search-form__samples button {
    min-height: 34px;
    border: 1px solid var(--swpe-smart-line);
    border-radius: 999px;
    background: #fff;
    color: var(--swpe-smart-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
    padding: 0 12px;
}

.swpe-smart-search-results {
    min-height: 180px;
    border: 1px solid var(--swpe-smart-line);
    border-radius: 8px;
    background: var(--swpe-smart-soft);
    overflow: hidden;
}

.swpe-smart-summary {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid var(--swpe-smart-line);
    background: #fff;
}

.swpe-smart-section {
    padding: 16px;
}

.swpe-smart-section + .swpe-smart-section {
    border-top: 1px solid var(--swpe-smart-line);
}

.swpe-smart-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.swpe-smart-section__head h2 {
    margin: 0;
    color: var(--swpe-smart-ink);
    font-size: 20px;
    font-weight: 950;
}

.swpe-smart-section__head span {
    display: grid;
    min-width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    background: var(--swpe-smart-blue-soft);
    color: #12658d;
    font-size: 13px;
    font-weight: 950;
}

.swpe-smart-section__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.swpe-smart-section .swpe-smart-card {
    border: 1px solid var(--swpe-smart-line);
    border-radius: 8px;
}

.swpe-smart-search-schema {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 18px;
    margin-top: 18px;
    padding: 24px;
}

.swpe-smart-search-schema h2 {
    margin: 0 0 10px;
    color: var(--swpe-smart-ink);
    font-size: 28px;
    line-height: 1.1;
}

.swpe-smart-search-schema p {
    margin: 0;
    color: var(--swpe-smart-text);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
}

.swpe-smart-search-schema dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.swpe-smart-search-schema dl > div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--swpe-smart-line);
    border-radius: 8px;
    background: var(--swpe-smart-soft);
    padding: 12px;
}

.swpe-smart-search-schema dt {
    color: var(--swpe-smart-green);
    font-size: 13px;
    font-weight: 950;
}

.swpe-smart-search-schema dd {
    margin: 0;
    color: var(--swpe-smart-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 920px) {
    .swpe-smart-search-panel {
        left: -88px;
        right: -88px;
    }

    .swpe-smart-search-hero,
    .swpe-smart-search-schema,
    .swpe-smart-section__grid {
        grid-template-columns: 1fr;
    }

    .swpe-smart-search-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .swpe-smart-search-page {
        width: min(100% - 24px, 1240px);
        padding-top: 22px;
    }

    .swpe-smart-search-panel {
        position: fixed;
        inset: 112px 12px auto;
        max-height: calc(100vh - 136px);
    }

    .swpe-smart-search-hero__copy,
    .swpe-smart-search-workbench,
    .swpe-smart-search-schema {
        padding: 16px;
    }

    .swpe-smart-card,
    .swpe-smart-card--compact {
        grid-template-columns: 54px minmax(0, 1fr);
        padding: 10px;
    }
}
