/* Source: assets/scss/comments.scss. Keep the compiled output in sync. */

.single_post {
    grid-template-areas:
        "main sidebar"
        "community sidebar";
    grid-template-rows: auto auto;
}

.b2b-comments {
    grid-area: community;
    width: 100%;
    max-width: 820px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 3px solid var(--text_dark, #111827);
    color: var(--text_mid, #555d69);
    font-family: "Noto Sans", sans-serif;
}

.b2b-comments,
.b2b-comments #respond,
.b2b-comments .b2b-comment {
    scroll-margin-top: 88px;
}

.b2b-comments__heading {
    margin-bottom: 32px;
}

.b2b-comments__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--link_light, #347e9e);
    font-family: "Rubik", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.b2b-comments h2,
.b2b-comments h3 {
    color: var(--text_dark, #111827);
    font-family: "Libre Caslon Text", serif;
    font-weight: 700;
}

.b2b-comments__heading h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.2;
}

.b2b-comments__heading p,
.b2b-community-auth p,
.b2b-comment-form__note,
.b2b-registration-form__privacy {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

.b2b-comments__list,
.b2b-comments__list .children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.b2b-comments__list {
    border-top: 1px solid var(--lines, #dddddd);
}

.b2b-comments__list .children {
    margin-left: 48px;
}

.b2b-comments__list .children .children {
    margin-left: 32px;
}

.b2b-comments__list .children .children .children {
    margin-left: 0;
}

.b2b-comment {
    margin: 0;
    padding: 0;
}

.b2b-comment__body {
    padding: 28px 0;
    border-bottom: 1px solid var(--lines, #dddddd);
}

.b2b-comment__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.b2b-comment__avatar {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e7f1f5;
    color: var(--link_dark, #025585);
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.b2b-comment__identity {
    min-width: 0;
}

.b2b-comment__author-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.b2b-comment__author {
    color: var(--text_dark, #111827);
    font-size: 15px;
    font-weight: 700;
}

.b2b-comment__staff {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--link_light, #347e9e);
    color: #ffffff;
    font-family: "Rubik", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.b2b-comment__date {
    color: var(--text_light, #757575);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
}

.b2b-comment__date:hover,
.b2b-comment__date:focus-visible {
    color: var(--link_dark, #025585);
    text-decoration: underline !important;
}

.b2b-comment__content {
    color: var(--text_dark, #111827);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}

.b2b-comment__content p {
    margin: 0 0 14px;
}

.b2b-comment__content p:last-child {
    margin-bottom: 0;
}

.b2b-comment__awaiting {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 3px solid #d39e00;
    background: #fff8df;
    color: #6f5700;
    font-size: 13px;
}

.b2b-comment__reply-context {
    margin: 0 0 8px;
    color: var(--text_light, #757575);
    font-size: 12px;
    line-height: 1.5;
}

.b2b-comment__reply-context strong {
    color: var(--text_mid, #555d69);
}

.b2b-comment__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}

.b2b-comment__actions > a,
.b2b-comment__edit a,
.b2b-comments__text-link,
.b2b-comments__cancel-reply a {
    color: var(--link_dark, #025585);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 3px;
}

.b2b-comment__actions > a,
.b2b-comment__edit a,
.b2b-comment__heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 44px;
    margin: 0;
    padding: 8px 9px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    line-height: 1;
}

.b2b-comment__actions > a:hover,
.b2b-comment__actions > a:focus-visible,
.b2b-comment__edit a:hover,
.b2b-comment__edit a:focus-visible,
.b2b-comments__text-link:hover,
.b2b-comments__text-link:focus-visible,
.b2b-comments__cancel-reply a:hover,
.b2b-comments__cancel-reply a:focus-visible {
    text-decoration-color: currentColor !important;
}

.b2b-comment__actions > a:hover,
.b2b-comment__actions > a:focus-visible,
.b2b-comment__edit a:hover,
.b2b-comment__edit a:focus-visible,
.b2b-comment__heart:hover,
.b2b-comment__heart:focus-visible {
    background: #eef4f7;
    outline: none;
}

.b2b-comment__heart {
    gap: 5px;
    color: var(--text_mid, #555d69);
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.b2b-comment__heart-icon {
    color: var(--text_mid, #555d69);
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px);
}

.b2b-comment__heart.is-hearted,
.b2b-comment__heart.is-hearted .b2b-comment__heart-icon {
    color: #b42318;
}

.b2b-comment__heart.is-saving {
    cursor: wait;
    opacity: .62;
}

.b2b-comment__heart:disabled {
    background: transparent;
}

.b2b-comment__heart--disabled,
.b2b-comment__heart--disabled:hover {
    background: transparent;
    cursor: default;
}

.b2b-comment--collapsed {
    display: none !important;
}

.b2b-comments__more-replies {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 44px;
    margin: 8px 0 8px 48px;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--link_dark, #025585);
    font-family: "Noto Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.b2b-comments__more-replies:hover,
.b2b-comments__more-replies:focus-visible {
    background: #eef4f7;
    text-decoration-color: currentColor;
}

.b2b-comment .b2b-comment-form-wrap {
    margin: 18px 0 24px;
}

.b2b-comments__pagination {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0;
}

.b2b-comments__pagination a {
    color: var(--link_dark, #025585);
    font-size: 14px;
    font-weight: 700;
}

.b2b-community-auth,
.b2b-comment-form-wrap {
    margin-top: 32px;
    padding: clamp(22px, 4vw, 32px);
    border: 1px solid #cfd8df;
    border-radius: 4px;
    background: #f7fafc;
}

.b2b-community-auth h3,
.b2b-comment-form-wrap h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.b2b-community-auth__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.b2b-community-auth__intro > div {
    max-width: 560px;
}

.b2b-community-auth__account-links {
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
    margin-top: 4px;
}

.b2b-community-auth__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
}

.b2b-community-auth__message {
    margin-bottom: 24px;
    padding: 13px 15px;
    border-left: 4px solid;
    font-size: 14px;
    line-height: 1.55;
}

.b2b-community-auth__message--success {
    border-color: #2f7d50;
    background: #eaf6ef;
    color: #235c3b;
}

.b2b-community-auth__message--error {
    border-color: #b3261e;
    background: #fff0ef;
    color: #7f1d1d;
}

.b2b-community-auth__message a {
    display: inline-block;
    margin-left: 5px;
    color: inherit;
    font-weight: 700;
    text-decoration: underline !important;
}

.b2b-registration-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.b2b-registration-form__field,
.comment-form-comment {
    margin: 0;
}

.b2b-registration-form__field label,
.comment-form-comment label {
    display: block;
    margin-bottom: 7px;
    color: var(--text_dark, #111827);
    font-size: 13px;
    font-weight: 700;
}

.b2b-registration-form input,
.b2b-comment-form textarea {
    width: 100%;
    border: 1px solid #aeb9c2;
    border-radius: 3px;
    background: #ffffff;
    color: var(--text_dark, #111827);
    font: 400 16px/1.5 "Noto Sans", sans-serif;
}

.b2b-registration-form input {
    min-height: 48px;
    padding: 10px 12px;
}

.b2b-comment-form textarea {
    min-height: 150px;
    padding: 12px 14px;
    resize: vertical;
}

.b2b-registration-form input:focus,
.b2b-comment-form textarea:focus {
    border-color: var(--link_dark, #025585);
    outline: 3px solid rgba(52, 126, 158, .18);
    outline-offset: 1px;
}

.b2b-registration-form__trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.b2b-comments__button,
.b2b-comments input[type="submit"].b2b-comments__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 190px;
    max-width: none;
    min-height: 48px;
    margin: 0;
    padding: 12px 22px;
    border: 1px solid var(--link_dark, #025585);
    border-radius: 999px;
    background: var(--link_light, #347e9e);
    color: #ffffff;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
}

.b2b-comments__button:hover,
.b2b-comments__button:focus-visible,
.b2b-comments input[type="submit"].b2b-comments__button:hover,
.b2b-comments input[type="submit"].b2b-comments__button:focus-visible {
    background: var(--link_dark, #025585);
    color: #ffffff;
}

.b2b-registration-form > .b2b-comments__button,
.b2b-registration-form__privacy {
    grid-column: 1 / -1;
}

.b2b-registration-form > .b2b-comments__button {
    justify-self: start;
}

.b2b-registration-form__privacy,
.b2b-comment-form__note {
    color: var(--text_light, #757575);
    font-size: 12px;
}

.b2b-comment-form .logged-in-as {
    margin: 0 0 20px;
    font-size: 13px;
}

.b2b-comment-form .logged-in-as a {
    color: var(--link_dark, #025585);
    font-weight: 700;
}

.b2b-comment-form .form-submit {
    margin: 18px 0 0;
}

.b2b-comment-form__note {
    margin-top: 10px;
}

.b2b-comments__cancel-reply {
    margin-left: 10px;
    font-family: "Noto Sans", sans-serif;
}

.b2b-comments__closed {
    margin: 28px 0 0;
    padding: 16px 18px;
    border-left: 3px solid var(--text_light, #757575);
    background: #f5f6f7;
    font-size: 14px;
}

@media (max-width: 992px) {
    .single_post {
        display: block;
    }

    .b2b-comments {
        margin-top: 44px;
    }
}

@media (max-width: 640px) {
    .b2b-comments__list .children {
        margin-left: 24px;
    }

    .b2b-comments__list .children .children {
        margin-left: 0;
    }

    .b2b-comments__more-replies {
        margin-left: 24px;
    }

    .b2b-comment__body {
        padding: 22px 0;
    }

    .b2b-comment__avatar {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .b2b-community-auth__intro {
        display: block;
    }

    .b2b-community-auth__account-links {
        margin-top: 14px;
    }

    .b2b-registration-form {
        grid-template-columns: 1fr;
    }

    .b2b-registration-form > .b2b-comments__button,
    .b2b-registration-form__privacy {
        grid-column: auto;
    }

    .b2b-registration-form > .b2b-comments__button,
    .b2b-community-auth__links .b2b-comments__button {
        width: 100%;
    }
}
