:root {
  --radius: 16px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-6: 28px;
  --space-8: 40px;

  --sidebar-w: 252px;
  --navbar-h: 200px; /* adjust if your layout has a fixed navbar */
}

/* --- Layout --- */
.two-col {
  width: 1280px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-3);
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: var(--space-6);
  min-height: calc(100dvh - var(--navbar-h));
}

.path-container {
  margin-top: 200px;
  width: 1280px;
  display: flex;
  justify-self: center;
}

.path {
  font-family: var(--fontFamily-dm_sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: #999999;
}

.sidebar {
  position: sticky;
  top: calc(var(--navbar-h) + var(--space-3));
  align-self: start;
  background: transparent;
  border-right: 1px solid var(--grey-15);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.sidebar-item {
  padding-bottom: 16px;
  font-size: 18px;
  line-height: 18px;
  font-weight: 400;
}

.sidebar-header {
  font-family: var(--fontFamily-dm_sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 18px;
  color: var(--grey-80);
}

.sidebar-mobile-header,
.sidebar-mobile-separator {
  display: none;
}

.tab-btn {
  appearance: none;
  background: transparent;
  text-align: left;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
}

.logout {
  display: flex;
  justify-content: center;
  align-items: center;
  height: fit-content;
  width: 100%;
  padding: 16px 12px;
  border: 1px solid var(--grey-95);
  font-family: var(--fontFamily-dm_sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  color: var(--grey-90);
  gap: 12px;
  margin-top: 16px;
}

.logout:hover {
  border: 1px solid var(--accent-01);
  background-color: var(--grey-20);
  font-weight: 400;
}

.button-left {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0.5px;
  color: var(--grey-80);
}

.tab-btn:hover {
  background: var(--grey-15);
  border: 1px solid var(--grey-30);
}

.tab-btn:active {
  transform: translateY(1px);
}

.tab-btn[aria-selected="true"],
.tab-btn.active {
  background: var(--grey-15);
  border: 1px solid var(--accent-01);
}

.content {
  background: transparent;
  padding: 0 24px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel[hidden] {
  display: none !important; /* visually hidden when not active */
}

.panel-title {
  margin: 0 0 var(--space-3);
  font-family: var(--fontFamily-forum);
  font-size: 40px;
  line-height: 48px;
  font-weight: 400;
}

.panel-title.promocode {
  display: flex;
  gap: 24px;
}

/* Cards example */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.card h3 {
  margin: 0 0 8px;
}

.card .price {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 8px;
}

/* Content form */
.contact-form .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.primary:hover {
  filter: brightness(1.05);
}

/*.profile-view{*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 24px;*/
/*}*/

.data-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 36px 24px;
  border: 1px solid var(--grey-20);
}

.data-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.icon-container {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--accent-01);
  border-radius: 50%;
  flex-shrink: 0;
}

.text-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-header {
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
  color: var(--grey-80);
  font-family: "Roboto";
}

.text-content {
  font-family: "Roboto";
  font-weight: 600;
  font-size: 16px;
  line-height: 18px;
  color: var(--accent-01);
}

.text-content.res {
  font-weight: 600;
  font-size: 14px;
  line-height: 14px;
}

.text-content.delete {
  color: var(--grey-80);
}

.profile-button {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--grey-90);
  width: 180px;
  height: 48px;
  gap: 8px;
  border: 1px solid var(--grey-30);
}

.profile-button-icon {
  filter: var(--filter-white);
}

.profile-button.delete {
  color: #e53935;
  border: 1px solid #e53935;
}

.profile-button-icon.delete {
  filter: var(--filter-red);
}

.profile-button.delete:hover {
  background: #e53935;
  color: #f2f2f2;
}

.profile-button.delete:hover .profile-button-icon.delete {
  filter: var(--filter-white);
}

.profile-button:hover {
  background: var(--grey-15);
}

.delete-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.delete-modal-content {
  background: #111;
  padding: 48px 56px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: var(--grey-10);
  border: 1px solid var(--grey-30);
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-family: var(--fontFamily-forum);
  font-weight: 400;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
}

.modal-text {
  font-family: var(--fontFamily-dm_sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.modal-buttons {
  display: flex;
  gap: 32px;
  width: 100%;
}

.modal-button {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--grey-95);
  width: 210px;
  height: 48px;
  gap: 8px;
  border: 1px solid var(--grey-75);
  font-family: var(--fontFamily-dm_sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 14px;
}

.modal-button.delete {
  background-color: #e53935;
  border: 1px solid #e53935;
}

.profile-edit {
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.main-input {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* two equal columns */
  gap: 24px; /* spacing between items */
}

.single-input {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.profile-label {
  font-family: var(--fontFamily-dm_sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 14px;
  color: var(--grey-80);
}

.input-field.profile {
  margin-bottom: 0;
}

.profile-edit-status {
  margin: 0;
  color: var(--grey-80);
  font-family: var(--fontFamily-dm_sans);
  font-size: 14px;
  line-height: 20px;
}

.profile-edit-status:empty {
  display: none;
}

.profile-edit-status.is-error {
  color: #ff8a8a;
}

.profile-edit-status.is-success {
  color: var(--accent-01);
}

.profile-edit-head {
  font-family: var(--fontFamily-forum);
  font-weight: 400;
  font-size: 40px;
  line-height: 48px;
}

.edit-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  justify-content: center;
}

.main-input {
  width: 100%;
}

.form-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.profile-edit-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  height: 48px;

  font-family: var(--fontFamily-dm_sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
}

.profile-edit-button.secondary {
  color: var(--grey-95);
  border: 1px solid var(--grey-90);
}

.profile-edit-button.primary {
  color: var(--grey-05);
  background-color: var(--accent-01);
  border: 1px solid var(--accent-01);
}

/*RESERVATIONS*/

.res-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--grey-20);
  transition:
    border-color 200ms ease,
    background-color 200ms ease;
}

.res-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.res-top-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
}

.res-top-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  width: 60%;
}

.res-top-right {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.res-bottom {
  display: flex;
  gap: 32px;
  justify-content: flex-start;
  align-items: center;
}

.res-info-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vertical-separator {
  width: 1px;
  height: 88px;
  background-color: var(--grey-15);
}

.horizontal-separator {
  width: 100%;
  height: 1px;
  background-color: var(--grey-15);
}

.content-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.res-head {
  font-size: 14px;
  line-height: 14px;
  font-weight: 400;
  font-family: var(--fontFamily-dm_sans);
  color: var(--grey-80);
}

.res-content {
  font-family: var(--fontFamily-roboto);
  font-weight: 600;
  font-size: 14px;
  line-height: 14px;
  color: white;
}

.res-photo {
  width: 88px;
  height: 88px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden; /* keeps overlay clipped */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  flex-shrink: 0;
}

.res-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  pointer-events: none;
  z-index: 0; /* overlay below text */
}

.res-photo-text {
  position: relative;
  z-index: 1; /* text above overlay */

  font-family: var(--fontFamily-roboto);
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.res-status {
  height: fit-content;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 4px;
  font-family: var(--fontFamily-dm_sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.res-status.waiting,
.res-status.status-new {
  background-color: #372e1f;
  color: #facc15;
}

.res-status.approved,
.res-status.status-approved {
  background-color: #063a34;
  color: #2dd4bf;
}

.res-status.status-redacted {
  background-color: #342a44;
  color: #c4a2ff;
}

.res-status.status-arrived {
  background-color: #18345a;
  color: #7cc7ff;
}

.res-status.status-seated {
  background-color: #12343a;
  color: #67e8f9;
}

.res-status.status-served {
  background-color: #2f3320;
  color: #c8e66b;
}

.res-status.status-completed {
  background-color: #12351f;
  color: #4ade80;
}

.res-status.status-declined {
  background-color: #3f1717;
  color: #fca5a5;
}

.res-status.status-no-show {
  background-color: #422006;
  color: #fdba74;
}

.res-status.status-blocked {
  background-color: #2a2a2a;
  color: #d4d4d4;
}

.res-status.status-unknown {
  background-color: var(--grey-15);
  color: var(--grey-80);
}

/* ─── Reservation expand/collapse ─────────────────────────────── */

/* Make the arrow rotate smoothly */
.res-icon {
  width: 40px;
  height: 40px;
  transform: rotate(90deg);
  transition: transform 240ms ease;
}

/* When active, rotate to point up/left (looks like "collapse") */
.res-container.active .res-icon {
  transform: rotate(270deg);
}

.res-icon.desktop {
  display: block;
}

.res-icon.mobile {
  display: none;
}

/* A wrapper we’ll add via JS around the separator + .res-bottom */
.res-collapsible {
  overflow: hidden;
  max-height: 0; /* collapsed state */
  opacity: 0;
  transition:
    max-height 340ms ease,
    opacity 220ms ease;
  will-change: max-height, opacity;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ─── PromoCode TAB ─────────────────────────────── */

.promo-top-left {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.promo-main-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-status {
  width: fit-content;
  height: fit-content;
  padding: 8px;
  border: 1px solid var(--grey-50);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--fontFamily-dm_sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 14px;
}

.promo-expiry {
  display: flex;
  gap: 4px;
}

.promo-status.approved {
  color: #a9fd8d;
}

.promo-status.expired {
  color: #ff8574;
}

.promo-top-right-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.top-right-code {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.promo-top-right {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.promo-code {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  height: fit-content;
  padding: 12px 20px;
  background-color: var(--grey-15);
  border: 2px solid var(--grey-75);
  color: var(--accent-01);
  font-family: var(--fontFamily-dm_sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 22px;
}

.copy-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.promo-dropdown {
  position: relative; /* anchor for the absolute menu */
  display: inline-block;
  z-index: 20; /* above surrounding content */
}

.promo-dropdown-main {
  height: 40px;
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  padding: 0 12px;
  border: 1px solid var(--grey-20);
  background-color: #181818;
  cursor: pointer;

  font-family: var(--fontFamily-dm_sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;

  position: relative; /* for focus ring */
}

.promo-dropdown-main:focus-visible {
  outline: 2px solid var(--accent-01);
  outline-offset: 2px;
}

.promo-dropdown-icon {
  transition: transform 160ms ease;
  transform: rotate(90deg);
}

.promo-dropdown.open .promo-dropdown-icon {
  transform: rotate(270deg);
}

/* The menu overlays other content */
.promo-dropdown-container {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;

  width: 148px; /* a bit wider for labels */
  padding: 12px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  background-color: var(--grey-10);
  border: 1px solid var(--grey-15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  z-index: 999; /* on top of cards */

  /* animation in */
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.promo-dropdown.open .promo-dropdown-container {
  opacity: 1;
  transform: translateY(0);
}

.promo-choice {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 6px;
  cursor: pointer;

  font-family: var(--fontFamily-dm_sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  color: var(--grey-90);
}

.promo-choice[aria-checked="true"] {
  font-weight: 700;
  text-decoration: underline;
}

.promo-choice:hover,
.promo-choice:focus-visible {
  background: var(--grey-15);
  outline: none;
}

.promo-choice-separator {
  width: 100%;
  height: 1px;
  background-color: var(--grey-20);
}

.promo-card[hidden] {
  display: none !important;
}

.promo-dropdown-label {
  color: var(--grey-90);
}

/* ─── Settings TAB ─────────────────────────────── */

.orders-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.order-container {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 32px 24px;
  border: 1px solid var(--grey-20);
}

.order-left {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

/* Make the circle the positioning context */
.icon-container {
  position: relative;
  overflow: visible; /* allow badge to sit outside */
}

/* REPLACE your .order-num rule with this */
.order-num {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%); /* half outside top & right */
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-01);
  color: var(--grey-10);
  flex-shrink: 0;

  font-family: var(--fontFamily-dm_sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 10px;
}

.order-item {
  width: 40px;
  height: 40px;
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-photos {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}

.more-photos {
  text-decoration: underline;
}

.res-icon.order {
  transform: rotate(0deg);
}

.order-details {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.order-back {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--grey-20);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.order-back-icon {
  width: 40px;
  height: 40px;
  rotate: 180deg;
}

.order-detail-head {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: flex-end;
}

.order-name-heading {
  font-family: var(--fontFamily-forum);
  font-weight: 400;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 1px;
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: flex-end;
}

.number {
  font-family: var(--fontFamily-dm_sans);
  font-weight: 400;
  font-size: 32px;
  line-height: 48px;
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: flex-end;
}

.order-detail-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: fit-content;
  height: fit-content;
  padding: 10px 8px;
  background-color: var(--grey-15);
  border: 1px solid var(--grey-30);
  border-radius: 8px;
  color: var(--grey-80);

  font-family: var(--fontFamily-dm_sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 12px;
}

.restaurant-icon {
  width: 20px;
  height: 20px;
  filter: var(--filter-accent-01);
}

/* ─── Settings TAB ─────────────────────────────── */

.news-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkbox {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.panel.news {
  gap: 32px;
}

.checkbox-label {
  font-family: var(--fontFamily-dm_sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
}

.panel-back-icon {
  display: none;
}

.order-container.mobile {
  display: none;
}

.order-container.desktop {
  display: flex;
}

.empty-state {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  padding-top: 160px;
}

.empty-state[hidden] {
  display: none !important;
}

.empty-text {
  color: var(--grey-75);
  font-family: var(--fontFamily-dm_sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.empty-button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 28px;

  background-color: var(--accent-01);
  color: var(--grey-05);

  font-family: var(--fontFamily-dm_sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
}

.horizontal-separator-mobile {
  display: none;
}

/* Optional flavoring */
.flash-modal.flash-success .modal-title {
  color: #33c27f;
} /* green-ish */
.flash-modal.flash-error .modal-title {
  color: #ff6b6b;
} /* red-ish */

/* Optional: tint the action button per state (only affects the flash modal) */
/*.flash-modal.flash-success .modal-button {*/
/*    border-color: #33c27f;*/
/*}*/
/*.flash-modal.flash-error .modal-button {*/
/*    border-color: #ff6b6b;*/
/*}*/

@media (max-width: 1280px) {
  .path-container,
  .two-col {
    width: 1000px;
  }

  .content {
    padding: 0;
  }

  .res-top-left,
  .res-top-main,
  .res-top-right {
    gap: 16px;
  }

  .icon-container {
    display: none;
  }
}

@media (max-width: 1080px) {
  .path-container,
  .two-col {
    width: 100%;
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (max-width: 970px) {
  /* Normal page flow: header (navbar) → section → footer */
  .path-container {
    display: none;
  }

  /* One column layout in flow */
  #SIDEBAR-SECTIONS.two-col {
    display: block; /* no grid on mobile */
    width: 100%;
    margin: 200px 0 0 0;
    padding: 0 32px 24px; /* page gutters */
    min-height: auto; /* let content define height */
  }

  /* Sidebar behaves like a full-width menu IN FLOW */
  #SIDEBAR-SECTIONS .sidebar {
    position: static; /* no fixed */
    width: 100%;
    border-right: 0;
    background: transparent; /* let page bg show */
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Panels are also IN FLOW; only one of sidebar/content is visible at a time */
  #SIDEBAR-SECTIONS .content {
    position: static; /* no fixed */
    width: 100%;
    padding: 8px 0 0;
    display: none; /* hidden until a panel is opened */
  }

  /* Toggle which part is visible using the state class */
  #SIDEBAR-SECTIONS.is-panel-open .sidebar {
    display: none;
  }

  #SIDEBAR-SECTIONS.is-panel-open .content {
    display: block;
  }

  .sidebar-mobile-separator {
    display: flex;
    width: 100%;
    height: 1px;
    background-color: var(--grey-15);
  }

  .sidebar-mobile-header {
    display: flex;
    font-family: var(--fontFamily-forum);
    font-weight: 400;
    font-size: 28px;
    line-height: 28px;
    letter-spacing: 1px;
    margin-bottom: 20px;
  }

  .sidebar-header {
    margin-bottom: 20px;
  }

  .tab-btn.active {
    background: unset;
    border: none;
  }

  .tab-btn.active .sidebar-button-name {
    padding-bottom: 4px;
    border-bottom: 2px solid var(--accent-01);
  }

  .tab-btn.active .button-left {
    color: var(--grey-95);
  }

  /* Panel typography & back button */
  .panel {
    gap: 24px;
  }

  .panel-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 24px;
    line-height: 24px;
    margin: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--grey-15);
  }

  .panel-back-btn {
    appearance: none;
    border: 1px solid var(--grey-20);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
  }

  .panel-back-btn img {
    width: 24px;
    height: 24px;
    transform: rotate(180deg);
    filter: var(--filter-white);
  }
}

@media (max-width: 770px) {
  #SIDEBAR-SECTIONS.two-col {
    margin: 150px 0 0 0;
  }

  .data-container {
    flex-direction: column;
    padding: 20px;
    gap: 24px;
  }

  .icon-container.order {
    display: flex;
  }

  .data-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
  }

  .profile-button {
    width: 100%;
  }

  .profile-edit-head {
    font-size: 24px;
    line-height: 24px;
  }

  .main-input {
    display: flex;
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column;
    gap: 18px;
  }

  .order-back,
  .order-back-icon {
    width: 32px;
    height: 32px;
  }

  .profile-edit-button {
    width: 100%;
  }

  .edit-form {
    gap: 26px;
  }

  .profile-edit {
    gap: 32px;
  }

  .order-details {
    width: 100%;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--grey-15);
    flex-wrap: wrap;
  }

  .delete-modal-content {
    max-width: 90%;
    padding: 40px 32px;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .modal-button {
    width: 100%;
  }

  .order-container.desktop {
    display: none;
  }

  .order-container.mobile {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    gap: 24px;
  }

  .order-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .order-row-2 {
    width: 100%;
  }

  .order-row-3 {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .row-1-left {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .res-bottom.order {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    flex-direction: row;
  }

  .res-icon.desktop {
    display: none;
  }

  .res-icon.mobile {
    display: block;
  }

  .res-top-main {
    flex-direction: column;
    width: 100%;
  }

  .res-top-left {
    justify-content: space-between;
    width: 100%;
  }

  .res-top-right {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .res-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .vertical-separator {
    width: 100%;
    height: 1px;
  }

  .res-photo {
    width: 80px;
    height: 80px;
  }

  .horizontal-separator-mobile {
    display: flex;
    width: 100%;
    height: 1px;
    background-color: var(--grey-15);
  }

  .res-top {
    flex-direction: column;
    width: 100%;
    gap: 24px;
  }

  .promo-top-right-main {
    width: 100%;
  }

  .promo-top-left {
    width: 100%;
    justify-content: space-between;
  }

  .promo-top-right {
    width: 100%;
    justify-content: space-between;
    gap: 24px;
  }

  .top-right-code {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .promo-code {
    width: 100%;
  }

  .copy-icon {
    align-self: flex-end;
    margin-bottom: 12px;
  }

  .promo-dropdown,
  .promo-dropdown-main,
  .promo-dropdown-container {
    width: 100%;
  }

  .promo-dropdown-main {
    justify-content: center;
  }

  .panel-title.promocode {
    flex-wrap: wrap;
  }

  .promo-choice {
    align-self: flex-start;
  }
}

@media (max-width: 700px) {
  #SIDEBAR-SECTIONS.two-col {
    margin: 150px 0 0 0;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 500px) {
  #SIDEBAR-SECTIONS.two-col {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 3a) When the dropdown menu is hidden or the dropdown is closed,
      make sure it cannot intercept taps on iOS */
#promoFilter:not(.open) .promo-dropdown-container {
  pointer-events: none;
}

#promoFilter .promo-dropdown-container[hidden] {
  display: none !important;
  pointer-events: none !important;
}

/* 3b) If you adopted the class-based hiding in step 2 */
.promo-card.is-hidden {
  display: none !important;
}
