.ask-redhat {
    padding-bottom: 2rem;
}

.ask-redhat-title {
    display: flex;
    flex-direction: row;
    height: 24px;
    flex-shrink: 0;
    color: #000;
    font-family: 'Red Hat Display';
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    align-items: center;
    gap: 0.5rem;
}

.ask-redhat-content-wrapper {
    position: relative;
}

.ask-redhat-content {
    min-height: 242px;
    max-height: 242px;
    color: #000;
    font-family: 'Red Hat Text';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.8s ease;
}

.ask-redhat-content--expanded {
    max-height: calc(100vh - 376px) !important;
    transition: max-height 0.8s ease !important;
}

.ask-redhat-content--expanded-scrollable {
    max-height: calc(100vh - 512px);
    overflow-y: auto;
}

.ask-redhat-list {
    margin-left: 1.5rem;
}

.ask-redhat-cards {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.ask-redhat-card {
    flex: 1;
}

.ask-redhat-card-title {
    margin: 0;
}

.ask-redhat-footer-wrapper {
    position: relative;
    margin-top: 24px;
    padding-bottom: 16px;
}

.ask-redhat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ask-redhat-footer-text {
    margin: 0;
}

.ask-redhat-error {
    border: 1px solid #c7c7c7;
    border-radius: 6px;
    padding: 12px 24px;
}

.ask-redhat-rate-limit-error {
    border: 1px solid #c7c7c7;
    border-radius: 6px;
    padding: 24px;
}

.ask-redhat-rate-limit-error > .pf-v6-c-empty-state {
    padding: 0 !important;
}

:root {
    --color-red: var(--Core-color-palette-Red-red-40, #f56e6e);
    --color-purple: var(--Secondary-color-palette-Purple-purple-50, #5e40be);
    --gradient-red-purple: linear-gradient(90deg, var(--color-red), var(--color-purple));
    --gorgey: #f56e6e;
}

.ask-redhat-chat-button {
    width: 129px;
    height: 30px;
    justify-content: center;
    align-items: center !important;
    gap: 8px;
    flex-shrink: 0;
    border-radius: 40px;
    background: var(--gradient-red-purple) !important;
    color: #000;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    padding: 1px;
}

.ask-redhat-chat-button svg {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.ask-redhat-chat-button .pf-v6-c-button__text {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #000;
    margin: 0;
    padding: 0;
    height: 100%;
}

.ask-redhat-chat-button .pf-v6-c-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.ask-redhat-chat-button::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: #fff;
    border-radius: 39px;
    z-index: 1;
}

.ask-redhat-chat-button > * {
    position: relative;
    z-index: 2;
}

.ask-redhat-chat-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(94, 64, 190, 0.2);
}

.ask-redhat-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 147px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 80%, #fff 100%);
    pointer-events: none;
    z-index: 1;
}

.ask-redhat-toggle-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    left: 50%;
    width: 211.839px;
    height: 40px;
    transform: translateX(-50%);
    background-color: #fff;
    z-index: 3;
    background: var(--gradient-red-purple) !important;
    padding: 2px;
    color: #000;
    border-radius: 40px;
}

.ask-redhat-toggle-button .pf-v6-c-button__text {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    gap: 8px;
    color: #000;
}

.ask-redhat-toggle-button svg {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.ask-redhat-toggle-button::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 38px;
    z-index: 1;
}

.ask-redhat-toggle-button > * {
    position: relative;
    z-index: 2;
}

.ask-redhat-toggle-button-collapsed {
    display: flex;
    width: 50px;
    height: 24px;
    padding: 6px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border-radius: 40px;
    background: var(--gradient-red-purple) !important;
    color: #000;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.ask-redhat-toggle-button-collapsed::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: #fff;
    border-radius: 39px;
    z-index: 1;
}

.ask-redhat-toggle-button-collapsed > * {
    position: relative;
    z-index: 2;
}

.ask-redhat-toggle-button-collapsed svg {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    line-height: 1;
}

.ask-redhat-toggle-button-wrapper {
    position: relative;
}

.ask-redhat-border-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #d2d2d2;
    z-index: 1;
}

.return-to-case-btn {
    border: none;
    background-color: transparent;
    color: #0066cc;
    padding-left: 0 !important;
    cursor: pointer;
}

.return-to-resources-btn {
    border: none;
    background-color: transparent;
    color: #0066cc;
    cursor: pointer;
}
.return-to-case-text {
    font-size: 14px;
}

.pf-chatbot--fullscreen {
    position: absolute !important;
}

