.stretch-card>.card {
    width: 100%;
    min-width: 100%
}

body {
    background-color: #f9f9fa
}

.flex {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto
}

@media (max-width:991.98px) {
    .padding {
        padding: 1.5rem
    }
}

@media (max-width:767.98px) {
    .padding {
        padding: 1rem
    }
}

.padding {
    padding: 3rem
}


.chat-box {
    position: relative;
    border-radius: 3px;
    width: 100%;
    /*box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1)*/
}


.box-header {
    color: #444;
    display: block;
    padding: 10px;
    position: relative
}

.box-header:before,
.box-body:before,
.box-footer:before,
.box-header:after,
.box-body:after,
.box-footer:after {
    content: "";
    display: table
}

.box-header {
    color: #444;
    display: block;
    padding: 10px;
    position: relative
}

.box-header>.fa,
.box-header>.glyphicon,
.box-header>.ion,
.box-header .box-title {
    display: inline-block;
    font-size: 18px;
    margin: 0;
    line-height: 1
}

.box-header>.box-tools {
    position: absolute;
    right: 10px;
    top: 5px
}

.box-header>.box-tools [data-toggle="tooltip"] {
    position: relative
}

.bg-yellow,
.callout.callout-warning,
.alert-warning,
.label-warning,
.modal-warning .modal-body {
    background-color: #f39c12 !important
}

.bg-yellow {
    color: #fff !important
}

.btn {
    border-radius: 3px;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid transparent
}

.btn-box-tool {
    padding: 5px;
    font-size: 12px;
    background: transparent;
    color: #97a0b3
}

.direct-chat .box-body {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    position: relative;
    overflow-x: hidden;
    padding: 0
}

.box-body {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    padding: 10px
}

.box-header:before,
.box-body:before,
.box-footer:before,
.box-header:after,
.box-body:after,
.box-footer:after {
    content: "";
    display: table
}

.direct-chat-messages {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0);
    padding: 10px;
    height: 250px;
    overflow: auto
}

.direct-chat-messages,
.direct-chat-contacts {
    -webkit-transition: -webkit-transform .5s ease-in-out;
    -moz-transition: -moz-transform .5s ease-in-out;
    -o-transition: -o-transform .5s ease-in-out;
    transition: transform .5s ease-in-out
}

.direct-chat-msg {
    margin-bottom: 10px
}

.direct-chat-msg,
.direct-chat-text {
    display: block
}

.direct-chat-info {
    display: block;
    margin-bottom: 2px;
    font-size: 12px
}

.direct-chat-timestamp {
    color: #999
}

.btn-group-vertical>.btn-group:after,
.btn-group-vertical>.btn-group:before,
.btn-toolbar:after,
.btn-toolbar:before,
.clearfix:after,
.clearfix:before,
.container-fluid:after,
.container-fluid:before,
.container:after,
.container:before,
.dl-horizontal dd:after,
.dl-horizontal dd:before,
.form-horizontal .form-group:after,
.form-horizontal .form-group:before,
.modal-footer:after,
.modal-footer:before,
.modal-header:after,
.modal-header:before,
.nav:after,
.nav:before,
.navbar-collapse:after,
.navbar-collapse:before,
.navbar-header:after,
.navbar-header:before,
.navbar:after,
.navbar:before,
.pager:after,
.pager:before,
.panel-body:after,
.panel-body:before,
.row:after,
.row:before {
    display: table;
    content: ""
}

.direct-chat-img {
    border-radius: 50%;
    float: left;
    width: 40px;
    height: 40px
}

.direct-chat-text {
    border-radius: 5px;
    position: relative;
    padding: 5px 10px;
    background: #d2d6de;
    border: 1px solid #d2d6de;
    margin: 5px 0 0 50px;
    color: #444
}

.direct-chat-msg,
.direct-chat-text {
    display: block
}

.direct-chat-text:before {
    border-width: 6px;
    margin-top: -6px
}

.direct-chat-text:after,
.direct-chat-text:before {
    position: absolute;
    right: 100%;
    top: 15px;
    border: solid transparent;
    border-right-color: #d2d6de;
    content: ' ';
    height: 0;
    width: 0;
    pointer-events: none
}

