.l2-mail-panel {
  padding: 6px 8px 10px;
  color: #c8c0b0;
  font-size: 11px;
  line-height: 1.35;
  box-sizing: border-box;
  max-width: 100%;
}

.l2-mail-separator {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  height: 0;
  overflow: hidden;
}

.l2-mail-panel__title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.l2-mail-unread {
  margin: 0;
  padding: 6px 0;
  color: #b8b0a0;
}

.l2-mail-compose-link-wrap {
  margin: 0;
  padding: 6px 0;
}

.l2-mail-compose-link {
  color: #8aa;
  font-size: 11px;
  text-decoration: underline;
}

.l2-mail-compose-link:hover {
  color: #fff;
}

.l2-mail-loading,
.l2-mail-empty {
  margin: 6px 0;
  color: #9a9284;
}

.l2-mail-list {
  display: block;
  max-width: 100%;
  box-sizing: border-box;
}

.l2-mail-item {
  padding: 6px 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.l2-mail-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 4px;
  font-size: 11px;
}

.l2-mail-item__icon {
  width: 13px;
  height: 13px;
  vertical-align: middle;
  object-fit: contain;
  flex: 0 0 auto;
}

.l2-mail-item__sender {
  color: #d4a24a;
  font-weight: 600;
}

.l2-mail-item__off {
  color: #c44;
  font-weight: 600;
}

.l2-mail-item__on {
  color: #6a6;
  font-weight: 600;
}

.l2-mail-item__time {
  color: #9a9284;
}

.l2-mail-item__text {
  margin: 0 0 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #ddd6c8;
}

.l2-mail-item__headline {
  margin: 0 0 4px;
  font-weight: 700;
  color: #ddd6c8;
  overflow-wrap: anywhere;
}

.l2-mail-item__intro {
  margin: 0 0 2px;
}

.l2-mail-item__rewards {
  margin: 0 0 4px;
  padding-left: 0;
  list-style: none;
}

.l2-mail-item__rewards li {
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
}

.l2-mail-item__rewards li::before {
  content: '- ';
}

.l2-mail-item__delete {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #8aa;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.l2-mail-item__actions {
  margin: 0;
  font-size: 11px;
}

.l2-mail-item__action-sep {
  display: inline-block;
  margin: 0 8px;
  color: #6f6f6f;
  text-decoration: none;
  user-select: none;
}

.l2-mail-item__action-link {
  color: #8aa;
  text-decoration: underline;
}

.l2-mail-item__action-link:hover {
  color: #fff;
}

.l2-mail-form {
  margin: 0;
  padding: 0;
}

.l2-mail-form__row {
  margin: 0 0 6px;
}

.l2-mail-form__label {
  margin: 0 0 2px;
  color: #b8b0a0;
}

.l2-mail-form__input,
.l2-mail-form__textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 6px;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
  color: #5a4632;
  caret-color: #5a4632;
  color-scheme: light;
  font: inherit;
  font-size: 11px;
  resize: vertical;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.l2-mail-form__input::placeholder,
.l2-mail-form__textarea::placeholder {
  color: #8a7a68;
  opacity: 1;
}

.l2-mail-form__input:focus,
.l2-mail-form__textarea:focus {
  outline: none;
  border-color: #777;
  box-shadow: none;
}

.l2-mail-form__textarea {
  min-height: 72px;
  max-height: 180px;
}

.l2-mail-form__input[readonly] {
  opacity: 0.85;
  background: #fff;
  color: #5a4632;
}

.l2-mail-form__submit {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #8aa;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.l2-mail-form__submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.l2-mail-success {
  margin: 6px 0;
  color: #b8b0a0;
}

.l2-mail-thread-entry {
  padding: 6px 0;
  margin: 0;
}

.l2-mail-thread-entry__head {
  margin: 0 0 2px;
  font-weight: 600;
  color: #9a9284;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.l2-mail-thread-entry__text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #fff;
}

