.sac-wrapper {
    position: relative;
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}

.sac-form {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.sac-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    pointer-events: none;
}

.sac-wrapper .sac-input {
    width: 100%;
    padding: 12px 44px 12px 44px !important;
    font-size: 15px;
    line-height: 1.4;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.sac-input:focus {
    border-color: #2b8a3e;
    box-shadow: 0 0 0 3px rgba(43, 138, 62, .15);
}

.sac-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #555;
    cursor: pointer;
    border-radius: 6px;
}

.sac-submit:hover {
    color: #2b8a3e;
    background: #f1f3f5;
}

.sac-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    padding: 6px 0;
}

.sac-group + .sac-group {
    border-top: 1px solid #f0f0f0;
}

.sac-group-title {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #999;
}

.sac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    text-decoration: none;
    color: #222;
    transition: background .12s ease;
}

.sac-item:hover,
.sac-item.is-active {
    background: #f1f8f3;
}

.sac-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f5f5f5;
}

.sac-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sac-name {
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sac-price {
    font-size: 13px;
    color: #2b8a3e;
    font-weight: 600;
}

.sac-price del {
    color: #999;
    font-weight: 400;
    margin-right: 4px;
}

.sac-item--term {
    justify-content: space-between;
}

.sac-count {
    font-size: 12px;
    color: #aaa;
    background: #f1f3f5;
    border-radius: 10px;
    padding: 1px 8px;
    flex-shrink: 0;
}

.sac-empty,
.sac-loading {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}
