/* ComboDonatе Color Variables - These will be overridden by settings */
:root {
  --combo-donate-primary: #c7000d;
  --combo-donate-secondary: #1a1a1a;
  --combo-donate-accent: #c7000d;
  --combo-donate-success: #28a745;
  --combo-donate-warning: #ffc107;
  --combo-donate-error: #dc3545;
}

.fundraisers-container {
  max-width: 1200px !important;
  /* min-width: 100% !important; */
  margin: 0 auto;
  padding: 20px;
  font-size: 10px;
}

.content-area {
  border: none !important;
  width: 100% !important;
}

.sections_group {
  width: 100% !important;
}

#Subheader {
  display: none !important;
}

.post-title-wrapper {
  display: none !important;
}

.fundraisers-container .fundraisers-layout {
  display: flex;
  justify-content: center;
  gap: 20px; /* 1200 - 670 - 474 = 56px gap */
}

.fundraisers-container .fundraisers-layout-left {
  flex: 0 0 55.8%; /* 670 / 1200 ≈ 55.8% */
  max-width: 670px;
  width: 100%;
}

.fundraisers-container .fundraisers-layout-right {
  flex: 0 0 39.5%; /* 474 / 1200 ≈ 39.5% */
  max-width: 474px;
  width: 100%;
}

.fundraisers-container .fundraiser-url {
  color: var(--combo-donate-accent);
  text-decoration: none;
}
.fundraisers-container .fundraiser-url:hover {
  text-decoration: underline;
}

.fundraisers-container .m-0 {
  margin: 0 !important;
}
.fundraisers-container .pb-12 {
  padding-bottom: 12px !important;
}

.fundraisers-container .mb-40 {
  margin-bottom: 40px !important;
}

@media (max-width: 1200px) {
  .fundraisers-container .fundraisers-layout {
    gap: 4.7vw; /* proportional gap */
  }
  .fundraisers-container .fundraisers-layout-left {
    flex-basis: 55.8%;
    max-width: none;
  }
  .fundraisers-container .fundraisers-layout-right {
    flex-basis: 39.5%;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .fundraisers-container .fundraisers-layout {
    flex-direction: column-reverse;
    gap: 32px;
  }
  .fundraisers-container .fundraisers-layout-left,
  .fundraisers-container .fundraisers-layout-right {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
}

/* Donations Table Styles */
.fundraisers-container .donations-section {
  background: #1a1a1a;
  padding: 0;
  margin-bottom: 24px;
  min-height: 500px;
}

.fundraisers-container .donations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px 24px;
}

.fundraisers-container .donations-separator {
  border: none;
  border-top: 1px solid #c7000d;
  margin: 0;
  position: relative;
}

.fundraisers-container .donations-separator::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0; /* lub -1px */
  width: 40px;
  height: 2px;
  background-color: #c7000d; /* sprawdź, że to nie #fff lub przezroczyste */
  z-index: 2; /* dodaj to — może być przykryty przez inny element */
}

.fundraisers-container .donations-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.fundraisers-container .donations-tabs {
  display: flex;
  gap: 8px;
}

.fundraisers-container .donations-tab {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--combo-donate-accent);
  color: #aaaaaa;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.fundraisers-container .donations-tab.active {
  background: var(--combo-donate-accent);
  color: white;
}

.fundraisers-container .donations-tab:hover:not(.active) {
  background: var(--combo-donate-accent);
  color: white;
}

.fundraisers-container .bold {
  font-weight: 600;
}

.fundraisers-container .donations-table {
  padding: 0;
}

.fundraisers-container .donation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #2e2e2e;
  transition: background-color 0.2s ease;
}

.fundraisers-container .donation-row:hover {
  background: #222222;
}

.fundraisers-container .donation-row:last-child {
  border-bottom: none;
}

.fundraisers-container .donation-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.fundraisers-container .donor-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fundraisers-container .donor-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fundraisers-container .donor-name {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;
}

