/* =============================================================================
   c-aphs-category-article-search-engine
   (source: aphsCategoryArticleSearchEngine/aphsCategoryArticleSearchEngine.css)
   ============================================================================= */

c-aphs-category-article-search-engine .spinner-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    min-height: 100px;
}

c-aphs-category-article-search-engine .aphs-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(224, 26, 34, 0.2);
    border-top-color: #E01A22;
    border-radius: 50%;
    animation: aphs-spin 0.8s linear infinite;
}

@keyframes aphs-spin {
    to { transform: rotate(360deg); }
}

c-aphs-category-article-search-engine .hsh__wrapper {
    margin: var(--hsh-wrapper-margin, 0 auto);
    max-width: var(--search-max-width, calc(585px + (15px * 2))) !important;
    padding: 0;
    width: 100%;
}

/* Modifying for the parent aphsHeader component. */
c-aphs-category-article-search-engine .hsh--landing-page .hssf__form-bar {
    border: var(--landing-form-bar-border, 2px solid #e2e2e2) !important;
    height: var(--landing-form-bar-height, 64px);
    padding: 6px 8px 6px 6px;
}

c-aphs-category-article-search-engine .hssf__form-bar {
    align-items: center;
    background-color: #fff;
    border: 2px solid #919194 !important;
    border-radius: 6px;
    display: flex;
    height: 64px;
    padding: 6px;
    width: 100%;
}

c-aphs-category-article-search-engine .hssf__form-instructions {
    color: #212129;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 8px;
}

c-aphs-category-article-search-engine .hssf__form-input.js-hssf-form-input:focus {
    outline: 1px dotted #212129;
    outline-offset: 2px;
}

c-aphs-category-article-search-engine .page-wrapper {
    background: white;
    padding: 32px 16px;
}

c-aphs-category-article-search-engine .fluid-container {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: var(--container-max-width);
}

c-aphs-category-article-search-engine .title {
    font-size: 24px;
    font-weight: 600;
    color: #1b1b1b;
}

c-aphs-category-article-search-engine .search-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 32px;
}

