/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
  /* Remove flex centering */
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
}

.modal-content {
  background-color: #000000;
  /* Removed margin to rely on flexbox centering */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
  user-select: none;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.bonus-invoice {
  color: #333;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.invoice-label {
  font-weight: 600;
  color: #FFB200; /* gold color */
}

.invoice-value {
  font-weight: 400;
  color: #fff;
}

/* Hidden class to prevent flash of modal */
.hidden {
  display: none !important;
}

/* Blur effect for background when modal is open */
.page__content.blur {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}

/* Modal open animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Modal close animation */
@keyframes modalFadeOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.9);
  }
}

.modal-content {
  animation: modalFadeIn 0.3s ease forwards;
}

.modal-content.closing {
  animation: modalFadeOut 0.3s ease forwards;
}