.fundraisers-container .donation-time {
  font-size: 13px;
  color: #999999;
  line-height: 1.2;
}
.fundraisers-container .donation-message {
  color: #aaaaaa;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
}

.fundraisers-container .donation-amount {
  font-size: 16px;
  font-weight: 600;
  text-align: right;
}

.fundraisers-container .donation-amount.amount-visible {
  color: #28a745;
}

.fundraisers-container .donation-amount.amount-hidden {
  color: #28a745;
}

.fundraisers-container .donations-footer {
  padding: 16px 24px;
  text-align: center;
  border-top: 1px solid #2e2e2e;
}

.fundraisers-container .show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--combo-donate-accent);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.fundraisers-container .show-more-btn:hover {
  background: #2a0a0a;
}

.fundraisers-container .show-more-btn svg {
  transition: transform 0.2s ease;
}

.fundraisers-container .show-more-btn:hover svg {
  transform: translateY(2px);
}

/* Responsive styles for donations table */
@media (max-width: 768px) {
  .fundraisers-container .donations-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }

  .fundraisers-container .donations-tabs {
    justify-content: center;
  }

  .fundraisers-container .donation-row {
    padding: 14px 20px;
  }

  .fundraisers-container .donor-icon {
    width: 36px;
    height: 36px;
  }

  .fundraisers-container .donor-name {
    font-size: 14px;
  }

  .fundraisers-container .donation-time {
    font-size: 12px;
  }

  .fundraisers-container .donation-amount {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .fundraisers-container .donations-section {
    margin: 0 -20px 24px -20px;
    border-radius: 0;
  }

  .fundraisers-container .donations-header {
    padding: 16px 20px;
  }

  .fundraisers-container .donations-title {
    font-size: 18px;
  }

  .fundraisers-container .donation-row {
    padding: 12px 20px;
  }

  .fundraisers-container .donor-icon {
    width: 32px;
    height: 32px;
  }

  .fundraisers-container .donor-details {
    gap: 1px;
  }
}

/* Modal Overlay */
.fundraisers-container .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(51, 51, 51, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.2s ease;
}

/* Modal Content */
.fundraisers-container .modal-content {
  background: #1a1a1a;
  border-radius: 5px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  max-width: 568px;
  width: 100%;
  position: relative;
  text-align: center;
}

.fundraisers-container .modal-content-header {
  padding: 24px 24px 0 24px;
}

.fundraisers-container .modal-content h2 {
  font-weight: 600;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: 0;
  text-align: center;
  color: #ffffff;
}

.fundraisers-container .modal-content p {
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #aaaaaa;
}
/* Close Button */
.fundraisers-container .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.fundraisers-container .modal-close:hover {
  color: var(--combo-donate-accent);
}

/* Social Buttons Container */
.fundraisers-container .modal-social {
  display: flex;
  flex-direction: column;
  gap: 37px;
  padding: 60px;
  justify-content: center;
  margin-top: 10px;
}

/* Social Button */
.fundraisers-container .modal-social-btn {
  display: inline-block;
  color: #dddddd;
  border: 1px solid var(--combo-donate-accent);
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  height: 58px;
}
.fundraisers-container .modal-social-btn:hover {
  background: var(--combo-donate-accent);
  color: #fff;
  border-color: var(--combo-donate-accent);
}

/* Responsive Modal */
@media (max-width: 480px) {
  .fundraisers-container .modal-content {
    max-width: 95vw;
    padding: 20px 10px 16px 10px;
  }
  .fundraisers-container .modal-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }
}

/* Override theme buttons that appear inside or adjacent to the plugin */
.fundraisers-container a.button,
.fundraisers-container .wp-block-button__link,
.fundraisers-container .button,
.fundraisers-container
  .btn:not(.btn-primary):not(.btn-transparent):not(.btn-secondary) {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #444444 !important;
}
.fundraisers-container a.button:hover,
.fundraisers-container .wp-block-button__link:hover,
.fundraisers-container .button:hover {
  background: var(--combo-donate-accent) !important;
  color: #ffffff !important;
  border-color: var(--combo-donate-accent) !important;
}
