.op-atrm-lock {
  overflow: hidden;
}

.op-atrm {
  align-items: center;
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 99999;
}

.op-atrm--open {
  display: flex;
}

.op-atrm__backdrop {
  background: rgba(20, 24, 28, 0.58);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.op-atrm__dialog {
  background: #fff;
  border: 1px solid #e7e1dc;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  color: #1f2328;
  max-height: min(760px, calc(100vh - 48px));
  max-width: 760px;
  overflow: auto;
  padding: 24px;
  position: relative;
  width: min(100%, 760px);
}

.op-atrm__close {
  align-items: center;
  background: #f5f2ef;
  border: 1px solid #ded6cf;
  border-radius: 999px;
  color: #2b2f34;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
}

.op-atrm__close:hover,
.op-atrm__close:focus {
  background: #ebe4de;
}

.op-atrm__status {
  color: #555;
  font-size: 14px;
  min-height: 20px;
  padding-right: 46px;
}

.op-atrm__status:empty {
  display: none;
}

.op-atrm__status--error {
  color: #b42318;
}

.op-atrm__header {
  border-bottom: 1px solid #eee7e1;
  margin-bottom: 18px;
  padding-bottom: 16px;
  padding-right: 44px;
}

.op-atrm__eyebrow {
  color: #78716c;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
}

.op-atrm__title {
  color: #171717;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.op-atrm__topic-link {
  color: #c31515;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.op-atrm__topic,
.op-atrm__reply,
.op-atrm__composer {
  border: 1px solid #eee7e1;
  border-radius: 8px;
  margin-top: 14px;
  padding: 16px;
}

.op-atrm__topic {
  background: #fffdfa;
}

.op-atrm__meta {
  align-items: center;
  color: #777;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.op-atrm__meta a {
  align-items: center;
  color: #333;
  display: inline-flex;
  font-weight: 700;
  gap: 7px;
  text-decoration: none;
}

.op-atrm__meta img.avatar {
  border-radius: 50%;
  height: 30px;
  object-fit: cover;
  width: 30px;
}

.op-atrm__content {
  color: #2f3438;
  font-size: 15px;
  line-height: 1.6;
}

.op-atrm__content p:last-child {
  margin-bottom: 0;
}

.op-atrm__replies h3 {
  color: #24292f;
  font-size: 16px;
  line-height: 1.3;
  margin: 22px 0 12px;
}

.op-atrm__reply {
  background: #fff;
}

.op-atrm__empty,
.op-atrm__notice,
.op-atrm__form-message {
  color: #6b625b;
  font-size: 14px;
  margin: 0;
}

.op-atrm__notice a {
  color: #c31515;
  font-weight: 700;
}

.op-atrm__composer label {
  color: #2c3035;
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.op-atrm__composer textarea {
  border: 1px solid #d9d2cc;
  border-radius: 8px;
  box-sizing: border-box;
  color: #202428;
  display: block;
  font: inherit;
  line-height: 1.45;
  min-height: 126px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.op-atrm__composer textarea:focus {
  border-color: #c31515;
  outline: 2px solid rgba(195, 21, 21, 0.14);
}

.op-atrm__form-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 12px;
}

.op-atrm__form-actions button {
  background: #c31515;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  padding: 0 16px;
}

.op-atrm__form-actions button:disabled {
  cursor: wait;
  opacity: 0.7;
}

a.op-atrm-open {
  margin-left: 6px;
}

@media (max-width: 640px) {
  .op-atrm {
    align-items: stretch;
    padding: 10px;
  }

  .op-atrm__dialog {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .op-atrm__title {
    font-size: 20px;
  }

  .op-atrm__form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .op-atrm__form-actions button {
    width: 100%;
  }
}
