#notices-pane .admin-notice-scope {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 20px 0;
  padding: 14px 17px;
  border: 1px solid #dce8fa;
  border-radius: 15px;
  background: #f5f9ff;
}

#notices-pane .admin-notice-scope > span {
  color: #5c7398;
  font-size: 12px;
  font-weight: 800;
}

#notices-pane .admin-notice-scope > strong {
  color: #183c72;
  font-size: 14px;
}

#notices-pane .admin-notice-scope > small {
  margin-left: auto;
  color: #64748b;
  font-size: 11px;
}

#notices-pane .admin-notice-form {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid #e1e9f4;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f9fbff);
  box-shadow: 0 12px 30px rgba(26, 48, 86, .05);
}

#notices-pane .admin-notice-form-heading,
#notices-pane .admin-notice-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
}

#notices-pane .admin-notice-form-heading {
  margin-bottom: 8px;
}

#notices-pane .admin-notice-form-heading span,
#notices-pane .admin-notice-list-heading span {
  color: #4074c9;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

#notices-pane .admin-notice-form-heading h3,
#notices-pane .admin-notice-list-heading h3 {
  margin: 4px 0 0;
  color: #172746;
  font-size: 19px;
  letter-spacing: -.035em;
}

#notices-pane .admin-notice-form-heading p {
  max-width: 360px;
  margin: 0;
  color: #6b7b92;
  font-size: 12px;
  line-height: 1.5;
}

#notices-pane .admin-notice-form > label {
  color: #334760;
  font-size: 12px;
  font-weight: 800;
}

#notices-pane .admin-notice-form > input,
#notices-pane .admin-notice-form > textarea {
  width: 100%;
  margin: 0 0 7px;
  padding: 13px 14px;
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  background: #fff;
  color: #172746;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
}

#notices-pane .admin-notice-form > textarea {
  min-height: 150px;
  resize: vertical;
}

#notices-pane .admin-notice-form > :is(input, textarea):focus-visible {
  outline: 3px solid rgba(53, 109, 243, .2);
  border-color: #5a86e8;
}

#notices-pane .admin-notice-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

#notices-pane .admin-notice-form-actions .primary {
  width: auto;
  min-width: 158px;
  margin: 0;
}

#notices-pane .admin-notice-form-actions small {
  color: #728097;
  font-size: 11px;
  line-height: 1.5;
}

#notices-pane #admin-notice-message {
  min-height: 1.5em;
  margin: 12px 0 0;
}

#notices-pane .admin-notice-list-heading {
  margin: 25px 0 13px;
}

#notices-pane #admin-notice-count {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf3ff;
  color: #315fa8;
  font-size: 12px;
}

#notices-pane #admin-notice-count:empty {
  display: none;
}

#notices-pane .admin-notice-list {
  display: grid;
  gap: 12px;
}

#notices-pane .admin-notice-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed #d5e0ef;
  border-radius: 14px;
  background: #f8fafd;
  color: #6d7b90;
  font-size: 13px;
  text-align: center;
}

#notices-pane .admin-notice-item {
  overflow: hidden;
  border: 1px solid #e1e8f2;
  border-radius: 16px;
  background: #fff;
}

#notices-pane .admin-notice-item.is-inactive {
  background: #f8f9fb;
  opacity: .8;
}

#notices-pane .admin-notice-list-toggle,
#rider-notices-section .rider-notice-list-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 13px 18px;
  border: 0;
  background: transparent;
  color: #1c3555;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#notices-pane .admin-notice-list-toggle strong,
#rider-notices-section .rider-notice-list-toggle strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#notices-pane .admin-notice-list-toggle:hover,
#rider-notices-section .rider-notice-list-toggle:hover {
  background: #f2f7ff;
}

#notices-pane .admin-notice-list-toggle:focus-visible,
#rider-notices-section .rider-notice-list-toggle:focus-visible {
  outline: 3px solid #8bb8ff;
  outline-offset: -3px;
}

#notices-pane .admin-notice-list-trailing,
#rider-notices-section .rider-notice-list-trailing {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

