/* Popup overlay container */
.confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #E5F2FF;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

body.popup-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.popup-container,
.popup-container * {
  box-sizing: border-box;
}

.popup-container {
  background: var(--neutral-white, #ffffff);
  border-radius: 20px;
  border-style: solid;
  border-color: var(--primary-03, #5793fb);
  border-width: 3px;
  padding: 60px 38px 40px 38px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  max-width: 90%;
  width: 800px;
  height: 502px;
  overflow: hidden;
}

.popup-logo {
  flex-shrink: 0;
  width: 162.43px;
  height: 160px;
  position: relative;
  overflow: visible;
  object-fit: contain;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.popup-title {
  color: var(--neutral-08, #1a1a1a);
  text-align: center;
  font-size: 24px;
  line-height: 36px;
  font-weight: 500;
  position: relative;
  align-self: stretch;
}

.popup-title-part1, .popup-title-part2 {
  display: inline;
}

.popup-description {
  color: var(--neutral-06, #4d4d4d);
  text-align: center;
  font-size: 16px;
  line-height: 34px;
  font-weight: 400;
  position: relative;
  align-self: stretch;
}

.popup-question {
  color: var(--neutral-black, #000000);
  text-align: center;
  font-size: 20px;
  line-height: 34px;
  font-weight: 500;
  position: relative;
  align-self: stretch;
}

.popup-buttons {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}

.popup-btn-yes {
  background: var(--primary-04, #113ef9);
  border-style: solid;
  border-color: var(--primary-04, #113ef9);
  border-width: 1px;
  padding: 14px 24px 14px 24px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.popup-yes-text {
  color: var(--primary-01, #e5f2ff);
  text-align: left;
  font-size: 18px;
  line-height: 20px;
  font-weight: 500;
  position: relative;
}

.popup-btn-no {
  border-style: solid;
  border-color: #d10000;
  border-width: 1px;
  padding: 14px 24px 14px 24px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.popup-no-text {
  color: #d10000;
  text-align: left;
  font-size: 18px;
  line-height: 20px;
  font-weight: 500;
  position: relative;
}

.popup-logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1a1a1a;
}

/* Responsive styles for mobile devices */
@media screen and (max-width: 768px) {
  .popup-container {
    margin: -98px 0 0 0;
    padding: 40px 32px 40px 32px;
    gap: 24px;
    align-self: stretch;
  }
  
  .popup-logo {
    width: 101.52px;
    height: 100px;
  }
  
  .popup-content {
    gap: 12px;
  }
  
  .popup-title {
    font-size: 16px;
    line-height: 24px;
  }
  
  .popup-title-part1, .popup-title-part2 {
    display: block;
  }
  
  .popup-title-part1 {
    margin-bottom: 4px;
  }
  
  .popup-description {
    font-size: 14px;
    line-height: 24px;
  }
  
  .popup-question {
    font-size: 16px;
    line-height: 24px;
  }
  
  .popup-buttons {
    flex-direction: row;
    gap: 16px;
  }
  
  .popup-btn-yes,
  .popup-btn-no {
    padding: 10px 24px 10px 24px;
  }
}

/* Enhanced styles for smaller devices */
@media screen and (max-width: 480px) {
  .confirmation-popup {
    padding: 15px;
    align-items: flex-start;
    padding-top: 50px;
  }
  
  .popup-container {
    margin: 0;
    width: 100%;
    min-height: auto;
    overflow-y: auto;
    padding: 30px 20px;
    gap: 20px;
    border-width: 2px;
  }
  
  .popup-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
  }
  
  .popup-content {
    gap: 12px;
  }
  
  .popup-title {
    font-size: 16px;
    line-height: 22px;
  }
  
  .popup-title-part1 {
    margin-bottom: 2px;
  }
  
  .popup-description {
    font-size: 13px;
    line-height: 20px;
    overflow-y: auto;
    padding-right: 5px;
  }
  
  .popup-question {
    font-size: 15px;
    line-height: 20px;
    margin-top: 5px;
  }
  
  .popup-yes-text,
  .popup-no-text {
    font-size: 16px;
  }
}

/* Ultra-small devices (e.g., iPhone SE, small Android phones) */
@media screen and (max-width: 360px) {
  .popup-container {
    padding: 20px 15px;
    gap: 15px;
  }
  
  .popup-logo {
    width: 70px;
    height: 70px;
  }
  
  .popup-title {
    font-size: 15px;
    line-height: 20px;
  }
  
  .popup-description {
    font-size: 12px;
    line-height: 18px;
  }
  
  .popup-question {
    font-size: 14px;
    margin-top: 2px;
  }
  
  .popup-btn-yes,
  .popup-btn-no {
    padding: 10px 15px;
  }
  
  .popup-yes-text,
  .popup-no-text {
    font-size: 15px;
  }
}
