:root {
  --wall-bg: #202a3a;
  --wall-border: #2d3748;
  --wall-radius: 14px;
  --wall-bubble-bg: #232e47;
  --wall-bubble-border: #253446;
  --wall-shadow: 0 2px 18px 0 rgba(10,16,32,0.10);
  --wall-accent: #009fff;
  --wall-muted: #a7b7d0;
  --wall-username: #0ea6ff;
  --wall-date: #8ea2c7;
  --wall-link-hover: #ffb937;
  --wall-comment-tag: #0a7fcd;
  --wall-comment-tag-self: #ef8517;
  --wall-send-hover: #21aaff;
}

.wall-feed-container {
  max-width: 830px;
  margin: 0 auto;
  padding-top: 19px;
  padding-bottom: 38px;
}
.wall-feed-title {
  color: #e4eaff;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}
.wall-feed-grid {
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.wall-feed-bubble {
  background: var(--wall-bg);
  border-radius: var(--wall-radius);
  border: 1.5px solid var(--wall-border);
  box-shadow: var(--wall-shadow);
  padding: 19px 30px 36px 28px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 92px;
  box-sizing: border-box;
  z-index: 1;
}
.wall-feed-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
}
.wall-feed-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--wall-accent);
  background: #eee;
  object-fit: cover;
}
.wall-feed-header-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
}
.wall-feed-username {
  font-weight: 700;
  color: var(--wall-username);
  font-size: 1.15rem;
  text-decoration: none !important;
  transition: color 0.12s;
}
.wall-feed-username:hover,
.wall-feed-username:focus {
  color: var(--wall-link-hover);
}
.wall-feed-date {
  color: var(--wall-date);
  font-size: 0.99rem;
  font-weight: 400;
  margin-top: 0;
}
.wall-feed-content {
  color: #e4eaff;
  font-size: 1.06rem;
  margin-bottom: 9px;
  margin-top: 2px;
  word-break: break-word;
}

/* ---- Actions row med like + kommentar ---- */
.wall-feed-actions-row {
  display: flex;
  gap: 19px;
  align-items: center;
  margin-top: 7px;
  margin-bottom: 3px;
  font-size: 1.10rem;
  font-weight: 500;
}
.wall-action-like .wall-like-btn,
.wall-like-btn {
  background: #1a2336;
  border-radius: 8px;
  color: #ffbe33;
  border: 1.6px solid #232f47;
  padding: 3px 14px 3px 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.13em;
  display: flex;
  align-items: center;
  transition: background .12s, color .12s, border .13s;
  gap: 6px;
}
.wall-like-btn.liked {
  color: #ffb937 !important;
  border-color: #ffb937;
}
.wall-like-btn:hover {
  background: #192f47;
  color: #ffbe33;
  border-color: #ffbe33;
}
.like-count {
  margin-left: 2px;
  font-size: 1.08rem;
  font-weight: 700;
}

.wall-action-comment .wall-comments-link,
.wall-comments-link {
  background: #19263d;
  border-radius: 8px;
  color: #13caff;
  border: 1.6px solid #232f47;
  padding: 3px 18px 3px 9px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  transition: background .12s, color .12s, border .13s;
  gap: 6px;
}
.wall-comments-link:hover {
  background: #233f59;
  color: #43e2ff;
  border-color: #009fff;
}
.comment-count {
  margin-left: 2px;
  color: #21aaff;
  font-size: 1.08rem;
  font-weight: 700;
}

