.custom-webchat-wrapper {
    position: fixed;
    left: calc(100% - 390px);
    bottom: var(--spacing-60);
    width: 330px;
    z-index: 100;
    display: none;
    flex-direction: column;
    max-height: 580px;
    align-items: end;
    gap: var(--spacing-10);
    justify-content: end;
}

.custom-webchat-container {
    overflow: hidden;
    border-radius: var(--border-radius-14);
    box-shadow: 0 10px 15px 0px var(--webchat-container-shadow-colour);
    display: flex;
    flex-direction: column;
    justify-content: start;
    position: relative;
    min-height: 217px;
    max-height: 580px;
    width: 330px;
}

.webchat-heading-info {
    display: flex;
    gap: var(--spacing-10);
    align-items: center;
}

.webchat-heading-info img {
    width: 24px;
    height: 24px;
}

.webchat-heading {
    background-color: var(--colour-charcoal-grey-primary);
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: var(--spacing-20);
    flex-direction: row;
    gap: var(--spacing-10);
    letter-spacing: 0.5px;
    width: 100%;
    min-height: 53px;
}

.custom-webchat-message-window {
    flex: 1;
    overflow: hidden auto;
    overscroll-behavior: contain;
    display: flex;
    width: 100%;
    background-color: var(--colour-white);
    flex-direction: column;
    align-items: center;
}

.custom-webchat-message-window-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: auto;
    align-items: center;
    padding: 15px;
    gap: var(--spacing-10);
}

.custom-webchat-default-message {
    max-width: 274px;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    margin-top: 15px;
}

.custom-webchat-input-window {
    background-color: var(--colour-white);
    min-height: 92px;
    display: flex;
    padding: var(--spacing-20);
    align-items: center;
    gap: var(--spacing-10);
}

.custom-webchat-input {
    border: none;
    width: 100%;
    height: 100%;
    padding-left: var(--spacing-20);
    outline: none;
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-600);
    resize: none;
    max-height: 96px;
    margin-block: 14px;
    overflow-y: hidden;
}

    .custom-webchat-input::placeholder {
        color: var(--colour-charcoal-grey-tint-1);
    }

.custom-webchat-input-box {
    border: 2px solid var(--colour-charcoal-grey-tint-3);
    border-radius: var(--border-radius-14);
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding-right: var(--spacing-20);
    gap: var(--spacing-10);
    width: 100%;
}

    .custom-webchat-input-box:focus-within {
        border: 1.5px solid var(--colour-easy-orange);
    }

.webchat-out-message-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-10);
}

.webchat-message-details {
    color: var(--colour-charcoal-grey-tint-1);
    font-size: var(--font-size-12);
    font-weight: var(--font-weight-600);
    margin-top: 5px;
}

.webchat-in-message-wrapper {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-10);
}

.webchat-out-message {
    background-color: var(--colour-easy-orange-tint-3, #ffe5d4);
    width: fit-content;
    max-width: 292px;
    border-radius: 14px 0px 14px 14px;
    padding: 15px;
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-400);
    color: var(--colour-charcoal-grey-primary);
    hyphens: auto;
    word-break: break-word;
}

.webchat-in-message {
    background-color: var(--colour-charcoal-grey-tint-4);
    width: fit-content;
    max-width: 292px;
    border-radius: 0px 14px 14px 14px;
    padding: 15px;
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-400);
    hyphens: auto;
    word-break: break-word;
}

.custom-webchat-input-buttons {
    display: flex;
    height: 41px;
    align-items: center;
    justify-content: space-between;
    padding-left: var(--spacing-10);
    padding-right: 16px;
}

.custom-webchat-quick-reply-wrapper {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-10);
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-block: 5px;
}

.custom-webchat-quick-reply {
    padding-inline: var(--spacing-20);
    padding-block: 15px;
    box-shadow: 0 2px 10px 1px var(--webchat-quick-reply-shadow-colour);
    border-radius: 43px;
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-400);
    max-height: 35px;
    cursor: pointer;
}

    .custom-webchat-quick-reply:hover {
        box-shadow: 2px 2px 6px 1px rgba(232, 83, 0, 0.30);
        background-color: var(--colour-easy-orange);
        color: var(--colour-white);
    }

.webchat-close-icon {
    cursor: pointer;
    box-shadow: 1px 2px 4.1px 0 rgba(0, 0, 0, 0.29);
    border-radius: 35px;
    width: 72px;
    height: 72px;
}

.webchat-send-button {
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.webchat-minimise-icon {
    cursor: pointer;
}

.webchat-down-icon {
    display: none;
    cursor: pointer;
}

.custom-webchat-error-modal {
    position: absolute;
    inset: 0;
    background-color: rgba(77, 77, 77, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-20);
    z-index: 10;
}

    .custom-webchat-error-modal.is-visible {
        display: flex;
    }

.custom-webchat-error-modal-card {
    background-color: var(--colour-white);
    border-radius: var(--border-radius-14);
    box-shadow: 0 10px 15px 0px rgba(77, 77, 77, 0.18);
    padding: var(--spacing-30) var(--spacing-20);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-20);
    width: 100%;
    max-width: 292px;
    text-align: center;
}

.custom-webchat-error-modal-text {
    margin: 0;
    color: var(--colour-charcoal-grey-primary);
    font-size: 16px;
    line-height: 1.4;
}

.custom-webchat-error-modal-button {
    background-color: var(--colour-easy-orange);
    color: var(--colour-white);
    border: none;
    border-radius: 999px;
    padding: var(--spacing-10) var(--spacing-30);
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    min-height: 44px;
    font-size: 16px;
}

    .custom-webchat-error-modal-button:hover {
        background-color: var(--colour-easy-orange-shade-1);
    }

@media (max-width: 990px) {
    .custom-webchat-wrapper {
        top: 0;
        width: 100%;
        height: 100%;
        max-height: unset;
        overflow: unset;
        left: 0;
        background-color: rgba(0, 0, 0, 0.30);
    }

    .custom-webchat-default-message {
        max-width: unset;
        text-align: center;
        width: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 8px;
        margin-top: 15px;
    }

    .custom-webchat-container {
        border-radius: 14px 14px 0px 0px;
        min-height: 201px;
        max-height: unset;
        width: 90%;
        margin: 0 auto;
    }

    .webchat-close-icon {
        display: none;
    }

    .webchat-down-icon {
        display: none;
    }

    .webchat-out-message,
    .webchat-in-message {
        width: fit-content;
        max-width: unset;
    }
}


@media (max-width: 480px) {

    .custom-webchat-container {
        border-radius: 14px 14px 0px 0px;
        min-height: 217px;
        width: 100%;
    }
}
