:root {
    --dws-panel-top: 120px;
}

.wp-block-search__button-outside input::placeholder {
    opacity: 0.7;
    color: white;
    font-family: Poppins, sans-serif !important;
}

.wp-block-search__button-outside {
    display: flex;
    align-items: center;

    input {
        background-color: transparent;
        border: none;
        border-right: 1px solid #4D4D4D;
        color: white;
        padding-left: 0;
        font-size: 1rem;
    }

    button {
        height: 50px;
        padding: 0;
    }

    svg {
        fill: white
    }

    button {
        background-color: transparent !important;
        margin-left: 0 !important;
        padding: 16px;
    }
}

.dws-search-input {
    height: 50px;
}

.dws-loader {
    width: 18px;
    height: 18px;
    border: 2px solid #e7e7e7;
    border-top: 2px solid #111;
    border-radius: 50%;
    animation: dws-spin 0.8s linear infinite;
}

.dws-loader-container {
    width: 50px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes dws-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.dws-results-container {
    position: fixed;
    top: calc(var(--dws-panel-top) + 15px);
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 99999;
    overflow: hidden;
    border-radius: 18px;
}

.dws-panel-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dws-panel-close:hover {
    transform: scale(1.04);
    opacity: 0.8;
}

.dws-panel-inner {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background: #fff;
    padding-top: 68px;
    box-sizing: border-box;
    min-height: 0;
}

.dws-panel-sidebar {
    padding: 24px;
    border-right: 1px solid #ececec;
    overflow-y: auto;
    background: #fafafa;
    min-height: 0;
}

.dws-panel-main {
    padding: 24px 32px;
    overflow-y: auto;
    background: #fff;
    min-height: 0;
}

.dws-panel-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
    margin-bottom: 18px;
}

.dws-categories-list,
.dws-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dws-categories-list li,
.dws-results-list li {
    border-bottom: 1px solid #f1f1f1;
}

.dws-categories-list li:last-child,
.dws-results-list li:last-child {
    border-bottom: none;
}

.dws-categories-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    text-decoration: none;
    color: #222;
    transition: opacity 0.2s ease;
}

.dws-categories-list li a:hover {
    opacity: 0.7;
}

.dws-category-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.dws-category-count {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

.dws-results-list li a {
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    text-decoration: none;
    color: #222;
    transition: opacity 0.2s ease;
}

.dws-results-list li a:hover {
    opacity: 0.75;
}

.dws-results-list .availability-inquiry-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dws-product-img img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
}

.dws-product-info {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    min-width: 0;
}

.dws-product-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 6px;
    color: #111;
}

.dws-product-price {
    color: #cf2027;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.dws-product-price del {
    color: #9a9a9a;
    font-weight: 400;
    margin-right: 5px;
}

.dws-view-all {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #ececec;
}

.dws-view-all a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #111;
    font-weight: 700;
}

.dws-no-results {
    padding: 12px 0;
    color: #666;
    font-size: 15px;
}

body.dws-search-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .dws-results-container {
        top: calc(var(--dws-panel-top) + 10px);
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 14px;
    }

    .dws-panel-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .dws-panel-inner {
        grid-template-columns: 1fr;
        padding-top: 56px;
    }

    .dws-panel-sidebar {
        padding: 18px 20px;
        border-right: none;
        border-bottom: 1px solid #ececec;
        max-height: 34vh;
    }

    .dws-panel-main {
        padding: 18px 20px 24px;
        max-height: 66vh;
    }

    .dws-results-list li a {
        gap: 12px;
    }

    .dws-product-img img {
        width: 56px;
        height: 56px;
    }
}