/* ==========================================================
   GRFTSH DASHBOARD — SEASONAL PROMOTIONS V1
   ========================================================== */

.dashboard-promotions {
  --promo-border:
    rgba(255,255,255,.10);

  --promo-muted:
    rgba(255,255,255,.56);

  --promo-pink:
    #df295f;
}


.dashboard-promotions-heading {
  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    20px;

  margin-bottom:
    24px;
}


.dashboard-promotions-heading h2 {
  margin:
    0;

  color:
    #fff;
}


.dashboard-promotions-heading p {
  max-width:
    760px;

  margin:
    8px 0 0;

  color:
    var(--promo-muted);

  line-height:
    1.55;
}


.dashboard-promotions-heading__actions {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    8px;

  flex-shrink:
    0;
}


.dashboard-promotions button {
  min-height:
    40px;

  padding:
    0 14px;

  border:
    1px solid rgba(255,255,255,.12);

  border-radius:
    9px;

  background:
    rgba(255,255,255,.04);

  color:
    #fff;

  font:
    inherit;

  font-size:
    .84rem;

  font-weight:
    730;

  cursor:
    pointer;
}


.dashboard-promotions button:hover {
  background:
    rgba(255,255,255,.075);
}


.dashboard-promotions button.is-primary {
  border-color:
    #d21f56;

  background:
    #d21f56;
}


.dashboard-promotions button.is-primary:hover {
  background:
    #e12962;
}


.dashboard-promotions button.is-danger {
  border-color:
    rgba(255,85,105,.32);

  color:
    #ff7889;

  background:
    rgba(255,85,105,.055);
}


.dashboard-promotions-status {
  margin-bottom:
    18px;

  padding:
    11px 13px;

  border:
    1px solid rgba(255,255,255,.09);

  border-radius:
    9px;

  background:
    rgba(255,255,255,.025);

  color:
    rgba(255,255,255,.75);

  font-size:
    .84rem;
}


.dashboard-promotions-status.is-error {
  border-color:
    rgba(255,82,103,.32);

  color:
    #ff8998;

  background:
    rgba(255,82,103,.055);
}


.dashboard-promotions-root {
  display:
    grid;

  gap:
    18px;
}


.dashboard-promo-list {
  display:
    grid;

  gap:
    10px;
}


.dashboard-promo-empty {
  padding:
    32px 20px;

  border:
    1px solid var(--promo-border);

  border-radius:
    13px;

  color:
    var(--promo-muted);

  text-align:
    center;
}


.dashboard-promo-item {
  display:
    grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap:
    18px;

  padding:
    18px;

  border:
    1px solid var(--promo-border);

  border-radius:
    13px;

  background:
    rgba(255,255,255,.018);
}


.dashboard-promo-item.is-current {
  border-color:
    rgba(223,41,95,.42);

  background:
    linear-gradient(
      135deg,
      rgba(223,41,95,.075),
      rgba(255,255,255,.018)
    );
}


.dashboard-promo-item__main {
  min-width:
    0;
}


.dashboard-promo-item__head {
  display:
    flex;

  flex-wrap:
    wrap;

  align-items:
    center;

  gap:
    8px;
}


.dashboard-promo-item__head h3 {
  margin:
    0;

  color:
    #fff;

  font-size:
    1rem;
}


.dashboard-promo-badge {
  display:
    inline-flex;

  align-items:
    center;

  min-height:
    24px;

  padding:
    0 8px;

  border:
    1px solid rgba(255,255,255,.12);

  border-radius:
    999px;

  background:
    rgba(255,255,255,.04);

  color:
    rgba(255,255,255,.64);

  font-size:
    .67rem;

  font-weight:
    800;

  letter-spacing:
    .04em;

  text-transform:
    uppercase;
}


.dashboard-promo-badge.is-active {
  border-color:
    rgba(223,41,95,.48);

  background:
    rgba(223,41,95,.12);

  color:
    #ff6f9a;
}


.dashboard-promo-badge.is-scheduled {
  color:
    #d9c47c;
}


.dashboard-promo-badge.is-expired,
.dashboard-promo-badge.is-disabled {
  opacity:
    .65;
}


.dashboard-promo-item__meta {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    6px 18px;

  margin-top:
    10px;

  color:
    var(--promo-muted);

  font-size:
    .78rem;

  line-height:
    1.45;
}


.dashboard-promo-item__code {
  margin-top:
    8px;

  color:
    rgba(255,255,255,.32);

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;

  font-size:
    .7rem;
}


.dashboard-promo-item__actions {
  display:
    flex;

  align-items:
    center;

  gap:
    7px;
}


.dashboard-promo-editor {
  padding:
    22px;

  border:
    1px solid rgba(223,41,95,.30);

  border-radius:
    15px;

  background:
    linear-gradient(
      145deg,
      rgba(223,41,95,.045),
      rgba(255,255,255,.018)
    );
}


.dashboard-promo-editor__title {
  margin:
    0 0 20px;

  color:
    #fff;

  font-size:
    1.12rem;
}


.dashboard-promo-grid {
  display:
    grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap:
    16px;
}


.dashboard-promo-field {
  min-width:
    0;

  display:
    grid;

  gap:
    7px;
}


