.wcawvc-search-widget {
    position: relative;
    width: 100%;
}

.wcawvc-search-desktop {
    position: relative;
    display: block;
}

.wcawvc-search-mobile {
    display: none;
    position: relative;
}

.wcawvc-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background: #f1f1f1;
    transition: all 0.25s ease;
}

.wcawvc-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    flex: 0 0 auto;
}

.wcawvc-search-icon svg,
.wcawvc-search-mobile-toggle svg {
    width: 20px;
    height: 20px;
}

.wcawvc-search-input {
    width: 100%;
    min-width: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #111111;
    font-size: 16px;
    line-height: 1.4;
    padding: 0 !important;
    margin: 0 !important;
}

.wcawvc-search-input:focus,
.wcawvc-search-input:active,
.wcawvc-search-input:hover {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

.wcawvc-search-input::-webkit-search-decoration,
.wcawvc-search-input::-webkit-search-cancel-button,
.wcawvc-search-input::-webkit-search-results-button,
.wcawvc-search-input::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}

.wcawvc-search-input::placeholder {
    color: #111111;
    opacity: 1;
}

.wcawvc-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.wcawvc-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.wcawvc-search-result-item:last-child {
    border-bottom: 0;
}

.wcawvc-search-result-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 52px;
    background: #f7f7f7;
}

.wcawvc-search-result-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcawvc-search-result-content {
    min-width: 0;
    flex: 1 1 auto;
}

.wcawvc-search-result-title {
    display: block;
    color: #111111;
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
}

.wcawvc-search-result-price {
    display: block;
    margin-top: 4px;
    color: #666666;
    font-size: 14px;
    line-height: 1.35;
}

.wcawvc-search-result-empty,
.wcawvc-search-result-loading {
    padding: 14px 16px;
    font-size: 14px;
    color: #666666;
}

.wcawvc-search-mobile-toggle {
    width: 48px;
    height: 48px;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background: #f1f1f1;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.25s ease;
}

.wcawvc-search-mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.wcawvc-search-mobile.is-open .wcawvc-search-mobile-modal {
    display: block;
}

.wcawvc-search-mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.wcawvc-search-mobile-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 420px);
    max-height: 80vh;
    overflow: visible;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.wcawvc-search-mobile-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111111;
    font-size: 28px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.wcawvc-search-mobile-modal-content .wcawvc-search-field {
    padding-right: 42px;
}

.wcawvc-search-mobile-modal-content .wcawvc-search-results {
    position: relative;
    top: 12px;
    left: auto;
    right: auto;
    max-height: 48vh;
    overflow-y: auto;
}

@media (max-width: 767px) {
    .wcawvc-search-desktop {
        display: none;
    }

    .wcawvc-search-mobile {
        display: inline-block;
    }
}

@media (min-width: 768px) {
    .wcawvc-search-mobile {
        display: none !important;
    }

    .wcawvc-search-desktop {
        display: block !important;
    }
}