/* Donation Popup Styles */
.tac-donation-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.tac-donation-popup-content {
  background-color: #9c0000;
  color: white;
  margin: 15% auto;
  padding: 25px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tac-donation-close,
.tac-sticky-close {
  color: white;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.tac-donation-close:hover,
.tac-sticky-close:hover {
  opacity: 0.8;
}

.tac-donation-popup h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5em;
  text-align: center;
}

.tac-donation-popup p {
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: center;
}

.tac-donate-prompt {
  font-weight: bold;
  margin-bottom: 10px;
}

.tac-donation-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 20px 0;
  justify-content: center;
}

.tac-donation-buttons> :nth-child(5) {
  grid-column: 1 / -1;
}

.tac-donation-button {
  display: block;
  min-width: 80px;
  background-color: white;
  color: #9c0000;
  text-align: center;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.tac-donation-button:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

.tac-donation-custom {
  background-color: rgba(255, 255, 255, 0.85);
}

.tac-donation-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #9c0000;
  color: white;
  text-align: center;
  padding: 10px 0;
  z-index: 999;
}

.tac-donation-sticky a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
  .tac-donation-popup-content {
    width: 90%;
    margin: 30% auto;
    padding: 20px;
  }

  .tac-donation-buttons {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for mobile */
    gap: 10px;
    /* Slightly smaller gap for mobile */
    margin: 15px 0;
    justify-content: center;
  }

  .tac-donation-buttons> :nth-child(5) {
    /* Fixed selector */
    grid-column: 1 / -1;
    /* Full width for 5th item */
  }

  .tac-donation-button {
    flex: 0 0 45%;
    min-width: unset;
  }
}
