/* Стили для двухколоночного макета на странице сбора */
.campaign-wrapper {
    width: 100%;
    padding: 0 1.875rem;
    box-sizing: border-box;
    display: block;
    margin: 40px auto;
}

.fundraising-layout {
    display: flex;
    /* Разрешаем перенос элементов и выравниваем по верху, чтобы избежать смещения сайдбара вниз */
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.875rem;
}

@media (max-width: 48rem) {
    .fundraising-layout {
        flex-direction: column;
    }

    .fundraising-main,
    .fundraising-sidebar {
        flex: 1 0 100%;
    }
}

.fundraising-main {
    flex: 1 0 calc(65% - 0.9375rem); /* Allow to grow, fixed basis accounting for half gap */
    order: 1;
}

.fundraising-sidebar {
    flex: 0 0 calc(35% - 0.9375rem); /* Fixed basis accounting for half gap */
    /* Уменьшаем минимальную ширину, чтобы сайдбар мог ужиматься на узких контейнерах */
    min-width: 18.75rem; /* ~300px */
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: 2;
}

.fundraising-history {
    background-color: rgba(255, 255, 255, 0.15); /* Transparent background */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle transparent border */
    border-radius: 8px;
    padding: 1.25rem;
    height: fit-content;
    align-self: stretch;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.fundraising-history h3 {
    margin-top: 0;
    margin-bottom: 0.9375rem;
    border-bottom: 0.125rem solid rgba(255, 255, 255, 0.4); /* Transparent border */
    padding-bottom: 0.625rem;
    font-size: 1.4em;
    color: #333;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Transparent border */
    display: block;
    font-size: 0.8rem;
}

.history-item .main-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.history-item .amount {
    font-weight: bold;
    color: #333;
    font-size: 0.8rem;
}

.history-item .date {
    color: #666;
    font-size: 0.8rem;
}

.history-item .payment-id {
    font-size: 0.77rem;
    font-weight: 900;
    color: #1b1818;
}

.history-item .id-label {
    font-weight: normal;
}

.history-item .id-value {
    font-family: monospace;
}

.history-item:last-child {
    border-bottom: none;
}

.no-history {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
}

    padding: 1.25rem;
    height: fit-content;
    align-self: stretch;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-block h3 {
    margin-top: 0;
    margin-bottom: 0.9375rem;
    border-bottom: 0.125rem solid rgba(255, 255, 255, 0.4); /* Transparent border */
    padding-bottom: 0.625rem;
    font-size: 1.4em;
    color: #333;
}

/* New faq-item styles */
.faq-item {
    margin-bottom: 0.625rem;
}

.faq-item details {
    border: 1px solid rgba(255, 255, 255, 0.3); /* Transparent border */
    border-radius: 0.3125rem;
    margin-bottom: 0.313rem;
    background-color: rgba(255, 255, 255, 0.05); /* Even more transparent */
}

.faq-item summary {
    font-weight: bold;
    padding: 0.625rem 2.5rem 0.625rem 0.938rem; /* Increased right padding for spacing */
    cursor: pointer;
    outline: none;
    list-style: none;
    position: relative;
    color: #333;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '\25B6'; /* Right-pointing triangle */
    position: absolute;
    right: 0.938rem;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for vertical centering */
    font-size: 0.8em; /* Slightly smaller for a cleaner look */
    line-height: 1;
    transition: transform 0.2s ease-in-out; /* Smoother transition */
    color: #333;
}

.faq-item details[open] summary::before {
    transform: translateY(-50%) rotate(90deg); /* Rotate 90 degrees when open */
}

.faq-item p {
    padding: 10px 15px 15px;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Transparent border */
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.zakyat-calculator-container {
    background-color: rgba(255, 255, 255, 0.15); /* Transparent background */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle transparent border */
    border-radius: 8px;
    padding: 1.25rem;
    height: fit-content;
    align-self: stretch;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.25rem;
}
/* Стили для сохранения форматирования текста */
