.custom-popup {
  display: none;
  position: fixed;
  bottom: -100%;
  right: 20px;
  width: 320px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: Arial, sans-serif;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, bottom 0.5s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out;
}

@keyframes bell-shake {
  0% { transform: rotate(0); }
  5% { transform: rotate(15deg); }
  10% { transform: rotate(-15deg); }
  15% { transform: rotate(15deg); }
  20% { transform: rotate(-15deg); }
  25% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

.custom-popup-icon {
  animation: bell-shake 10s infinite;
  transform-origin: top center;
  cursor: pointer;
}

.custom-popup.show {
  display: block;
  opacity: 1;
  bottom: 20px;
}

.custom-popup.minimized {
  width: 50px;
  height: 50px;
  overflow: visible;
}

.custom-popup.minimized .custom-popup-content > *:not(.custom-popup-icon) {
  display: none;
}

.custom-popup.minimized .custom-popup-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  display: block;
  margin: 0;
}

.custom-popup.minimized {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-popup-content {
  padding: 20px;
}

.custom-popup-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.custom-popup-title {
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
}

.custom-popup-icon {
  margin-right: 10px;
  font-size: 24px;
  flex-shrink: 0;
}

.custom-popup-icon-closed {
  display: none;
}

.custom-popup.minimized .custom-popup-icon-open {
  display: none;
}

.custom-popup.minimized .custom-popup-icon-closed {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  margin-top: -23px;
  margin-left: -19px;
}

.custom-popup.minimized .custom-popup-icon-closed .custom-popup-icon {
  animation: bell-shake-centered 10s infinite;
  transform-origin: center;
}

@keyframes bell-shake-centered {
  0% { transform: translate(-50%, -50%) rotate(0); }
  5% { transform: translate(-50%, -50%) rotate(15deg); }
  10% { transform: translate(-50%, -50%) rotate(-15deg); }
  15% { transform: translate(-50%, -50%) rotate(15deg); }
  20% { transform: translate(-50%, -50%) rotate(-15deg); }
  25% { transform: translate(-50%, -50%) rotate(0); }
  100% { transform: translate(-50%, -50%) rotate(0); }
}

.custom-popup-main-info {
  margin-bottom: 15px;
}

.custom-popup-large-text {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.custom-popup-small-text {
  font-size: 14px;
  color: #666;
}

.custom-popup-cta {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
}

.custom-popup-more {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: transparent;
  color: #4CAF50;
  border: 1px solid #4CAF50;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.custom-popup-arrow-down {
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}

.custom-popup-arrow-down.rotated {
  transform: rotate(180deg);
}

.custom-popup-additional-info {
  margin-top: 15px;
  font-size: 14px;
  color: #666;
}

.custom-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .custom-popup {
    width: 80%;
    left: 10%;
    right: 10%;
  }
  
  .custom-popup-title {
    font-size: 16px;
  }
  
  .custom-popup-large-text {
    font-size: 20px;
  }
}
