/* SPDX-License-Identifier: GPL-3.0-or-later */
/* SPDX-FileCopyrightText: Andy Holmes <andrew.g.r.holmes@gmail.com> */

/* For lists with a placeholder the last row is actually n-1 */
.boxed-list-placeholder > row:nth-last-child(2) {
  border-bottom: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}


/*
 * ValentPluginRow
 */
.plugin-row button.link {
  min-height: 0px;
  padding: 0px;
}


/*
 * ValentMediaRemote
 */
.valent-media-remote .valent-media-art {
  background: @card_shade_color;
}

.valent-media-art .fallback {
  padding: 24px;
  min-width: 48px;
  min-height: 48px;
}

.valent-mixer-row {
  padding: 6px 8px;
}

/*
 * ValentMessagesWindow
 */
.valent-contact-row,
.valent-message-row {
  padding: 6px 8px;
}

.valent-contact-row .dim-label,
.valent-message-row .dim-label {
  font-size: smaller;
}

.valent-contact-row .subtitle,
.valent-message-row .subtitle {
  font-size: smaller;
  opacity: 1.0;
}

.valent-message-row .unread {
  font-weight: bold;
}

.valent-conversation-page,
.valent-search-page,
.valent-contact-page {
  background-color: @view_bg_color;
}

/*
 * Contacts
 */
.valent-contact-page list {
  padding: 0px 6px;
}

.valent-contact-page .valent-contact-row {
  border-radius: 6px;
}

.valent-contact-row {
  padding: 6px 8px;
}

/*
 * ValentConversationPage
 */
.valent-conversation-page .date-marker {
  border-top: 1px solid @borders;
  font-size: x-small;
  font-weight: 550;
  margin: 1em 1em 0.5em;
  padding-top: 0.5em;
}

.valent-conversation-details .valent-contact-row {
  padding: 1em 0.875em;
}

.valent-conversation-page .valent-conversation-toolbar {
  padding: 6px;
}

/*
 * ValentConversationRow
 */
.valent-conversation-row .message-bubble {
  padding: 0.75em 1em;
  border-radius: 1.5em;
}

.valent-conversation-row .message-bubble *:link {
  color: inherit;
  text-decoration: underline;
}

.valent-conversation-row .message-footer {
  font-size: x-small;
}

.valent-message-inbox {
  padding: 6px 56px 6px 12px;
}

.valent-message-inbox .message-bubble {
  color: @theme_fg_color;
  background: alpha(@accent_color, 0.3);
}

.valent-message-outbox,
.valent-message-sent {
  padding: 6px 12px 6px 56px;
}

.valent-message-outbox .message-bubble,
.valent-message-sent .message-bubble {
  color: @sidebar_fg_color;
  background-color: @sidebar_bg_color;
}

.valent-message-outbox .message-bubble *:link,
.valent-message-sent .message-bubble *:link {
  color: inherit;
  text-decoration: underline;
}

.valent-message-outbox .message-bubble {
  opacity: 0.5;
}

/*
 * ValentMessageAttachment
 */
.attachment-list row {
  margin-bottom: 6px;
  padding: 0px;
}

.attachment-list image {
  border-radius: inherit;
}

