#topnav .buy-button {
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: normal;
    height: 74px;
}

#topnav .buy-button .btn {
    margin: 0;
}

#topnav .header-search-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: #fff;
    background: rgba(12, 31, 57, 0.25);
    font-size: 21px;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

#topnav .header-search-toggle:hover,
#topnav .header-search-toggle:focus-visible {
    color: #2f55d4;
    background: #fff;
    border-color: #fff;
    transform: translateY(-1px);
}

#topnav.scroll .header-search-toggle,
#topnav .header-search-toggle.is-dark {
    color: #2f55d4;
    background: #f4f7ff;
    border-color: #d9e2fb;
}

#topnav.scroll .header-search-toggle:hover,
#topnav.scroll .header-search-toggle:focus-visible {
    color: #fff;
    background: #2f55d4;
    border-color: #2f55d4;
}

.quick-search-modal .modal-dialog {
    max-width: 620px;
}

.quick-search-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(8, 26, 51, 0.25);
}

.quick-search-modal .modal-header {
    align-items: center;
    padding: 24px 28px 18px;
    border: 0;
}

.quick-search-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quick-search-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border-radius: 14px;
    color: #2f55d4;
    background: #edf2ff;
    font-size: 25px;
}

.quick-search-kicker {
    color: #8492a6;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.quick-search-modal .modal-title {
    color: #122033;
    font-size: 1.4rem;
    line-height: 1.25;
}

.quick-search-modal .modal-body {
    padding: 12px 28px 22px;
}

.quick-search-modal .form-label {
    margin-bottom: 8px;
    color: #3c4858;
    font-size: 0.84rem;
    font-weight: 700;
}

.quick-search-field {
    position: relative;
}

.quick-search-field > i {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    color: #8492a6;
    font-size: 21px;
    transform: translateY(-50%);
}

.quick-search-field .form-control {
    height: 54px;
    padding: 10px 18px 10px 50px;
    border: 1px solid #dfe6f1;
    border-radius: 12px;
    color: #1f2d3d;
    background: #fff;
    box-shadow: none;
}

.quick-search-field .form-control:focus {
    border-color: #2f55d4;
    box-shadow: 0 0 0 4px rgba(47, 85, 212, 0.1);
}

.quick-search-help {
    margin-top: 10px;
    color: #8492a6;
    font-size: 0.82rem;
}

.quick-search-modal .modal-footer {
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px 24px;
    border-top: 1px solid #edf1f6;
    background: #f8faff;
}

.quick-search-advanced {
    color: #5a6d90;
    font-size: 0.88rem;
    font-weight: 700;
}

.quick-search-advanced:hover {
    color: #2f55d4;
}

.quick-search-submit {
    min-width: 170px;
}

@media (max-width: 991px) {
    #topnav .header-search-toggle {
        color: #2f55d4;
        background: #f4f7ff;
        border-color: #d9e2fb;
    }
}

@media (max-width: 575px) {
    #topnav .buy-button {
        display: flex;
        gap: 7px;
    }

    #topnav .header-primary-action {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

    #topnav .header-action-label {
        display: none;
    }

    .quick-search-modal .modal-dialog {
        margin: 14px;
    }

    .quick-search-modal .modal-header,
    .quick-search-modal .modal-body,
    .quick-search-modal .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .quick-search-modal .modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .quick-search-advanced,
    .quick-search-submit {
        width: 100%;
        text-align: center;
    }
}
