/* Alert enhancements — social proof, cancel buttons, available badges */

/* Social proof on PDP stock alert */
.alert-box__social-proof {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 6px 10px;
  font-size: 13px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  line-height: 1.3;
}
.alert-box__social-proof svg {
  flex-shrink: 0;
  color: #d97706;
}

/* Account page: alert cancel button */
.dw-alert-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.dw-alert-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  color: #6b7280;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
}
.dw-alert-cancel:hover {
  color: #ef4444;
  background: #fef2f2;
  border-color: #fecaca;
}

/* "Ya disponible" badge on alerts */
.dw-alert-available {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: #047857;
  font-weight: 500;
}
.dw-alert-available svg {
  flex-shrink: 0;
  color: #047857;
}
.dw-alert-available a {
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dw-alert-available a:hover {
  color: #047857;
}
.dw-alert-available a:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Fix alert item layout to include actions column */
.dw-alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dw-alert-info {
  flex: 1;
  min-width: 0;
}

.dw-alert-cancel:focus-visible {
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: -2px;
  color: #ef4444;
}

@media (prefers-reduced-motion: reduce) {
  .dw-alert-cancel { transition: none; }
}

@media (max-width: 640px) {
  .alert-box__social-proof {
    font-size: 12px;
    padding: 5px 8px;
  }
  .dw-alert-cancel {
    min-width: 44px;
    min-height: 44px;
  }
}
