/* Scoped customer and owner correspondence. */

.bt-customer-history,
.bt-owner-thread,
.bt-owner-archive {
  margin-top:16px;
  display:grid;
  gap:12px;
  min-width:0;
}

.bt-customer-history[hidden],
.bt-owner-thread[hidden],
.bt-owner-archive[hidden] {
  display:none!important;
}

.bt-service-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.bt-service-heading p {
  margin:0;
  flex:1 1 250px;
  color:#cbc2ae;
  line-height:1.55;
}

.bt-customer-records {
  display:grid;
  gap:12px;
  min-width:0;
}

.bt-service-thread,
.bt-owner-thread,
.bt-owner-archive,
.bt-service-orders {
  border:1px solid rgba(199,166,74,.38);
  border-radius:14px;
  background:#141312;
  color:#f3e9d4;
  padding:15px;
  min-width:0;
}

.bt-service-thread h3,
.bt-service-orders h3,
.bt-owner-thread h3,
.bt-owner-archive h3 {
  margin:0 0 9px;
  font:600 1.16rem Georgia,serif;
  color:#f2cf75;
}

.bt-service-meta {
  font-size:.82rem;
  color:#bcb5a8;
  margin:0 0 12px;
}

.bt-service-messages {
  display:grid;
  gap:9px;
  margin:12px 0;
  max-height:360px;
  overflow-y:auto;
  overflow-wrap:anywhere;
}

.bt-service-message {
  border:1px solid rgba(199,166,74,.22);
  border-radius:10px;
  padding:10px 12px;
  background:#181716;
}

.bt-service-message.is-owner {
  border-color:rgba(250,201,79,.55);
  background:#272014;
}

.bt-service-message strong {
  display:block;
  color:#f2ca68;
  font-size:.82rem;
}

.bt-service-message p {
  margin:6px 0;
  color:#f7f2e9;
  white-space:pre-wrap;
  line-height:1.45;
}

.bt-service-message small {
  font-size:.71rem;
  color:#bcb5a8;
}

.bt-service-reply-form {
  display:grid;
  gap:8px;
}

.bt-service-reply-form label {
  display:grid;
  gap:8px;
  color:#f1cf7c;
  font-size:.85rem;
}

.bt-service-reply-form textarea {
  width:100%;
  box-sizing:border-box;
  min-height:76px;
  padding:10px;
  border:1px solid #8e7033;
  border-radius:9px;
  background:#0c0c0c;
  color:#fff;
  font:inherit;
  resize:vertical;
}

.bt-service-reply-form .button {
  justify-self:start;
  min-height:36px;
}

.bt-request-status {
  background:#161616;
  color:#f3d590;
  border:1px solid #8e7033;
  border-radius:9px;
  min-height:34px;
  max-width:130px;
}

.bt-archive-row {
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  border-bottom:1px solid rgba(199,166,74,.2);
  padding:10px 0;
}

.bt-archive-row p {
  margin:0;
  color:#beb7a9;
  flex:1 1 180px;
}

@media(max-width:650px) {
  .bt-service-heading {
    align-items:stretch;
  }

  .bt-service-thread,
  .bt-owner-thread,
  .bt-owner-archive {
    padding:12px;
  }

  .bt-service-reply-form .button {
    width:100%;
    justify-self:stretch;
  }
}