c-aphs-category-article-search-engine .search-box {
    display: flex;
    gap: 8px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

c-aphs-category-article-search-engine .search-input {
    flex: 1;
    border: none;
    box-shadow: none;
    font-size: 14px;
    padding: 8px;
    min-width: 0;
}

c-aphs-category-article-search-engine .search-input:focus {
    outline: 2px dotted #212129;
    outline-offset: -2px;
    border-radius: 4px;
}

c-aphs-category-article-search-engine .search-btn {
    background: #dc1928;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

c-aphs-category-article-search-engine .search-btn:hover {
    background: #b5101e;
}

c-aphs-category-article-search-engine .search-btn:focus {
    outline: 2px solid #0070d2;
    outline-offset: 2px;
}

/* replaces what was coming from help-support-header.css via style-lib */
c-aphs-category-article-search-engine .hsh--landing-page {
    background-color: transparent;
    padding: 0px 0px 40px 0px !important;  /* keep bottom padding, remove top */
}

c-aphs-category-article-search-engine .hsh__wrapper {
    margin: 0 auto;
    max-width: calc(585px + (15px * 2));
    padding: 0;
    width: 100%;
}

c-aphs-category-article-search-engine .hssf__form-bar {
    align-items: center;
    background-color: #fff;
    border: 2px solid #919194 !important;
    border-radius: 6px;
    display: flex;
    height: 64px;
    padding: 6px;
    width: 100%;
}

c-aphs-category-article-search-engine .text-desktop {
    display: inline;
}

c-aphs-category-article-search-engine .text-mobile {
    display: none;
}

@media (max-width: 680px) {
    c-aphs-category-article-search-engine .text-desktop {
        display: none;
    }

    c-aphs-category-article-search-engine .text-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    c-aphs-category-article-search-engine .search-btn {
        padding: 0;
        width: 44px;
        min-width: 44px;
        border-radius: 6px;
    }
}

@media (max-width: 970px) {
    c-aphs-category-article-search-engine .search-box {
        max-width: 590px;
    }

    c-aphs-category-article-search-engine {
        --container-max-width: 590px;
    }
}

c-aphs-category-article-search-engine .search-hint {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* =============================================================================
   c-aphs-category-article-search-engine
   (source: aphsCategoryArticleSearchEngine/aphsCategoryArticleSearchEngine.css)
   ============================================================================= */

c-aphs-category-article-search-engine .spinner-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    min-height: 100px;
}

c-aphs-category-article-search-engine .aphs-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(224, 26, 34, 0.2);
    border-top-color: #E01A22;
    border-radius: 50%;
    animation: aphs-spin 0.8s linear infinite;
}

@keyframes aphs-spin {
    to { transform: rotate(360deg); }
}

c-aphs-category-article-search-engine .hsh__wrapper {
    margin: var(--hsh-wrapper-margin, 0 auto);
    max-width: var(--search-max-width, calc(585px + (15px * 2))) !important;
    padding: 0;
    width: 100%;
}

/* Modifying for the parent aphsHeader component. */
c-aphs-category-article-search-engine .hsh--landing-page .hssf__form-bar {
    border: var(--landing-form-bar-border, 2px solid #e2e2e2) !important;
    height: var(--landing-form-bar-height, 64px);
    padding: 6px 8px 6px 6px;
}

c-aphs-category-article-search-engine .hssf__form-bar {
    align-items: center;
    background-color: #fff;
    border: 2px solid #919194 !important;
    border-radius: 6px;
    display: flex;
    height: 64px;
    padding: 6px;
    width: 100%;
}

c-aphs-category-article-search-engine .hssf__form-instructions {
    color: #212129;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 8px;
}

c-aphs-category-article-search-engine .hssf__form-input.js-hssf-form-input:focus {
    outline: 1px dotted #212129;
    outline-offset: 2px;
}

c-aphs-category-article-search-engine .page-wrapper {
    background: white;
    padding: 32px 16px;
}

c-aphs-category-article-search-engine .fluid-container {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: var(--container-max-width);
}

c-aphs-category-article-search-engine .title {
    font-size: 24px;
    font-weight: 600;
    color: #1b1b1b;
}

c-aphs-category-article-search-engine .search-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 32px;
}

c-aphs-category-article-search-engine .search-box {
    display: flex;
    gap: 8px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

c-aphs-category-article-search-engine .search-input {
    flex: 1;
    border: none;
    box-shadow: none;
    font-size: 14px;
    padding: 8px;
    min-width: 0;
}

c-aphs-category-article-search-engine .search-input:focus {
    outline: 2px dotted #212129;
    outline-offset: -2px;
    border-radius: 4px;
}

c-aphs-category-article-search-engine .search-btn {
    background: #dc1928;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

c-aphs-category-article-search-engine .search-btn:hover {
    background: #b5101e;
}

c-aphs-category-article-search-engine .search-btn:focus {
    outline: 2px solid #0070d2;
    outline-offset: 2px;
}

/* replaces what was coming from help-support-header.css via style-lib */
c-aphs-category-article-search-engine .hsh--landing-page {
    background-color: transparent;
    padding: 0px 0px 40px 0px !important;  /* keep bottom padding, remove top */
}

c-aphs-category-article-search-engine .hsh__wrapper {
    margin: 0 auto;
    max-width: calc(585px + (15px * 2));
    padding: 0;
    width: 100%;
}

c-aphs-category-article-search-engine .hssf__form-bar {
    align-items: center;
    background-color: #fff;
    border: 2px solid #919194 !important;
    border-radius: 6px;
    display: flex;
    height: 64px;
    padding: 6px;
    width: 100%;
}

c-aphs-category-article-search-engine .text-desktop {
    display: inline;
}

c-aphs-category-article-search-engine .text-mobile {
    display: none;
}

@media (max-width: 680px) {
    c-aphs-category-article-search-engine .text-desktop {
        display: none;
    }

    c-aphs-category-article-search-engine .text-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    c-aphs-category-article-search-engine .search-btn {
        padding: 0;
        width: 44px;
        min-width: 44px;
        border-radius: 6px;
    }
}

@media (max-width: 970px) {
    c-aphs-category-article-search-engine .search-box {
        max-width: 590px;
    }

    c-aphs-category-article-search-engine {
        --container-max-width: 590px;
    }
}
