/* GM notification bell — dark identity aligned with gm_nav_dropdown */
.gm-notifications-bell {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.gm-notifications-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(230, 82, 151, 0.45);
  border-radius: 999px;
  background: linear-gradient(145deg, #161616 0%, #0a0a0a 100%);
  color: #f5f5f5;
  cursor: pointer;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.gm-notifications-bell-btn:hover,
.gm-notifications-bell-btn[aria-expanded="true"] {
  border-color: #e65297;
  color: #f6d76b;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(230, 82, 151, 0.35),
    0 0 22px rgba(230, 82, 151, 0.18);
}

.gm-notifications-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e65297, #f6d76b);
  color: #111;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.15rem;
  border: 2px solid #0a0a0a;
}

.gm-notifications-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 1080;
  width: min(20rem, calc(100vw - 1.5rem));
  background: linear-gradient(165deg, #141414 0%, #0a0a0a 100%);
  border: 1px solid rgba(230, 82, 151, 0.35);
  border-radius: 14px;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(230, 82, 151, 0.08);
  overflow: hidden;
}

.gm-notifications-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #e65297, #f6d76b);
  opacity: 0.85;
  z-index: 1;
}

.gm-notifications-panel-header,
.gm-notifications-panel-footer {
  position: relative;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gm-notifications-panel-header strong {
  color: #f6d76b;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.gm-notifications-panel-header a,
.gm-notifications-panel-footer a {
  color: #00bcd4;
  text-decoration: none;
  font-size: 0.78rem;
}

.gm-notifications-panel-header a:hover,
.gm-notifications-panel-footer a:hover {
  color: #e65297;
}

.gm-notifications-panel-footer {
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gm-notifications-panel-body {
  position: relative;
  max-height: min(16rem, 50dvh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #e65297 rgba(255, 255, 255, 0.06);
}

.gm-notifications-panel-body::-webkit-scrollbar {
  width: 8px;
}

.gm-notifications-panel-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.gm-notifications-panel-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e65297 0%, #f6d76b 100%);
  border-radius: 999px;
}

.gm-notifications-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: #f3f4f6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s, color 0.15s;
}

.gm-notifications-item:last-child {
  border-bottom: 0;
}

.gm-notifications-item:hover {
  background: rgba(230, 82, 151, 0.14);
  color: #f6d76b;
}

.gm-notifications-item-emoji {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.gm-notifications-item-content {
  flex: 1;
  min-width: 0;
}

.gm-notifications-item-title {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
}

.gm-notifications-item-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #b0b0b0;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gm-notifications-item:hover .gm-notifications-item-sub {
  color: rgba(246, 215, 107, 0.85);
}

.gm-notifications-item-badge {
  flex-shrink: 0;
  align-self: flex-start;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
  background: linear-gradient(135deg, #e65297, #f6d76b);
  color: #111;
  border-radius: 999px;
}

.gm-notifications-empty {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.8125rem;
  color: #b0b0b0;
}

.gm-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.gm-header-account-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

body.portal-theme-grafica .portal-header .gm-header-actions {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

body.portal-theme-grafica .portal-header .gm-quick-actions {
  margin-bottom: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

body.portal-theme-grafica .portal-header .gm-notifications-bell-btn {
  border-color: rgba(230, 82, 151, 0.55);
  color: var(--gm-magenta, #e65297);
}

body.portal-theme-grafica .portal-header .gm-notifications-bell-btn:hover,
body.portal-theme-grafica .portal-header .gm-notifications-bell-btn[aria-expanded="true"] {
  border-color: var(--gm-magenta, #e65297);
  color: var(--gm-magenta, #e65297);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(230, 82, 151, 0.4),
    0 0 22px rgba(230, 82, 151, 0.28);
}

@media (max-width: 639.98px) {
  .gm-header-actions {
    flex-wrap: nowrap;
  }

  body.portal-theme-grafica .portal-header .head-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  body.portal-theme-grafica .portal-header .head-inner > .d-flex:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 575.98px) {
  .gm-notifications-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 3.35rem);
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    width: auto;
    max-height: min(78dvh, 32rem);
  }

  .gm-notifications-panel-body {
    max-height: min(22rem, 55dvh);
  }

  .gm-notifications-bell-btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .gm-notifications-bell-icon {
    width: 20px;
    height: 20px;
  }

  .gm-notifications-item-emoji {
    font-size: 0.85rem;
  }

  .gm-notifications-item-title {
    font-size: 0.8125rem;
  }

  .gm-notifications-item-sub {
    font-size: 0.72rem;
  }
}

.gm-notifications-empty-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #888;
}

.gm-notifications-item--unread {
  position: relative;
}

.gm-notifications-item-dot {
  position: absolute;
  left: 0.35rem;
  top: 0.85rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #e65297;
  box-shadow: 0 0 6px rgba(230, 82, 151, 0.6);
}

.gm-notifications-item-time {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: #888;
}

.gm-notifications-item-cta {
  flex-shrink: 0;
  align-self: center;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(230, 82, 151, 0.25), rgba(246, 215, 107, 0.2));
  border: 1px solid rgba(230, 82, 151, 0.45);
  color: #f6d76b;
}

.gm-notification-focus-banner {
  border: 1px solid rgba(230, 82, 151, 0.45);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(230, 82, 151, 0.12), rgba(246, 215, 107, 0.08));
  padding: 0.85rem 1rem;
}

.gm-notification-focus-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
}

.gm-notification-focus-banner-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.gm-notification-focus-banner-body {
  flex: 1;
  min-width: 0;
}

.gm-notification-focus-banner-title {
  display: block;
  color: #e65297;
}

.gm-notification-focus-banner-text {
  font-size: 0.875rem;
  color: #555;
}

.gm-notification-focus-banner-cta {
  background: linear-gradient(135deg, #e65297, #f6d76b);
  border: none;
  color: #111;
  font-weight: 700;
}

.gm-notification-focus-target {
  outline: 2px solid rgba(230, 82, 151, 0.55);
  outline-offset: 4px;
  border-radius: 8px;
}

.gm-pedido-row-highlight {
  box-shadow: inset 0 0 0 2px rgba(230, 82, 151, 0.45);
}

.gm-mis-pedidos-highlight-banner {
  border-left: 4px solid #e65297;
}
