/* MID POINT チャットボット専用スタイル(Salesforceカスタマイズ) */

/* CSS START */

.embeddedServiceSidebar.layout-docked .dockableContainer {
  width: 375px;
  right: 60px;
}

.embeddedServiceLiveAgentStateChatPlaintextMessageDefaultUI.agent.plaintextContent {
  max-width: 77%;
  border-radius: 10px;
}

@media screen and (max-width: 1023px) {
  .embeddedServiceSidebar.layout-docked .dockableContainer {
    width: 100%;
    max-width: unset;
    margin: 0 auto;
    padding: 70px 0 0px;
    height: 100%;
  }
}

.sidebarHeader[embeddedService-chatHeader_chatHeader],
.announcement[embeddedService-chatHeaderAnnouncement_chatHeaderAnnouncement] {
  background-color: #142c3d;
}

.embeddedServiceHelpButton .helpButton {
  position: inherit;
  z-index: 999999999999;
  height: 80px;
}

@media screen and (max-width: 1023px) {
  .embeddedServiceHelpButton .helpButton {
    height: 80px;
    bottom: 0;
  }
}

@media screen and (max-width: 1023px) {
  _::-webkit-full-page-media,
  _:future,
  :root .embeddedServiceHelpButton .helpButton {
    bottom: 0;
  }
}

.embeddedServiceHelpButton .helpButton .uiButton {
  display: flex;
  background-color: #7dbccb;
  font-family: "Arial", sans-serif;
  min-width: 360px;
  height: 64px;
  border-radius: 8px;
  font-size: 18px;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 1023px) {
  .embeddedServiceHelpButton .helpButton .uiButton {
    min-width: 64px;
  }
}

.embeddedServiceHelpButton .embeddedServiceIcon {
  margin: unset;
}

@media screen and (max-width: 1023px) {
  .embeddedServiceHelpButton .embeddedServiceIcon {
    width: 32px;
  }
}

.embeddedServiceLiveAgentStateChatItem.chatMessage {
  display: flex;
  flex-direction: column-reverse;
  margin-bottom: 20px;
}

.embeddedServiceLiveAgentStateChatItem.chatMessage button {
  color: #9f8f68;
  background: #fff;
  border-radius: 10px;
  text-align: left;
  padding-left: 15px;
}

.embeddedServiceSidebarButton {
  background: #142c3d;
}

.embeddedServiceLiveAgentStateChatPlaintextMessageDefaultUI.chasitor.plaintextContent {
  background-color: #89733d;
  border: none;
  padding: 16px;
}

.embeddedServiceLiveAgentStateChatMenuMessage ul.rich-menu-items,
.embeddedServiceLiveAgentStateChatItem .chatContent ul.rich-menu-items {
  position: relative;
  right: 15px;
  border: #ece9e1;
  color: #9f8f68;
  width: 282px;
  margin-bottom: 10px;
}

.embeddedServiceLiveAgentStateChatItem
  .chatContent
  ul.rich-menu-items
  li:first-of-type {
  border-color: #ece9e1;
}

.embeddedServiceLiveAgentStateChatItem .chatContent ul.rich-menu-items li {
  border-color: #ece9e1;
}

.embeddedServiceLiveAgentStateChatItem.chatMessage button:hover {
  background: #eeebe4;
  color: #9f8f68;
  border-radius: unset;
}

.embeddedServiceLiveAgentStateChatItem.chatMessage button:hover:focus {
  color: #9f8f68;
  background: #9f8f68;
}

.embeddedServiceHelpButton {
  background-color: #142c3d;
}

.embeddedServiceIcon {
  display: block !important;
}

.embeddedServiceHelpButton .embeddedServiceIcon {
  margin: unset;
}

.embeddedServiceHelpButton .helpButton .uiButton:focus {
  /* outline: 1px solid #7DBCCB; */
  border: none;
  background-color: #7dbccb;
}

.embeddedServiceHelpButton .helpButton .uiButton .helpButtonLabel {
  /* outline: 0px solid #142C3D; */
  border: none;
  /* background-color: #142c3d; */
}

@media screen and (max-width: 1023px) {
  .embeddedServiceHelpButton .helpButton .uiButton .helpButtonLabel {
    display: none;
  }
}

.embeddedServiceHelpButton .helpButton .uiButton .helpButtonLabel .message {
  border: none;
  background-color: inherit;
  color: #ffffff;
  font-weight: bold;
  /* min-width: 20em; */
}

.embeddedServiceHelpButton
  .helpButton
  .uiButton
  .helpButtonLabel
  .assistiveText {
  border: none;
  background-color: #142c3d;
  color: #ffffff;
  font-weight: bold;
  /* min-width: 20em; */
}

