.popup {
  position: fixed;
  top: 0 !important;
  left: 0 !important;
  right: 0;
  bottom: 0;
  transform: none !important;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.popup.open {
  visibility: visible;
  pointer-events: all;
  opacity: 1;
}
.popup-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}
.popup-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 600px;
  max-width: calc(100% - 24px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupIn 0.3s ease-out;
}
@keyframes popupIn {
  from { transform: translate(-50%, -46%); opacity: 0; }
  to   { transform: translate(-50%, -50%); opacity: 1; }
}
.popup-branch {
  background: linear-gradient(135deg, #f27222, #e85d04);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 24px;
  text-align: center;
}
.popup-wrapper {
  background: #fff;
  padding: 24px 24px 20px;
  position: relative;
}
.popup-content {
  max-height: 50vh;
  overflow-y: auto;
  border: 2px dashed #f59c64;
  border-radius: 10px;
  padding: 16px;
  min-height: 100px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  scrollbar-width: thin;
  scrollbar-color: #f59c64 #fff0e6;
}
.popup-content::-webkit-scrollbar { width: 5px; }
.popup-content::-webkit-scrollbar-track { background: #fff0e6; border-radius: 10px; }
.popup-content::-webkit-scrollbar-thumb { background: #f59c64; border-radius: 10px; }
.popup-close {
  display: flex;
  justify-content: center;
  padding: 16px 24px 20px;
  background: #fff;
}
.popup-button-close {
  background: linear-gradient(135deg, #f27222, #e85d04) !important;
  color: #fff !important;
  border: none;
  padding: 10px 48px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(242, 114, 34, 0.4);
}
.popup-button-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 114, 34, 0.5);
}

@media (max-width: 480px) {
  .popup-branch { font-size: 13px; padding: 12px 16px; }
  .popup-wrapper { padding: 16px 16px 12px; }
  .popup-content { font-size: 14px; min-height: 80px; max-height: 40vh; }
  .popup-close { padding: 12px 16px 16px; }
  .popup-button-close { padding: 10px 36px; font-size: 14px; }
}