.wall-action-text {
  color: #21aaff !important;
  font-size: 1.10rem;
  margin-left: 2px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wall-comments-container {
  margin-top: 13px;
  margin-bottom: 0;
  padding-left: 1px;
  display: none;
}
.wall-comments-container.visible {
  display: block;
}

/* --- Kommentarträd (inkl max 5 nivåer, blå linje till vänster) --- */
.wall-comment-bubble,
.wall-comment {
  background: var(--wall-bubble-bg);
  border-radius: 12px;
  border: 1.1px solid var(--wall-bubble-border);
  box-shadow: 0 1.5px 9px #2330481c;
  padding: 14px 18px 11px 18px;
  margin-bottom: 9px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  transition: background 0.15s;
}
.wall-comment.highlighted,
.wall-comment.wall-comment-highlight {
  background: #283857 !important;
  border-color: #21aaff !important;
  animation: comment-highlight-fade 1s ease;
}
@keyframes comment-highlight-fade {
  0% { background: #ef851733; }
  100% { background: #283857; }
}

.wall-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #009fff;
  background: #eee;
  object-fit: cover;
  margin-top: 0;
}
.wall-comment-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wall-comment-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}
.wall-comment-username {
  font-weight: 700;
  color: var(--wall-username);
  font-size: 1.04rem;
  text-decoration: none !important;
  margin-right: 3px;
  transition: color 0.12s;
}
.wall-comment-username:hover,
.wall-comment-username:focus {
  color: var(--wall-link-hover);
}
.wall-comment-content,
.wall-comment-text {
  color: #e2edff;
  font-size: 1.08em;
  margin-bottom: 1px;
  margin-top: 2px;
  word-break: break-word;
}
.wall-comment-time {
  color: #91a5c7;
  font-size: 0.98em;
}

.wall-comment-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.wall-comment-like-btn {
  background: #121c2d;
  border-radius: 7px;
  color: #ffbe33;
  border: 1.2px solid #232f47;
  padding: 3px 12px 3px 7px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.11em;
  display: flex;
  align-items: center;
  transition: background .12s, color .12s, border .13s;
  gap: 4px;
}
.wall-comment-like-btn.liked {
  color: #ffb937 !important;
  border-color: #ffb937;
}
.wall-comment-like-btn:hover {
  background: #192f47;
  color: #fff;
  border-color: #ffbe33;
}
.comment-like-count {
  margin-left: 2px;
  font-size: 1.01em;
  font-weight: 700;
}

.wall-comment-reply-btn {
  background: #19263d;
  border-radius: 8px;
  color: #13caff;
  border: 1.2px solid #232f47;
  padding: 3px 13px 3px 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.11em;
  display: flex;
  align-items: center;
  transition: background .12s, color .12s, border .13s;
  gap: 4px;
}
.wall-comment-reply-btn:hover {
  background: #233f59;
  color: #43e2ff;
  border-color: #009fff;
}

.wall-comment-actions-topright {
  position: absolute;
  top: 10px;
  right: 13px;
  display: flex;
  gap: 5px;
  z-index: 5;
}

/* --- NESTED svar: max 3 indrag, blue vertical line --- */
.wall-child-comments {
  position: relative;
  padding-bottom: 0;
  border-left: 0 !important;  /* <--- STRECK BORTTAGET */
}
.wall-child-comments.depth-1 { margin-left: 35px !important; }
.wall-child-comments.depth-2 { margin-left: 70px !important; }
.wall-child-comments.depth-3,
.wall-child-comments:not(.depth-1):not(.depth-2):not(.depth-3) { margin-left: 105px !important; }

@media (max-width: 700px) {
  .wall-child-comments.depth-1 { margin-left: 18px !important; }
  .wall-child-comments.depth-2 { margin-left: 36px !important; }
  .wall-child-comments.depth-3,
  .wall-child-comments:not(.depth-1):not(.depth-2):not(.depth-3) { margin-left: 54px !important; }
}

/* --- Reply form styling, alltid 100% innanför bubblan --- */
.wall-reply-form {
  width: 100% !important;
  background: none !important;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.wall-reply-form .wall-comment-input-row {
  background: #232e47;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  position: relative;
  padding: 5px 8px 5px 10px;
}
.wall-reply-form textarea {
  width: 100%;
  min-height: 38px;
  max-height: 120px;
  border-radius: 7px;
  background: #232e47;
  color: #e4eaff;
  border: 1.2px solid #2d3748;
  padding: 7px 12px;
  font-size: 1.01em;
  margin-bottom: 0;
  margin-top: 2px;
  line-height: 1.27;
  box-sizing: border-box;
  overflow-y: auto;
  outline: none;
  transition: border .12s;
  flex: 1 1 0%;
  resize: none;
}
.wall-comment-send-btn {
  background: #121c2d;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  color: #13caff;
  cursor: pointer;
  transition: background 0.14s;
  position: relative;
  padding: 0;
}
.wall-comment-send-btn svg {
  width: 25px;
  height: 25px;
  display: block;
  stroke: #13caff;
}
.wall-comment-send-btn:hover {
  background: #1a293d;
}
.wall-comment-cancel-btn {
  background: #323c52;
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 5px 17px;
  cursor: pointer;
  font-size: 1.03rem;
  transition: background 0.14s;
  margin-left: 0;
}
.wall-comment-cancel-btn:hover {
  background: #2d3748;
  color: #fff;
}

@media (max-width: 880px) {
  .wall-feed-bubble {
    padding: 13px 9px 30px 11px;
    font-size: 1.01rem;
  }
  .wall-comments-container {
    margin-left: 0;
  }
}
@media (max-width: 600px) {
  .wall-feed-bubble {
    padding: 8px 1vw 14px 1vw;
  }
  .wall-comment-avatar { width: 28px; height: 28px; }
  .wall-comment,
  .wall-comment-bubble { padding: 9px 6px 7px 8px; }
  .wall-comment-replies,
  .wall-reply-form { margin-left: 18px; }
}

.mentions-autosuggest-dropup {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 6px;
  z-index: 22222;
  background: #27334a;
  border-radius: 10px;
  box-shadow: 0 2px 12px #101c2e44;
  min-width: 170px;
  max-width: 300px;
  padding: 4px 0;
  border: 1.5px solid #2ca0f5;
}
.mentions-autosuggest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mentions-autosuggest-item {
  padding: 6px 16px;
  color: #c9defc;
  font-size: 1.07rem;
  cursor: pointer;
  border-radius: 7px;
  white-space: nowrap;
  transition: background 0.13s, color 0.13s;
}
.mentions-autosuggest-item.active,
.mentions-autosuggest-item:hover {
  background: #18263a;
  color: #21aaff;
}

/* --- Dropup/modal för likes (från wall_likes.js) --- */
.wall-like-dropup {
  position: absolute;
  left: 0;
  bottom: 125%;
  z-index: 99;
  min-width: 225px;
  background: #202c44;
  border-radius: 13px;
  box-shadow: 0 4px 24px #02112244;
  padding: 9px 15px 10px 15px;
  border: 1.3px solid #20a4ff;
  color: #e7f6ff;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .18s, transform .17s;
}
.wall-like-btn:hover .wall-like-dropup,
.wall-comment-like-btn:hover .wall-like-dropup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.wall-like-dropup:hover {
  opacity: 1;
  pointer-events: auto;
}
.wall-likes-dropup a {
  color: #21aaff;
  text-decoration: underline;
  font-weight: 600;
}

/* --- Modal för likes (från wall_likes.js) --- */
.wall-likes-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #142034c7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wall-likes-modal {
  background: #1b2233;
  border-radius: 14px;
  box-shadow: 0 6px 38px #18234166;
  max-width: 420px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  animation: popup-in .22s;
}
@keyframes popup-in {
  0% { transform: scale(.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.wall-likes-modal-header {
  padding: 14px 22px 8px 22px;
  border-bottom: 1px solid #233048;
  font-weight: 700;
  color: #21aaff;
  font-size: 1.19rem;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wall-likes-modal-close {
  background: none;
  border: none;
  color: #d0e8ff;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .15s;
  margin-left: 12px;
}
.wall-likes-modal-close:hover {
  color: #ffa600;
}
.wall-likes-modal-list {
  max-height: 350px;
  overflow-y: auto;
  background: #162040;
  padding: 7px 0;
}
.wall-likes-modal-user {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 24px 9px 22px;
  cursor: pointer;
  border-bottom: 1px solid #243254;
  transition: background .13s;
}
.wall-likes-modal-user:last-child {
  border-bottom: none;
}
.wall-likes-modal-user:hover {
  background: #1c2c4e;
}
.wall-likes-modal-user-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 2px solid #21aaff;
  object-fit: cover;
  background: #eee;
}
.wall-likes-modal-user-name {
  font-size: 1.08em;
  color: #e7f6ff;
  font-weight: 600;
  text-decoration: none;
}

.wall-feed-actions {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.wall-like-btn, .wall-comments-link {
  background: none !important;
  box-shadow: none !important;
  margin: 0 6px 0 0;
  padding: 2px 7px;
  font-size: 1.09em;
}
.wall-action-text {
  margin-left: 4px;
  font-size: 1.03em;
  color: #19a8ff;
}
.wall-like-btn {
  display: flex;
  align-items: center;
  background: #1a2336;
  border-radius: 8px;
  color: #ffbe33;
  border: 1.6px solid #232f47;
  padding: 3px 8px 3px 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.13em;
  gap: 6px;
}
.like-count {
  color: #ffbe33 !important;
  font-size: 1.08rem;
  font-weight: 700;
  margin-left: 3px;
  cursor: pointer;
  user-select: none;
  /* Dropup ska visas på parent, så ingen overflow:hidden! */
  position: relative;
}
.wall-like-btn svg {
  display: inline-block;
  vertical-align: middle;
}

.wall-comment-like-btn {
  display: flex;
  align-items: center;
  background: #121c2d;
  border-radius: 7px;
  color: #ffbe33;
  border: 1.2px solid #232f47;
  padding: 3px 7px 3px 7px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.11em;
  gap: 3px;
}
.comment-like-count {
  color: #ffbe33 !important;
  font-size: 1.01em;
  font-weight: 700;
  margin-left: 2px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.wall-comment-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  background: #232e47;
  border-radius: 7px;
  padding: 5px 8px 5px 10px;
}
.wall-comment-input {
  width: 100%;
  min-height: 38px;
  max-height: 120px;
  border-radius: 7px;
  background: #232e47;
  color: #e4eaff;
  border: 1.2px solid #2d3748;
  padding: 7px 12px;
  font-size: 1.01em;
  margin-bottom: 0;
  margin-top: 2px;
  line-height: 1.27;
  box-sizing: border-box;
  overflow-y: auto;
  outline: none;
  transition: border .12s;
  flex: 1 1 0%;
  resize: none;
}
.wall-comment-send-btn {
  background: #121c2d;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: #13caff;
  cursor: pointer;
  transition: background 0.14s;
  position: relative;
  padding: 0;
}
.wall-comment-send-btn svg {
  width: 25px;
  height: 25px;
  display: block;
  stroke: #13caff;
}
.wall-comment-send-btn:hover {
  background: #1a293d;
}

.wall-comment-input-row-flex {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  background: #232e47;
  border-radius: 7px;
  padding: 0;
}

.wall-comment-input-row-flex textarea.wall-comment-input {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  border-radius: 7px 0 0 7px;
  background: #232e47;
  color: #e4eaff;
  border: 1.2px solid #2d3748;
  padding: 7px 12px 7px 12px;
  font-size: 1.06em;
  margin: 0;
  line-height: 1.27;
  box-sizing: border-box;
  overflow-y: auto;
  outline: none;
  transition: border .12s;
  flex: 1 1 0%;
  resize: none;
  /* Rätt padding för att inte gå in i knappen */
  padding-right: 50px;
}

.wall-comment-input-row-flex .wall-comment-send-btn {
  background: #121c2d;
  border: none;
  border-radius: 20px 20px 20px 20px;
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #13caff;
  cursor: pointer;
  transition: background 0.14s;
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 0;
  margin: 0;
  padding: 0;
  z-index: 3;
}
.wall-comment-input-row-flex .wall-comment-send-btn svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: #13caff;
}
.wall-comment-send-btn:hover {
  background: #1a293d;
}

/* Visa alltid dropup ovanför SIFFRAN (centrerad) och INTE hela raden! */
.wall-like-btn,
.wall-comment-like-btn {
  position: relative !important; /* Så dropup placeras mot knappen! */
  overflow: visible !important;  /* INTE HIDDEN! */
}

.wall-main-comment-form-row {
  margin-bottom: 17px;
}

.wall-feed-actions-row,
.wall-feed-actions {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-top: 11px;
  margin-bottom: 5px;
  min-height: 36px;
}
.wall-like-btn,
.wall-comments-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 1.03rem;
  line-height: 1.07;
  color: #e0edff;
  cursor: pointer;
  padding: 2.5px 9px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.13s, color 0.13s;
}
.wall-like-btn svg,
.wall-comments-link svg {
  width: 20px !important;
  height: 20px !important;
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
  margin-bottom: 1.5px;
}
.like-count,
.comment-count {
  font-size: 1.03rem !important;
  line-height: 1.07;
  font-weight: 700;
  margin: 0 2px;
  color: #b2cfff;
  display: inline-block;
  vertical-align: middle;
}
.wall-like-btn .like-count { color: #ffbe33; }
.wall-comments-link .comment-count { color: #19a8ff; }
.wall-action-text {
  font-size: 1.03rem !important;
  line-height: 1.07;
  color: #19a8ff;
  font-weight: 600;
  margin-left: 1px;
  display: inline-block;
  vertical-align: middle;
}
.wall-feed-bubble,
.profile-wall-card,
.wall-comment-bubble,
.profile-wall-comment {
  position: relative;
}

.wall-likes-modal-bg {
  z-index: 10010 !important;
}

.wall-like-btn .like-count {
    color: #ffbe33 !important;
    font-weight: 700;
}
.wall-like-btn svg {
    stroke: #ffbe33 !important;
}
.wall-comments-link .comment-count,
.wall-comments-link .wall-action-text {
    color: #19a8ff !important;
    font-weight: 700;
}
.wall-comments-link svg {
    stroke: #19a8ff !important;
}

/* Dropup/modal styles för likes */
.wall-like-dropup {
    background: #202c44;
    border-radius: 13px;
    box-shadow: 0 4px 24px #02112244;
    padding: 9px 15px 10px 15px;
    border: 1.3px solid #20a4ff;
    color: #e7f6ff;
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.35;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    z-index: 120;
    position: absolute;
    min-width: 190px;
}
.wall-likes-modal-bg {
    position:fixed;left:0;top:0;width:100vw;height:100vh;background:rgba(0,0,0,0.6);z-index:10000;display:flex;align-items:center;justify-content:center;
}
.wall-likes-modal {
    background:#202c44;border-radius:16px;max-width:350px;width:96vw;padding:20px 12px 16px 16px;box-shadow:0 8px 32px #000b;
    color:#e7f6ff;position:relative;
}
.wall-likes-modal-header {
    font-size:1.13rem;font-weight:600;margin-bottom:17px;display:flex;align-items:center;justify-content:space-between;
}
.wall-likes-modal-close {
    background:none;border:none;color:#e7f6ff;font-size:1.9rem;cursor:pointer;line-height:1;outline:none;padding:0 9px 0 11px;
}
.wall-likes-modal-list {
    max-height:320px;overflow-y:auto;
}
.wall-likes-modal-user-avatar {width:28px;height:28px;border-radius:50%;border:2px solid #20a4ff;object-fit:cover;}
.wall-likes-modal-user-name {color:#21b1ff;font-weight:700;font-size:1.08rem;}

/* --- L/C-trådstreck för child-comments --- */
/* STRECK ÄR NU BORTTAGNA HELT */

.wall-child-comments {
  border-left: 0 !important;
}
.wall-child-comments .wall-comment-bubble::before,
.wall-child-comments .wall-comment-bubble::after {
  display: none !important;
  content: none !important;
  border: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}
.wall-child-comments .wall-comment-bubble:last-child::after {
  display: none !important;
}
.wall-comments-container > .wall-child-comments {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}