.driver-profile-notifications {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #e1e4e7;
  border-radius: 14px;
  color: #17191c;
  background: #fff;
  font-family: inherit;
  text-align: left;
}

.driver-profile-notifications > i:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px;
  color: #075eb8;
  background: #eaf4ff;
  font-size: 15px;
}

.driver-profile-notifications > span {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.driver-profile-notifications strong { font-size: 13px; font-weight: 950; }
.driver-profile-notifications small { color: #777e88; font-size: 10px; font-weight: 650; }
.driver-profile-notifications > i:last-child { color: #838994; }

.driver-profile-notifications > b {
  display: grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #e84b0f;
  font-size: 10px;
  font-weight: 950;
}

.driver-profile-notifications > b.hidden { display: none !important; }

body.driver-campaign-open { overflow: hidden; }

.driver-campaign-notifications {
  position: fixed;
  z-index: 2400;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
}

.driver-campaign-notifications.hidden { display: none !important; }

.driver-campaign-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(7, 10, 14, .68);
  backdrop-filter: blur(4px);
}

.driver-campaign-sheet {
  position: relative;
  display: flex;
  width: min(100%, 560px);
  max-height: min(91dvh, 840px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 26px 26px 0 0;
  background: #f7f8fa;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .3);
  animation: driverCampaignEnter .2s ease-out both;
}

.driver-campaign-sheet > header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 13px;
  color: #fff;
  background: linear-gradient(135deg, #17191d, #292d34);
}

.driver-campaign-sheet > header > div { display: grid; gap: 2px; }
.driver-campaign-sheet > header small { color: #ff8a3c; font-size: 9px; font-weight: 950; letter-spacing: .12em; }
.driver-campaign-sheet > header h2 { margin: 0; font-size: 21px; font-weight: 950; letter-spacing: -.04em; }

.driver-campaign-sheet > header > button,
.driver-campaign-list-toolbar > button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: inherit;
  background: rgba(255, 255, 255, .12);
  font-size: 16px;
}

#driver-campaign-list-view,
.driver-campaign-detail {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

#driver-campaign-list-view.hidden,
.driver-campaign-detail.hidden { display: none !important; }

.driver-campaign-list-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
}

.driver-campaign-list-toolbar p {
  flex: 1;
  margin: 0;
  color: #666d77;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.driver-campaign-list-toolbar > button {
  color: #4e5660;
  background: #e7e9ed;
}

.driver-campaign-list {
  display: grid;
  gap: 8px;
  padding: 5px 12px max(18px, env(safe-area-inset-bottom));
}

.driver-campaign-load-more {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d9dde2;
  border-radius: 14px;
  color: #424a54;
  background: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
}

.driver-campaign-load-more:disabled { cursor: wait; opacity: .65; }

.driver-campaign-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 76px;
  padding: 11px;
  border: 1px solid #e1e4e8;
  border-radius: 17px;
  color: #22262b;
  background: #fff;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 4px 15px rgba(21, 26, 32, .05);
}

.driver-campaign-item.is-unread {
  border-color: #ffb17e;
  background: #fff9f5;
  box-shadow: 0 5px 18px rgba(231, 89, 0, .1);
}

.driver-campaign-item-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: #0c65bd;
  background: #eaf4ff;
  font-size: 16px;
}

.driver-campaign-item.is-unread .driver-campaign-item-icon {
  color: #e75b00;
  background: #ffeadc;
}

.driver-campaign-item-copy { display: grid; min-width: 0; gap: 3px; }
.driver-campaign-item-copy small { overflow: hidden; color: #818791; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.driver-campaign-item-copy strong { overflow: hidden; color: #202328; font-size: 13px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.driver-campaign-item-copy span { display: -webkit-box; overflow: hidden; color: #656c75; font-size: 10px; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.driver-campaign-item > .bi-chevron-right { color: #9aa0a8; font-size: 12px; }

.driver-campaign-new {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f35c00;
  box-shadow: 0 0 0 4px rgba(243, 92, 0, .12);
}

.driver-campaign-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 25px;
  color: #737a84;
  text-align: center;
}

.driver-campaign-state > i { color: #ff6500; font-size: 28px; }
.driver-campaign-state strong { color: #282c31; font-size: 15px; }
.driver-campaign-state span { max-width: 310px; font-size: 11px; font-weight: 650; line-height: 1.45; }
.driver-campaign-state.is-error > i { color: #c53b31; }

.driver-campaign-state > button,
.driver-campaign-back,
.driver-campaign-cta {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
}

.driver-campaign-state > button { padding: 0 17px; color: #fff; background: #24282e; }

.driver-campaign-detail {
  display: block;
  padding: 14px 15px max(22px, env(safe-area-inset-bottom));
}

.driver-campaign-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  padding: 0 13px;
  color: #4d555f;
  background: #e9ebee;
}

.driver-campaign-kind {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #a54708;
  background: #fff0e6;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.driver-campaign-kind.is-operational { color: #075fae; background: #e7f3ff; }
.driver-campaign-detail h3 { margin: 10px 0 5px; color: #202328; font-size: clamp(22px, 7vw, 29px); font-weight: 950; line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }

.driver-campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 0 0 14px;
  color: #767d86;
  font-size: 10px;
}

.driver-campaign-meta strong { color: #3a4047; }

.driver-campaign-media {
  display: block;
  width: 100%;
  max-height: 45dvh;
  margin: 0 0 14px;
  object-fit: contain;
  border-radius: 18px;
  background: #13161a;
  box-shadow: 0 7px 24px rgba(17, 21, 26, .14);
}

.driver-campaign-message {
  padding: 15px;
  border: 1px solid #e1e4e8;
  border-radius: 17px;
  color: #363b42;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.62;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.driver-campaign-cta {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
  padding: 0 17px;
  color: #fff;
  background: linear-gradient(135deg, #ff6500, #e84b0f);
  box-shadow: 0 9px 22px rgba(232, 75, 15, .25);
}

@keyframes driverCampaignEnter {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 700px) {
  .driver-campaign-notifications { align-items: center; padding: 20px; }
  .driver-campaign-sheet { border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .driver-campaign-sheet { animation: none; }
}