#notices-pane .admin-notice-chevron,
#rider-notices-section .rider-notice-chevron {
  color: #7389a8;
  font-size: 19px;
  line-height: 1;
  transition: transform .15s ease;
}

#notices-pane .admin-notice-list-toggle[aria-expanded="true"] .admin-notice-chevron,
#rider-notices-section .rider-notice-list-toggle[aria-expanded="true"] .rider-notice-chevron {
  transform: rotate(180deg);
}

#notices-pane .admin-notice-detail {
  padding: 13px 18px 18px;
  border-top: 1px solid #edf0f5;
}

#notices-pane .admin-notice-detail[hidden],
#rider-notices-section .rider-notice-detail[hidden] {
  display: none !important;
}

#notices-pane .admin-notice-item-heading-meta {
  color: #718097;
  font-size: 11px;
  line-height: 1.6;
}

#notices-pane .admin-notice-pagination,
#rider-notices-section .rider-notices-pagination {
  margin-top: 16px;
}

#admin-notice-list,
#rider-notices-list {
  scroll-margin-top: 90px;
}

#notices-pane .admin-notice-pagination[hidden],
#rider-notices-section .rider-notices-pagination[hidden] {
  display: none !important;
}

#notices-pane .admin-notice-item-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 14px;
}

#notices-pane .admin-notice-item-heading h4 {
  margin: 0;
  color: #172746;
  font-size: 15px;
}

#notices-pane .admin-notice-item-heading small,
#notices-pane .admin-notice-item-meta {
  color: #718097;
  font-size: 11px;
}

#notices-pane .admin-notice-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f7ef;
  color: #147c55;
  font-size: 11px;
  font-weight: 850;
}

#notices-pane .admin-notice-item.is-inactive .admin-notice-status {
  background: #e9edf3;
  color: #66758b;
}

#notices-pane .admin-notice-item-body {
  margin: 12px 0;
  color: #34445b;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#notices-pane .admin-notice-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #edf0f5;
}

#notices-pane [data-notice-deactivate-id] {
  padding: 8px 12px;
  border: 1px solid #e5c8cb;
  border-radius: 9px;
  background: #fff7f7;
  color: #ad3a45;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

#notices-pane [data-notice-deactivate-id]:hover {
  background: #ffeded;
}

#notices-pane [data-notice-deactivate-id]:disabled {
  cursor: wait;
  opacity: .6;
}

#notices-pane .admin-notice-action-buttons,
#notices-pane .admin-notice-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#notices-pane .admin-notice-action-buttons button,
#notices-pane .admin-notice-edit-actions button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #d7e1ef;
  border-radius: 9px;
  background: #f7faff;
  color: #245aa6;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

#notices-pane .admin-notice-action-buttons [data-notice-delete-id] {
  border-color: #efcbd0;
  background: #fff6f7;
  color: #b52f42;
}

#notices-pane .admin-notice-action-buttons button:hover,
#notices-pane .admin-notice-edit-actions button:hover {
  filter: brightness(.97);
}

#notices-pane .admin-notice-action-buttons button:focus-visible,
#notices-pane .admin-notice-edit-actions button:focus-visible,
#notices-pane .admin-notice-edit-form :is(input, textarea):focus-visible {
  outline: 3px solid #8bb8ff;
  outline-offset: 2px;
}

#notices-pane .admin-notice-edit-form {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

#notices-pane .admin-notice-edit-form label {
  display: grid;
  gap: 6px;
  color: #34445b;
  font-size: 12px;
  font-weight: 800;
}

#notices-pane .admin-notice-edit-form :is(input, textarea) {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd8e9;
  border-radius: 9px;
  background: #fff;
  color: #172746;
  font: inherit;
  font-size: 13px;
}

#notices-pane .admin-notice-edit-form textarea {
  min-height: 110px;
  resize: vertical;
}

#notices-pane .admin-notice-edit-form small {
  color: #66758b;
  line-height: 1.5;
}

#notices-pane .admin-notice-edit-actions button:first-child {
  border-color: #285fc0;
  background: #285fc0;
  color: #fff;
}

#notices-pane .admin-notice-edit-actions button:disabled {
  cursor: wait;
  opacity: .55;
}