.dashboard-promo-field.is-wide {
  grid-column:
    1 / -1;
}


.dashboard-promo-field > label,
.dashboard-promo-field__label {
  color:
    rgba(255,255,255,.74);

  font-size:
    .76rem;

  font-weight:
    760;
}


.dashboard-promo-field input,
.dashboard-promo-field select,
.dashboard-promo-field textarea {
  width:
    100%;

  min-height:
    42px;

  padding:
    10px 11px;

  border:
    1px solid rgba(255,255,255,.11);

  border-radius:
    9px;

  outline:
    none;

  background:
    rgba(0,0,0,.24);

  color:
    #fff;

  font:
    inherit;

  font-size:
    .84rem;
}


.dashboard-promo-field textarea {
  min-height:
    92px;

  resize:
    vertical;

  line-height:
    1.45;
}


.dashboard-promo-field input:focus,
.dashboard-promo-field select:focus,
.dashboard-promo-field textarea:focus {
  border-color:
    rgba(223,41,95,.62);
}


.dashboard-promo-help {
  color:
    rgba(255,255,255,.42);

  font-size:
    .72rem;

  line-height:
    1.45;
}


.dashboard-promo-switches {
  grid-column:
    1 / -1;

  display:
    grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap:
    9px;
}


.dashboard-promo-switch {
  min-height:
    46px;

  display:
    flex;

  align-items:
    center;

  gap:
    9px;

  padding:
    10px 12px;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius:
    9px;

  background:
    rgba(255,255,255,.018);

  color:
    rgba(255,255,255,.72);

  font-size:
    .79rem;

  cursor:
    pointer;
}


.dashboard-promo-switch input {
  width:
    17px;

  height:
    17px;

  flex:
    0 0 auto;

  accent-color:
    #d21f56;
}


.dashboard-promo-subsection {
  grid-column:
    1 / -1;

  margin-top:
    8px;

  padding-top:
    20px;

  border-top:
    1px solid rgba(255,255,255,.08);
}


.dashboard-promo-subsection__head h3 {
  margin:
    0;

  color:
    #fff;

  font-size:
    .96rem;
}


.dashboard-promo-subsection__head p {
  margin:
    6px 0 0;

  color:
    var(--promo-muted);

  font-size:
    .78rem;

  line-height:
    1.5;
}


.dashboard-promo-feature-list {
  display:
    grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap:
    9px;

  margin-top:
    15px;
}


.dashboard-promo-feature {
  overflow:
    hidden;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius:
    10px;

  background:
    rgba(255,255,255,.016);
}


.dashboard-promo-feature__toggle {
  display:
    flex;

  align-items:
    flex-start;

  gap:
    9px;

  padding:
    12px;

  cursor:
    pointer;
}


.dashboard-promo-feature__toggle input {
  width:
    17px;

  height:
    17px;

  flex:
    0 0 auto;

  margin-top:
    1px;

  accent-color:
    #d21f56;
}


.dashboard-promo-feature__identity {
  min-width:
    0;

  display:
    grid;

  gap:
    3px;
}


.dashboard-promo-feature__identity strong {
  color:
    #fff;

  font-size:
    .8rem;
}


.dashboard-promo-feature__identity small {
  color:
    rgba(255,255,255,.40);

  font-size:
    .68rem;

  overflow-wrap:
    anywhere;
}


.dashboard-promo-feature__config {
  padding:
    0 12px 12px;
}


.dashboard-promo-feature__config textarea {
  width:
    100%;

  min-height:
    72px;

  padding:
    9px;

  border:
    1px solid rgba(255,255,255,.10);

  border-radius:
    8px;

  background:
    rgba(0,0,0,.26);

  color:
    #fff;

  font:
    .72rem
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;

  resize:
    vertical;
}


.dashboard-promo-language-tabs {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    5px;

  margin-top:
    15px;
}


.dashboard-promo-language-tab {
  min-width:
    46px;
}


.dashboard-promo-language-tab.is-active {
  border-color:
    #d21f56;

  background:
    #d21f56;
}


.dashboard-promo-translation {
  display:
    grid;

  grid-template-columns:
    1fr;

  gap:
    13px;

  margin-top:
    14px;
}


.dashboard-promo-editor__actions {
  display:
    flex;

  justify-content:
    flex-end;

  gap:
    8px;

  margin-top:
    22px;
}


@media (max-width: 800px) {
  .dashboard-promotions-heading {
    flex-direction:
      column;
  }

  .dashboard-promotions-heading__actions {
    width:
      100%;
  }

  .dashboard-promotions-heading__actions button {
    flex:
      1 1 auto;
  }

  .dashboard-promo-grid,
  .dashboard-promo-switches,
  .dashboard-promo-feature-list {
    grid-template-columns:
      1fr;
  }

  .dashboard-promo-item {
    grid-template-columns:
      1fr;
  }

  .dashboard-promo-item__actions {
    justify-content:
      flex-start;
  }
}


@media (max-width: 520px) {
  .dashboard-promo-editor {
    padding:
      16px;
  }

  .dashboard-promo-editor__actions {
    display:
      grid;

    grid-template-columns:
      1fr;
  }

  .dashboard-promo-editor__actions button {
    width:
      100%;
  }
}