.pf-chatbot--embedded {
    height: calc(100vh - 276px) !important;
}

.pf-chatbot-container--embedded .outage-error-wrapper {
    overflow-y: auto !important;
}

.ask-redhat-core .error-state-svg {
    margin: 48px auto auto !important;
}

.pf-chatbot--fullscreen .pf-chatbot-container {
    height: calc(100vh - 277px) !important;
}

.fullscreen-chat-footer {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 57px !important;
    background: #f6f6f6 !important;
    border-top: 1px solid #d1d1d1 !important;
    align-items: center !important;
    z-index: 10001 !important;
    padding-left: 25px;
    display: none !important;
}

body:has(.pf-chatbot--fullscreen) .pf-v6-c-wizard__footer {
    z-index: 0 !important;
}

body:has(.pf-chatbot--fullscreen) .fullscreen-chat-footer {
    display: flex !important;
    gap: 10px;
}

.fullscreen-chat-footer .btn.btn-app {
    padding: 0.375rem 1rem;
    border-radius: var(--global-border-radius-pill, 999px);
    border: var(--global-border-width-regular, 1px) solid var(--global-border-color-brand-default, #06c);
}

body:has(.pf-chatbot--fullscreen) .main-section {
    min-height: calc(100vh - 224px) !important;
}

body:has(.pf-chatbot--embedded) .main-section {
    min-height: calc(100vh - 218px) !important;
}

body:has(.pf-chatbot--embedded) .pf-v6-c-wizard__main-body:last-child {
    padding: 0 !important;
}

body:has(.pf-chatbot--embedded) .hide-for-askredhat {
    display: none !important;
}

.pf-v6-c-modal-box__close + * {
    margin-inline-end: 0 !important;
}

.pf-chatbot__feedback-card {
    max-width: 100% !important;
}

.privacy-notice-container {
    margin-top: calc(-0.9 * var(--pf-v6-c-form--GridGap)) !important;
    padding: 0.5rem;
}

.privacy-notice-container + .pf-v6-c-form__group {
    margin-top: calc(-1 * var(--pf-v6-c-form--GridGap)) !important;
}

.response-actions-wrapper {
    margin-top: 24px;
    margin-bottom: 24px;
}

.pf-chatbot__header {
    color: #151515 !important;
    background-color: #f2f2f2 !important;
}

.ask-redhat-core .pf-chatbot__header .pf-v6-c-title {
    font-size: 16px !important;
    font-weight: 600 !important;
}

.ask-redhat-core .pf-chatbot__beta-label .pf-v6-c-label__content {
    color: #707070 !important;
    line-height: var(--global-font-line-height-figma-only-body-small, 18px) !important;
    font-weight: 500 !important;
}

.ask-redhat-core .pf-chatbot__header-container:after {
    display: none !important;
}

.ask-redhat-core .pf-chatbot__expand-collapse-button {
    color: #151515 !important;
    font-size: var(--global-font-size-body-sm, 12px) !important;
    align-items: center !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.pf-chatbot__expand-collapse-button .pf-v6-svg {
    width: 16px !important;
    height: 16px !important;
    color: black !important;
}

.ask-redhat-core .pf-v6-c-button__icon.pf-m-end {
    margin-left: 0 !important;
    display: flex !important;
    padding: 8px !important;
    align-items: center !important;
    gap: 5px !important;
    border-radius: var(--global-border-radius-small, 6px) !important;
    background: #fff !important;
}

.ask-redhat-core .pf-chatbot__message-bar {
    background: #fff !important;
}

.ask-redhat-core .pf-chatbot__message-and-actions .pf-v6-c-button__icon {
    background: inherit !important;
    padding-left: 0 !important;
}

.ask-redhat-core .pf-chatbot__expand-collapse-button:hover,
.ask-redhat-core .pf-chatbot__expand-collapse-button:focus {
    background-color: #e6e6e6 !important;
}

.ask-redhat-core .pf-chatbot__expand-collapse-button:hover .pf-v6-c-button__text,
.ask-redhat-core .pf-chatbot__expand-collapse-button:focus .pf-v6-c-button__text {
    color: #151515 !important;
}

.ask-redhat-cookie-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--pf-v6-global--BorderColor--100, #c7c7c7);
    border-radius: var(--pf-t--global--border--radius--small, 6px);
}

.ask-redhat-cookie-error__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ask-redhat-cookie-error__heading h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.ask-redhat-cookie-error__body {
    text-align: center;
    font-size: 14px;
    line-height: 21px;
    max-width: 535px;
    margin: 0;
}