.direct-chat-text:after {
    border-width: 5px;
    margin-top: -5px
}

.direct-chat-text:after,
.direct-chat-text:before {
    position: absolute;
    right: 100%;
    top: 15px;
    border: solid transparent;
    border-right-color: #d2d6de;
    content: ' ';
    height: 0;
    width: 0;
    pointer-events: none
}

:after,
:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

.direct-chat-msg:after {
    clear: both
}

.direct-chat-msg:after {
    content: "";
    display: table
}

.direct-chat-info {
    display: block;
    margin-bottom: 2px;
    font-size: 12px
}

.right .direct-chat-img {
    float: right
}

.direct-chat-warning .right>.direct-chat-text {
    background: #f39c12;
    border-color: #f39c12;
    color: #fff
}

.right .direct-chat-text {
    margin-right: 50px;
    margin-left: 0
}

.box-footer {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 15px 0;
}

.box-header:before,
.box-body:before,
.box-footer:before,
.box-header:after,
.box-body:after,
.box-footer:after {
    content: "";
    display: table
}

.input-group-btn {
    position: relative;
    font-size: 0;
    white-space: nowrap
}

.input-group-btn:last-child>.btn,
.input-group-btn:last-child>.btn-group {
    z-index: 2;
    margin-left: -1px
}

.btn-warning {
    color: #fff;
    background-color: #f0ad4e;
    border-color: #eea236
}

@media (max-width: 768px) {
    #message-container{
        padding: 0px;
    }
}
.box-footer button#send {
    border: 1px solid #5156A9;
}
.box-footer button#send:hover {
    background-color: #5156A9;
    color: #fff;
}
.message-container .info {
    background-color: #E0E0FF;
    padding: 1em;
    line-height: 1.5em;
    text-align: left;
    border-radius: 7px;
    box-shadow: 1px 3px 4px 0px #d9d9d9;
    font-size: 15px;
    width: max-content;
    margin-bottom: 10px;
}

#message-container .info {
    background-color: #E0E0FF;
    padding: 1em;
    line-height: 1.5em;
    text-align: left;
    border-radius: 7px;
    box-shadow: 1px 3px 4px 0px #d9d9d9;
    font-size: 15px;
    width: max-content;
    max-width: 50%;
    margin-bottom: 10px;
    margin-left: 15px;
}
@media (max-width: 768px) {
    #message-container .info {
        max-width: 80%;
    }
}
.message-container{
padding: 2px 2px;
display: flex;
justify-content: flex-end;
flex-direction: column;
align-self: flex-end;
}
/*.message-container .username {
    display:inline-block;
    margin-right:5px;
    font-weight:bold;
    color:#2471A3;
}

.me, .username.me {
    font-weight:bold;
    color:#F39C12;
}*/

/*.message-container .username.me {
    display:inline-block;
    margin-right:5px;
}*/

.message-container .me{
    background-color: #fefbff;
    padding: 1em;
    line-height: 1.5em;
    text-align: left;
    border-radius: 7px;
    box-shadow: 1px 3px 4px 0px #9f9f9f;
    margin-right: 50px;
    position: relative;
}

.message-container .me:after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='31' viewBox='0 0 32 31' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.0261 24.5303C14.0977 20.2551 11.6156 6.3206 11.1709 0.822419L0.189995 25.4177C12.8047 33.3035 26.374 30.9388 31.7367 28.7204C31.7928 28.7026 31.841 28.6821 31.8816 28.6597C31.834 28.6799 31.7857 28.7001 31.7367 28.7204C30.7837 29.0234 27.57 28.5683 21.0261 24.5303Z' fill='%23FEFBFF'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-size: cover;
    display: block;
    position: absolute;
    width: 23px;
    height: 18px;
    right: -13px;
    top: 38px;
    filter: drop-shadow(3px 4px 2px #9f9f9f);
}

.message-container .notify {
    background-color: #E0E0FF;
    padding: 1em;
    line-height: 1.5em;
    text-align: left;
    border-radius: 7px;
    box-shadow: 1px 3px 4px 0px #d9d9d9;
    font-size: 15px;
    width: 70%;
}

.message-container .reader{
    background-color: #E0E0FF;
    padding: 1em;
    line-height: 1.5em;
    text-align: left;
    border-radius: 7px;
    box-shadow: 1px 3px 4px 0px #d9d9d9;
    margin-left: 70px;
    position: relative;
}

