/* ComboDonatе Color Variables - These will be overridden by settings */
:root {
    --combo-donate-primary: #2E8B57;
    --combo-donate-secondary: #4CAF50;
    --combo-donate-accent: #FF6B35;
    --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-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

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


.fundraiser-url{
    color: var(--combo-donate-accent);
    text-decoration: none;

}
.fundraiser-url:hover {
    text-decoration: underline;
}


.m-0 {
    margin: 0 !important;
}

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



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

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

/* Donations Table Styles */
.donations-section {
    background: white;
    padding: 0;
    margin-bottom: 24px;
    min-height: 500px;
}

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

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

.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 */
}


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

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

.donations-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #f87c2e;
    color: #475467;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;

    transition: all 0.2s ease;
}

.donations-tab.active {
    background: #f87c2e;
    color: white;
}

.donations-tab:hover:not(.active) {
    background: #f87c2e;
    color: white;
}

.bold {
    font-weight: 600;
}

.donations-table {
    padding: 0;
}

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

.donation-row:hover {
    background: #fafafa;
}

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

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

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

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

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

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

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

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

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

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

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #f87c2e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    background: #fef6f0;
}

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

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

/* Responsive styles for donations table */
@media (max-width: 768px) {
    .donations-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }
    
    .donations-tabs {
        justify-content: center;
    }
    
    .donation-row {
        padding: 14px 20px;
    }
    
    .donor-icon {
        width: 36px;
        height: 36px;
    }
    
    .donor-name {
        font-size: 14px;
    }
    
    .donation-time {
        font-size: 12px;
    }
    
    .donation-amount {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .donations-section {
        margin: 0 -20px 24px -20px;
        border-radius: 0;
    }
    
    .donations-header {
        padding: 16px 20px;
    }
    
    .donations-title {
        font-size: 18px;
    }
    
    .donation-row {
        padding: 12px 20px;
    }
    
    .donor-icon {
        width: 32px;
        height: 32px;
    }
    
    .donor-details {
        gap: 1px;
    }
}

/* Modal Overlay */
.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 */
.modal-content {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    max-width: 568px;
    width: 100%;
    position: relative;
    text-align: center;
}

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

.modal-content h2{
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 40px;
    letter-spacing: 0;
    text-align: center;
}

.modal-content p{
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
}
/* Close Button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #101828;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.modal-close:hover {
    color: #f87c2e;
}


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

/* Social Button */
.modal-social-btn {
    display: inline-block;
    color: #101828;
    border: 1px solid #f87c2e;
    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;
}
.modal-social-btn:hover {
    background: #f87c2e;
    color: #fff;
    border-color: #f87c2e;
}

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