/* ======================================================================
   Merged in from theme.css / theme-override.css.
   These loaded BEFORE this file did, so they sit at the top: everything
   below still overrides them, exactly as it did when they lived in the
   two old sheets.
   ====================================================================== */
/* ----- from theme.css ----- */


  

  

  

      
      .conversations-body .message-in .message-body .message-content .content {
        font-size: 13px; }
    .conversations-body .message-in .message-body .date {
      margin-left: 10px;
      margin-top: 8px;
      font-size: 11px;
      color: #83848a;
      padding-left: 12px; }
    .conversations-body .message-in .message-body .message-content + .message-content {
      margin-top: 10px; }
      .conversations-body .message-in .message-body .message-content + .message-content:before {
        display: none; }

    
      
      .conversations-body .message-out .message-body .message-content .content {
        font-size: 13px;
        color: #ffffff !important; }
    .conversations-body .message-out .message-body .date {
      margin-right: 10px;
      margin-top: 8px;
      font-size: 11px;
      color: #83848a;
      text-align: right;
      padding-right: 15px; }
    .conversations-body .message-out .message-body .message-content + .message-content {
      margin-top: 10px; }
      .conversations-body .message-out .message-body .message-content + .message-content:before {
        display: none; }

  
  
    .messages-form .messages-form-tool .attachment {
      height: 100%;
      line-height: 1;
      color: #888c91;
      background: #e8e8e8;
      font-size: 17px;
      padding: 10px 12px;
      border-radius: 50%;
      margin-left: auto; }

/*      Conversations Wrapper     */
.conversations {
  display: flex;
  height: calc(100vh - 57px);
  flex-direction: column; }
  .conversations .conversations-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem; }
  .conversations .conversations-content {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 1rem; }
  .conversations .messages-form {
    margin: 0;
    padding: .7rem 1rem;
    background: #fff; }

@media screen and (max-width: 991px) {
  .conversations {
    margin-left: -15px;
    margin-right: -15px; } }
@media screen and (max-width: 576px) {

    

  .conversations .conversations-body {
    padding: 1.5rem 1rem; }
}

    body[data-background-color="dark"] .breadcrumbs,
body[data-background-color="dark"] .separator-solid,
body[data-background-color="dark"] .conversations .messages-form {
      border-color: rgba(181, 181, 181, 0.1) !important; }    
    body[data-background-color="dark"] .conversations .conversations-content {
      color: #575962;
      border-color: #2e364a; }
/* ----- from theme-override.css ----- */
.message-content .content {
    margin-top: 0 !important;
}

/* ==========================================================================
   Messaging / conversation thread + activity feed

   Consumed by exactly one template:
     web/phone_numbers/lnp/templates/lnp_orders/includes/messaging.html
   (included by the 4 LNP order detail views).

   That template carries its own inline <style> block which loads after this
   file and wins. Declarations it fully overrides are NOT repeated here; see
   the notes below each affected rule.

   Colors are pinned to the values that render today. They are vendor greys
   and the vendor blue, not the app's token palette — swapping them for
   --surface-*/--border-* would be a visible change, so that is left as a
   deliberate follow-up (nearest token noted inline).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Activity feed (Activity tab)
   -------------------------------------------------------------------------- */

.activity-feed {
  padding: 15px;
  list-style: none;
}

.activity-feed .feed-item {
  position: relative;
  padding-bottom: 20px;
  padding-left: 30px;
  /* nearest token: --border-normal (rgba(255,255,255,.1)) — visibly lighter */
  border-left: 2px solid #e4e8eb;
}

.activity-feed .feed-item:last-child {
  border-color: transparent;
}

.activity-feed .feed-item::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #177dff;
}

/* !important retained: these single-class selectors are less specific than
   `.activity-feed .feed-item::after` above, which sets the default dot. */
.feed-item-secondary::after {
  background: var(--color-purple) !important;
}

.feed-item-warning::after {
  background: #FFAD46 !important;
}

.activity-feed .feed-item .date {
  display: block;
  position: relative;
  top: -5px;
  color: #8c96a3;
  text-transform: uppercase;
  font-size: 13px;
}

.activity-feed .feed-item .text {
  position: relative;
  top: -3px;
}

/* --------------------------------------------------------------------------
   Conversation thread (Messages / Carrier messages tabs)
   -------------------------------------------------------------------------- */

.conversations-body .message-content-wrapper {
  display: inline-block;
  width: 100%;
}

.conversations-body .message {
  display: table;
  table-layout: fixed;
  /* padding omitted: the template's inline block zeroes padding top/bottom. */
}

.conversations-body .message-in {
  float: left;
  margin-right: 40px;
}

.conversations-body .message-out {
  float: right;
  margin-left: 40px;
}

.conversations-body .message-in .message-body,
.conversations-body .message-out .message-body {
  display: table-cell;
  vertical-align: top;
}

.conversations-body .message-out .message-body {
  float: right;
}

/* Bubble geometry shared by both directions. Padding is omitted: the
   template's inline `.message-content` rule sets `7px 15px !important`. */
.conversations-body .message-in .message-body .message-content,
.conversations-body .message-out .message-body .message-content {
  position: relative;
  width: fit-content;
  border-radius: 5px;
}

/* Bubble tail — shared triangle geometry. */
.conversations-body .message-in .message-body .message-content:before,
.conversations-body .message-out .message-body .message-content:before {
  content: '';
  position: absolute;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* Incoming bubble */
.conversations-body .message-in .message-body .message-content {
  /* nearest token: --surface-2 — much darker, so the vendor grey is kept */
  background: #f7f7f7;
  margin-left: 10px;
}

.conversations-body .message-in .message-body .message-content:before {
  left: -10px;
  border-right: 10px solid #f7f7f7;
}

/* Sender line inside the incoming bubble. font-size/margin-bottom are omitted:
   the template's inline block sets the same values for both directions. */
.conversations-body .message-in .message-body .message-content .name {
  color: #83848a;
}

/* Outgoing bubble */
.conversations-body .message-out .message-body .message-content {
  background: var(--color-blue);
  margin-right: 10px;
}

.conversations-body .message-out .message-body .message-content:before {
  right: -10px;
  border-left: 10px solid var(--color-blue);
}

/* --------------------------------------------------------------------------
   Compose form

   The template adds Bootstrap `bg-transparent mt-auto p-3`, whose !important
   utilities win over margin/padding/background here, so only the layout and
   the divider rule remain.
   -------------------------------------------------------------------------- */

.messages-form {
  display: table;
  width: 100%;
  /* nearest token: --border-subtle — visibly fainter than this vendor grey */
  border-top: 1px solid #eee;
}

.messages-form .messages-form-control {
  display: table-cell;
  padding-right: 15px;
}

.messages-form .messages-form-tool {
  display: table-cell;
  text-align: right;
  width: 50px;
}
