/* TraveliciousBites Push Notification Bell Widget */
#tb-push-bell-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
}

.tb-bell-button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c70c8 0%, #075eb5 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 18px rgba(7, 94, 181, 0.38), 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
  outline: none;
  position: relative;
  padding: 0;
}

.tb-bell-button:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(7, 94, 181, 0.48), 0 4px 8px rgba(0, 0, 0, 0.18);
  background: linear-gradient(135deg, #0d7de0 0%, #0654a3 100%);
}

.tb-bell-button:active {
  transform: scale(0.96) translateY(0);
}

.tb-bell-icon {
  width: 24px;
  height: 24px;
  fill: #ffbe27;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.tb-bell-button:hover .tb-bell-icon {
  transform: rotate(15deg);
}

.tb-bell-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: none;
}

.tb-bell-button.subscribed .tb-bell-badge {
  display: block;
}

.tb-bell-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(12, 112, 200, 0.6);
  animation: tb-pulse-ring 2.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

.tb-bell-button.subscribed .tb-bell-pulse {
  display: none;
}

@keyframes tb-pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Card Popover */
.tb-push-popover {
  position: absolute;
  bottom: 66px;
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  padding: 18px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.tb-push-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tb-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tb-popover-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tb-popover-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
}

.tb-popover-close:hover {
  color: #334155;
  background: #f1f5f9;
}

.tb-popover-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
  margin-bottom: 14px;
}

.tb-btn-primary {
  width: 100%;
  padding: 10px 14px;
  background: #075eb5;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.tb-btn-primary:hover {
  background: #064c92;
}

.tb-btn-primary:active {
  transform: scale(0.98);
}

.tb-btn-secondary {
  width: 100%;
  padding: 8px 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.tb-btn-secondary:hover {
  background: #e2e8f0;
}

.tb-btn-link {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  display: block;
  text-align: center;
  width: 100%;
  text-decoration: underline;
  padding: 2px;
}

.tb-btn-link:hover {
  color: #b91c1c;
}

.tb-toast {
  position: fixed;
  bottom: 86px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 1000000;
}

.tb-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  #tb-push-bell-widget {
    bottom: 20px;
    right: 20px;
  }
  .tb-push-popover {
    width: 280px;
    right: 0;
  }
}