.embeddedServiceSidebarMinimizedDefaultUI
  .content
  .messageContent
  .minimizedText
  .message {
  border: none;
  background-color: #7dbccb;
  color: #ffffff;
  max-width: 5em;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.embeddedServiceSidebarMinimizedDefaultUI.newMessage {
  background-color: #7dbccb;
  border: none;
  min-width: 64px;
  height: 64px;
}

@media screen and (max-width: 1023px) {
  .embeddedServiceSidebarMinimizedDefaultUI.newMessage {
    position: fixed;
    bottom: 75px;
    right: 0;
    left: 0;
    max-width: 340px;
    margin: 0 auto;
  }

  .embeddedServiceSidebarMinimizedDefaultUI.sidebarHeader {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 10px;
    max-width: 340px;
    height: 64px;
    margin: 0 auto;
  }
}

.embeddedServiceLiveAgentStateChatInputFooter.chasitorInputWrapper {
  background: #fff;
}

.embeddedServiceLiveAgentStateChatInputFooter .chasitorControls .uiInput {
  border-right: 1px solid #c7c7c7;
  border-left: 1px solid #c7c7c7;
  border-bottom: 1px solid #c7c7c7;
  border-top: 1px solid #c7c7c7;
  border-radius: 4px;
}

@media screen and (max-width: 1023px) {
  .embeddedServiceLiveAgentStateChatInputFooter .chasitorControls .uiInput {
    border-right: none;
    border-radius: 4px 0 0 4px;
  }
}

.embeddedServiceLiveAgentStateChatInputFooter .chasitorControls {
  margin: 0 17px;
}

.embeddedServiceLiveAgentStateChatInputFooter
  .chasitorControls
  .chatActionButton {
  border-right: 1px solid #c7c7c7;
  border-bottom: 1px solid #c7c7c7;
  border-top: 1px solid #c7c7c7;
  border-radius: 0 4px 4px 0;
  border-left-style: none;
  opacity: 1;
}

.embeddedServiceSidebarButton.uiButton--inverse .label {
  color: #142c3d;
}

.embeddedServiceLiveAgentStateChat .chatSessionStartTime {
  flex: unset;
  margin: 0 0 20px;
  padding: 15px 0;
  min-height: 0;
  background: #f7f8f6;
  line-height: 0;
}

.embeddedServiceLiveAgentStateChatItem
  .isLightningOutContext
  .avatar.iconAvatar {
  margin: 0px;
}

.embeddedServiceLiveAgentStateChatItem.agent .agentName {
  margin-bottom: 5px;
}

.embeddedServiceLiveAgentStateWaiting .loadingBall　 {
  background-color: #142c3d;
}

@media screen and (max-width: 1023px) {
  .embeddedServiceSidebar.sidebarMaximized {
    background: unset;
  }

  .embeddedServiceSidebar.layout-docked
    .embeddedServiceBottomTabBar.dockableContainer.showDockableContainer {
    height: 100%;
  }
}

.embeddedServiceSidebarMinimizedDefaultUI {
  background: #7dbccb;
  border-color: #7dbccb;
  max-width: 375px;
  width: 100%;
  height: 56px;
  margin-right: 50px;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.5);
}

.embeddedServiceSidebarMinimizedDefaultUI
  .content
  .messageContent
  .minimizedText
  .message {
  overflow: initial;
  max-width: unset;
  background-color: inherit;
  font-size: 18px;
  font-weight: bold;
}

.embeddedServiceSidebarMinimizedDefaultUI.minimizedContainer:focus {
  background: #7dbccb;
}

.embeddedServiceSidebarMinimizedDefaultUI .messageContent {
  justify-content: center;
}

.embeddedServiceSidebarMinimizedDefaultUI:not(.helpButton) .minimizedText {
  text-align: center;
  display: inline-block;
}

button[embeddedService-chatHeader_chatHeader] {
  padding: 5px;
}

.embeddedServiceHelpButton .embeddedServiceIcon::before {
  content: "";
  background: url(../images/message-dots.png) no-repeat;
  background-size: contain;
  display: block;
  position: relative;
  top: 2px;
  left: 10px;
  height: 30px;
  width: 45px;
}

@media screen and (max-width: 1023px) {
  .embeddedServiceHelpButton .embeddedServiceIcon::before {
    position: relative;
    left: 5px;
    width: 100%;
  }
}

.embeddedServiceSidebarMinimizedDefaultUI.sidebarHeader::before {
  content: "";
  background: url(../images/message-dots.png) no-repeat;
  background-size: contain;
  display: block;
  position: absolute;
  top: 20px;
  left: 20px;
  height: 30px;
  width: 30px;
}

.embeddedServiceLiveAgentStateChatItem .isLightningOutContext .avatar {
  background-image: url(../images/mp_chat_avatar.png) !important;
}

.embeddedServiceLiveAgentStateChatItem.chatMessage button span {
  color: #9f8f68;
  padding: 2px 10px 2px 0;
}

.embeddedServiceLiveAgentStateChatButtonItem {
  border: solid 1px #ece9e1;
  box-shadow: unset;
}

/* CSS END */
