.confirm-popup {
  display: none;
  visibility: hidden;
  width: 100%;
  height: 100%;
  flex-direction: column;
  position: fixed;
  z-index: 1000;
}

.confirm-popup.open {
  display: flex;
  visibility: visible;
}

.confirm-popup-container {
  isolation: isolate;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.confirm-popup-background {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.confirm-popup-body {
  isolation: isolate;
  position: relative;
  width: calc(100% - 40px);
  max-width: 23.75rem;
  display: flex;
  flex-direction: column;
  gap: 2.125rem;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--black-700);
  background-color: var(--black-300);

  @media (max-width: 768px) {
    max-width: 21.75rem;
    padding: 1.5rem;
  }
}

.confirm-popup-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.confirm-popup-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.confirm-popup-title {
  color: var(--white-100);
  font-size: 2rem;
  font-weight: var(--heading-text-1-weight-laptop);

  @media (max-width: 768px) {
    font-size: var(--heading-text-1-size-mobile);
  }
}

.confirm-popup-message {
  color: var(--white-100);
  font-size: var(--body-text-1-size-laptop);
  font-weight: var(--body-text-1-weight-laptop);

  @media (max-width: 768px) {
    font-size: var(--body-text-3-size-mobile);
    font-weight: var(--body-text-1-weight-mobile);
  }
}

.confirm-popup-footer {
  display: flex;
  justify-content: stretch;
  align-items: center;
}

.confirm-popup-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 1.125rem;
  height: 1.125rem;
  background-color: transparent;
  border: 0;
  cursor: pointer;

  @media (max-width: 768px) {
    top: 1.5rem;
    right: 1.5rem;
    width: 0.875rem;
    height: 0.875rem;
  }
}

.confirm-popup-back-btn {
  flex: 1;
}

.error-popup {
  display: none;
  position: fixed;
  z-index: 1200;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
}

.error-popup.open {
  display: block;
}

.error-popup-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.error-popup-background {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  z-index: 1;
}

.error-popup-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 95vw;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-popup-image img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  filter: invert(32%) sepia(98%) saturate(7492%) hue-rotate(357deg) brightness(98%) contrast(119%);
}

.error-popup-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d32f2f;
  margin-bottom: 0.5rem;
  text-align: center;
}

.error-popup-message {
  font-size: 1rem;
  color: #d32f2f;
  margin-bottom: 1rem;
  text-align: center;
}

.error-popup-list {
  color: #d32f2f;
  margin-bottom: 1rem;
  padding-left: 1.2rem;
  text-align: left;
}

.error-popup-list li {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.error-popup-footer {
  display: flex;
  justify-content: center;
  width: 100%;
}

.error-popup-close-btn {
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.error-popup-close-btn:hover {
  background: #b71c1c;
}