#app-popup.loyalty-popup-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  max-width: calc(100% - 40px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.4s ease;
  z-index: 999999;
  display: none;
  max-height: 650px;
  overflow-y: scroll;
}

#app-popup.loyalty-popup-wrapper.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.loyalty-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.loyalty-popup-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.loyalty-popup-wrapper .widget-header-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 40px 15px;
  color: #fff;
  position: relative;
  min-height: 200px;
}

.loyalty-popup-wrapper .widget-header-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.loyalty-popup-wrapper .widget-header-panel * {
  position: relative;
  z-index: 2;
}

.loyalty-popup-wrapper .widget-header-panel h3 {
  font-size: 24px;
  margin: 5px 0 0;
}

.loyalty-popup-wrapper .widget-header-panel p {
  margin: 0 0 5px;
  opacity: 0.9;
}

.loyalty-popup-wrapper .wrapper {
  padding: 20px;
}

.loyalty-popup-wrapper .widget-block {
  margin-bottom: 20px;
}

.loyalty-popup-wrapper .intro-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px;
  color: #333;
}

.loyalty-popup-wrapper .text-center {
  text-align: center;
}

.loyalty-btn {
  display: inline-block;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.loyalty-btn-block {
  display: block;
  width: 100%;
}

.loyalty-btn-primary {
  background-color: #007cba;
  color: #fff;
  margin: 15px 0;
}

.loyalty-btn-primary:hover {
  background-color: #005a87;
  color: #fff;
  text-decoration: none;
}

.loyalty-popup-wrapper .user-links {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

.loyalty-popup-wrapper .user-links a {
  color: #007cba;
  text-decoration: none;
  font-weight: 500;
}

.loyalty-popup-wrapper .user-links a:hover {
  text-decoration: underline;
}

.loyalty-popup-wrapper .actions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.loyalty-popup-wrapper .action-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
}

.loyalty-popup-wrapper .action-item:hover {
  background-color: #f9f9f9;
  text-decoration: none;
  color: #333;
}

.loyalty-popup-wrapper .action-item:last-child {
  border-bottom: none;
}

.loyalty-popup-wrapper .action-icon {
  margin-right: 15px;
  font-size: 20px;
}

.loyalty-popup-wrapper .action-item-content {
  flex: 1;
}

.loyalty-popup-wrapper .action-item-content p {
  margin: 0;
  font-weight: 500;
}

.loyalty-popup-wrapper .action-arrow {
  color: #ccc;
  font-size: 16px;
}

.open-loyalty-popup-btn {
  position: fixed;
  bottom: 30px;
  right: 25px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 2px 20px;
  font-size: 16px;
  cursor: pointer;
  z-index: 999997;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.open-loyalty-popup-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
  #app-popup.loyalty-popup-wrapper {
    width: calc(100% - 20px);
    bottom: 10px;
    right: 10px;
  }

  .open-loyalty-popup-btn {
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    font-size: 14px;
  }
}