.message-container .reader:before {
    content: '';
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-size: cover;
    display: block;
    position: absolute;
    width: 20px;
    height: 20px;
    left: -12px;
    top: 38px;
    filter: drop-shadow(1px 2px 1px #d9d9d9);
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='31' viewBox='0 0 32 31' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.0261 24.5303C14.0977 20.2551 11.6156 6.3206 11.1709 0.822419L0.189995 25.4177C12.8047 33.3035 26.374 30.9388 31.7367 28.7204C31.7928 28.7026 31.841 28.6821 31.8816 28.6597C31.834 28.6799 31.7857 28.7001 31.7367 28.7204C30.7837 29.0234 27.57 28.5683 21.0261 24.5303Z' fill='%23e0e0ff'/%3E%3C/svg%3E");
    transform: rotateY(180deg);
}

#messages{
    height: calc(100vh - 230px);
    overflow: auto;
    font-family: "DM Sans",sans-serif;
    border-bottom: 2px solid #5156A9;
}

@media (max-width: 768px) {
    #messages{
        height: calc(100vh - 290px);
    }
}

#chat-input {
    border:  unset !important;
    margin-right: 15px;
    padding-left: 15px;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    background: transparent;
}

input[type="text"].form-control::-webkit-input-placeholder {
    font-family: "DM Sans", sans-serif;
  }

.end-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 70px 40px;
    gap: 15px;
    background: #16172A;
    color: #fff;
    border-radius: 16px;
}
.end-container h3 {
    text-transform: uppercase;
}
.btn.more-time {
    background: #5156A9;
    color: #fff;
}

.btn.finish-time {
    color: #fff;
}
.btn.finish-time:hover {
    color: #fff;
}
.placeholder.show {
    background: #6464649e;
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 111;
}

.repay-container {
    background: #fff;
    color: #1B1B1F;
    border-radius: 16px;
    padding: 15px;
}

.repay-container h3 {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 17px;
    line-height: 22px;
    color: #47464A;
    margin-top: 14px;
}

.repay-container p {
    font-size: 16px;
}
.time-select {
    display: flex;
    flex-direction: column;
}
.time-field {
    height: 54px;
    border-bottom: 1px solid #C7C5D0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
#wpforms-320-field_5-container,
#wpforms-320-field_6-container {
    display:  none;
}

.checkout .wpforms-submit-container {
   /* display:  none;   -- uncomment to show original wpforms submit */
}
.checkout .wpforms-cc-warning.wpforms-error-alert {
    display:  none;
}
/*.checkout #wpforms-320-field_8-container .wpforms-field-stripe-credit-card-name {
    display:  none;
}*/
.checkout #wpforms-320-field_8 {
    border-bottom: 1px solid #c7c5d0;
    padding: 10px 0;
}
.checkout .wpforms-sublabel-hide {
    display:  none;
}
.checkout .wpforms-field {
    margin-bottom: 20px;
}

.repay-container .close-continue-reading {
    width: 44px;
    padding: 10px;
    background: transparent;
    box-shadow: none;
    border: none;
}
.repay-container .close-continue-reading:hover {
    border: none;
}

.time-select .time-field label {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 23px);
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    color: #929094;
}

.continue-reading-row {
    padding: 16px 12px;
    background: #FEFBFF;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0px 0px 8px 8px;
    margin-left: -15px;
    margin-right: -15px;
}

.continue-reading-form {
    margin-bottom: 0px;
}

.repay-container .add-time-text {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    display: flex;
    align-items: center;
    letter-spacing: 0.1px;
    color: #5E5D67;
    margin: 16px 0;
    justify-content: space-between;
}
.repay-container .add-time-text .required {
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    color: #070765;
    width: 68px;
    height: 20px;
    background: #E1E0F9;
    border-radius: 59px;
    text-align: center;
}
.continue-reading-row .btn.more-time {
    display: flex;
    justify-content: space-between;
    margin-left: 4px;
}

/* Web-92 fix for chat bubble inside the screen */
@media screen and (max-width: 391px) {
    .message-container
    {
        margin-right: 5px;
    }
}
