/* Shared frontend layout for the Support Portal and Submit a Request pages. */
body.pstm-support-page .wp-site-blocks main,
body.pstm-support-page main.site-main,
body.pstm-support-page main#main {
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.pstm-support-page main > .wp-block-group:first-child,
body.pstm-support-page .page-header,
body.pstm-support-page .entry-header {
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

body.pstm-support-page .wp-block-post-title,
body.pstm-support-page .entry-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.pstm-support-page .entry-content.wp-block-post-content,
body.pstm-support-page .entry-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.pstm-support-page .pstm-portal {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
}

.pstm-page-form-wrap {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-right: auto !important;
    margin-left: auto !important;
}

.pstm-page-form-wrap--submit {
    max-width: 1000px;
}

.pstm-page-form-wrap--portal {
    max-width: 1180px;
}

body.pstm-support-page .pstm-page-form-wrap > .pstm-portal {
    left: auto !important;
    width: min(100%, 1180px);
    margin-right: auto !important;
    margin-left: auto !important;
    transform: none !important;
}

/* Retired frontend chat UI must remain absent during the ticket-only phase. */
#supportWidget,
#supportLauncher,
#supportChatWidget,
#supportChatButton,
#chatLauncher,
.hwn-support-widget,
.hwn-chat-widget {
    display: none !important;
}

@media (max-width: 640px) {
    body.pstm-support-page main > .wp-block-group:first-child,
    body.pstm-support-page .page-header,
    body.pstm-support-page .entry-header {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
}