#rider > #rider-notices-section {
  order: 8;
  width: 100%;
  margin: 0 0 16px;
  padding: 23px;
  border: 1px solid #dce5f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 50, 89, .055);
}

#rider-notices-section .rider-notices-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid #e9eef5;
}

#rider-notices-section .rider-notices-heading > div > span {
  color: #4d76b5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

#rider-notices-section .rider-notices-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0 4px;
  color: #1d3556;
  font-size: 21px;
  letter-spacing: -.04em;
}

.rider-notice-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d93646;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rider-notice-unread-badge[hidden] {
  display: none !important;
}

.rider-mobile-quick-item[data-rider-mobile-view="notices"] > span:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.rider-mobile-quick-item .rider-notice-unread-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 10px;
}

#rider-notices-section .rider-notices-heading p {
  margin: 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.6;
}

#rider-notices-section .rider-notices-message {
  margin: 12px 0 0;
  color: #63758f;
  font-size: 12px;
  line-height: 1.6;
}

#rider-notices-section .rider-notices-message:empty {
  display: none;
}

#rider-notices-section .rider-notices-message.error {
  color: #b03b44;
}

#rider-notices-section .rider-notices-list {
  display: grid;
  gap: 11px;
  padding-top: 17px;
}

#rider-notices-section .rider-notice-list-empty {
  margin: 0;
  padding: 23px 15px;
  border: 1px dashed #d6e1ef;
  border-radius: 13px;
  background: #f8faff;
  color: #718096;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

#rider-notices-section .rider-notice-list-item {
  overflow: hidden;
  border: 1px solid #dfe8f4;
  border-radius: 15px;
  background: #fbfcff;
}

#rider-notices-section .rider-notice-detail {
  padding: 13px 17px 17px;
  border-top: 1px solid #e5ebf3;
}

#rider-notices-section .rider-notice-list-item.is-read {
  border-color: #e5eaf1;
  background: #fff;
}

#rider-notices-section .rider-notice-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px 13px;
}

#rider-notices-section .rider-notice-list-head strong {
  margin: 0;
  color: #1c3555;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#rider-notices-section .rider-notice-read-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7efff;
  color: #2b60b4;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

#rider-notices-section .rider-notice-list-item.is-read .rider-notice-read-status {
  background: #edf1f5;
  color: #68778c;
}

#rider-notices-section .rider-notice-list-meta {
  display: block;
  margin-top: 6px;
  color: #7a899d;
  font-size: 11px;
  line-height: 1.5;
}

#rider-notices-section .rider-notice-detail > p {
  margin: 12px 0 0;
  color: #3a4d65;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#rider-notices-section .rider-notice-list-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5ebf3;
}

#rider-notices-section .rider-notice-list-acknowledge {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #b8cdef;
  border-radius: 10px;
  background: #eaf2ff;
  color: #245799;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

#rider-notices-section .rider-notice-list-acknowledge:hover {
  border-color: #93b7ec;
  background: #dfeeff;
}

#rider-notices-section .rider-notice-list-acknowledge:focus-visible {
  outline: 3px solid rgba(53, 109, 243, .28);
  outline-offset: 3px;
}

#rider-notices-section .rider-notice-list-acknowledge:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 620px) {
  #notices-pane .admin-notice-scope > small {
    width: 100%;
    margin-left: 0;
  }

  #notices-pane .admin-notice-form {
    padding: 18px;
  }

  #notices-pane .admin-notice-form-actions .primary {
    width: 100%;
  }

  #rider > #rider-notices-section {
    min-height: 260px;
    padding: 18px;
    border-radius: 16px;
  }

  #rider-notices-section .rider-notices-heading h2 {
    font-size: 19px;
  }

  #rider-notices-section .rider-notice-list-item {
    border-radius: 13px;
  }

  #notices-pane .admin-notice-list-toggle,
  #rider-notices-section .rider-notice-list-toggle {
    min-height: 52px;
    padding: 12px 14px;
  }

  #rider-notices-section .rider-notice-detail {
    padding: 12px 14px 14px;
  }

  #rider-notices-section .rider-notice-list-acknowledge {
    width: 100%;
  }
}