.l2-mail-read-receipt {
  margin: 3px 0 0;
  font-size: 9px;
  line-height: 1.2;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.l2-mail-read-receipt.is-read {
  color: #82b47a;
}

.l2-mail-read-receipt.is-unread {
  color: #9a8e7d;
}

.l2-mail-thread-list {
  margin: 0;
  padding: 0;
}

.l2-page-mail .l2-player-identity,
.l2-page-mail-thread .l2-player-identity,
.l2-mail-panel__title .l2-player-identity {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  max-width: 100%;
  vertical-align: middle;
}

.l2-page-mail .l2-player-identity .l2-clan-emblem-inline,
.l2-page-mail-thread .l2-player-identity .l2-clan-emblem-inline,
.l2-mail-panel__title .l2-player-identity .l2-clan-emblem-inline {
  width: 14px;
  height: 14px;
  margin: 0;
  flex: 0 0 auto;
  vertical-align: middle;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  image-rendering: auto;
}

.l2-mail-item__delete:disabled {
  opacity: 0.5;
  cursor: default;
}

.l2-mail-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11px;
}

.l2-mail-pagination a,
.l2-mail-pagination span {
  color: #b8b0a0;
  text-decoration: none;
  min-width: 1.2em;
  text-align: center;
}

.l2-mail-pagination a:hover {
  color: #fff;
}

.l2-mail-pagination .is-current {
  color: #fff;
  font-weight: 700;
}

.l2-mail-pagination .is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.l2-mail-welcome {
  margin: 0 0 6px;
  color: #ddd6c8;
}

.l2-mail-welcome__title {
  margin: 0 0 6px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: #d4a24a;
}

.l2-mail-welcome__intro {
  margin: 0 0 4px;
  color: #ddd6c8;
}

.l2-mail-welcome__start {
  margin: 6px 0 6px;
  font-weight: 700;
  color: #e4c985;
}

.l2-mail-welcome__step {
  margin: 0 0 7px;
}

.l2-mail-welcome__step-label {
  margin: 0 0 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #b8b0a0;
}

.l2-mail-welcome__step-title {
  margin: 0 0 3px;
  font-weight: 700;
  color: #ddd6c8;
}

.l2-mail-welcome__step-title--buff {
  color: #8fbd73;
}

.l2-mail-welcome__step-title--teleport {
  color: #83a9c9;
}

.l2-mail-welcome__step-title--skills {
  color: #d9bb70;
}

.l2-mail-welcome__step-title--shots {
  color: #d79a62;
}

.l2-mail-welcome__step-text {
  margin: 0 0 4px;
  color: #ddd6c8;
}

.l2-mail-welcome__button {
  display: inline-block;
  margin: 4px 0 0;
  padding: 4px 10px;
  min-height: 24px;
  line-height: 16px;
  border: 1px solid #6b543f;
  border-radius: 3px;
  background: linear-gradient(180deg, #3a2f24 0%, #2a2118 100%);
  color: #e7d3a4;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}

.l2-mail-welcome__button:hover {
  background: linear-gradient(180deg, #4a3b2c 0%, #342820 100%);
  color: #f3e4bc;
}

.l2-mail-welcome__finish {
  margin: 8px 0 0;
}

.l2-mail-welcome__finish-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: #e4c985;
}

.l2-mail-welcome__finish-text {
  margin: 0 0 4px;
  color: #ddd6c8;
}


/* Starter quest unlock mail CTA */
.l2-mail-starter-quest__headline {
  color: #e4c57a;
}

.l2-mail-starter-quest__text {
  color: #d8d1c4;
}

.l2-mail-starter-quest__town {
  color: #b7c8d8;
}

.l2-mail-starter-quest__cta-wrap {
  margin: 7px 0 6px;
}

.l2-mail-starter-quest__cta {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid rgba(191, 150, 82, 0.72);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(91, 70, 35, 0.96), rgba(48, 35, 18, 0.96));
  color: #f0d995;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 2px rgba(0,0,0,0.4);
}

.l2-mail-starter-quest__cta:hover {
  color: #fff1bd;
}
