/* Archive wrapper - centers donation listing page */
.donation-archive-wrapper {
    max-width: 66.4989378333em;
    margin: 0 auto;
    padding: 2rem 2.617924em;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .donation-archive-wrapper {
        padding: 1.5rem 1rem;
    }
}

/* Sorting form */
.donation-sort {
    margin-bottom: 2rem;
    text-align: center;
}

.donation-sort label {
    margin-right: 0.5rem;
    font-weight: 600;
    color: #333;
}

.donation-sort select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.donation-sort select:hover,
.donation-sort select:focus {
    border-color: #ff5a1f;
}

/* Donation grid */
.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.donation-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 38px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}
.donation-card:hover {
    transform: translateY(-5px);
}

.donation-image {
    position: relative;
}
.donation-image img {
    width: 100%;
    height: auto;
    display: block;
}

.donation-body {
    padding: 20px;
}
.donation-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}
.donation-title a {
    color: #000;
    font-weight: 700;
}
.donation-title a:hover {
    color: #ffac00;
}
.donation-progress-bar {
    background: #f1f1f1;
    height: 6px;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 15px;
}
.donation-progress-bar .fill {
    background: #ff5722;
    height: 100%;
    border-radius: inherit;
    transition: width 0.3s ease;
}
.donation-percent {
    text-align: right;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}
.donation-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.donation-stats div {
    flex: 1;
}
.donation-stats .label {
    display: block;
    color: #777;
    font-size: 12px;
    margin-bottom: 4px;
}
.donation-stats .money {
    color: #333;
    font-weight: bold;
}
.donation-stats .money.positive {
    color: #28a745;
}

.donation-stats .money.negative {
    color: #dc3545;
}

.highlight-label {
    position: absolute;
    bottom: 5px;
    background: #f74f22;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}

.highlight-label:hover {
    background: #ffac00;
    border-color: #ffac00;
}

/**Single**/
.donation-single input[type="text"] {
    margin: 0;
}
.donation-single .donation-thumbnail {
    position: relative;
    margin-bottom: 2rem;
}

.donation-single .donation-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: none;
    border-radius: 12px;
}

.donation-single .donation-highlight-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f74f22;
    color: #fff;
    padding: 4px 10px;
    border-radius: 13px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.donation-single .donation-content {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    width: auto;
    position: relative;
    float: none;
    margin: 0;
}

.donation-single h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.donation-single .donation-progress-stats {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.donation-single .donation-progress-stats strong {
    font-weight: bold;
}

.donation-single .donation-raised {
    color: #f44336;
}

.donation-single .donation-goal {
    color: #888;
}

.donation-single .donation-progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.donation-single .donation-progress-fill {
    height: 100%;
    background: #f44336;
    border-radius: 4px;
}

.donation-single .donation-amount-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.donation-single .donation-amount-box {
    display: inline-flex;
    padding: 5px;
    border-radius: 46px;
    box-shadow: 10px 13px 38px 0 rgba(0, 0, 0, 0.1);
}

.donation-single .donation-amount-box .donation-amount {
    height: 46px;
    border-radius: inherit;
    border: unset;
    font-size: 20px;
    width: 125px;
    min-width: 142px;
    line-height: 46px;
    background: #fff;
    outline: none;
    box-shadow: none;
    color: #000;
}

.donation-single .donation-amount-icon {
    background: #ff9800;
    color: white;
    padding: 10px 16px;
    border-radius: 50%;
    font-weight: bold;
}

.donation-single .donation-amount-value {
    font-size: 1.5rem;
}

.donation-single .donation-amount-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.donation-amount-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.donate-button {
    text-align: center;
    display: inherit;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    background: #f44336;
    color: #fff;
}

.donate-button:hover {
    background-color: #e64a19;
}

.donate-button, .donation-single .donation-button {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-width: 80px;
    height: auto;
    font-size: 14px;
    line-height: 1;
}
.donation-single .donation-button {
    background: #fff;
    color: #333;
}

.donation-single .donation-button:hover {
    border-color: #999;
}

.donation-single .donation-button.selected {
    background: #f44336;
    color: white;
}

.donation-single .donation-section-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 700;
}

.donation-single .donation-currency{
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.donation-single .donation-methods {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.donation-single .donation-personal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    padding: .5rem;
}

.donation-single .donation-personal-info label {
    width: 100%;
}

.donation-single .donation-personal-info input,
.donation-single .donation-personal-info select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 16px;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    outline: none;
    transition: border 0.2s ease;
}

.donation-single .donation-personal-info .donation-input {
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    flex: 1;
}

.donation-single .donation-personal-info input[type="email"] {
    width: 100%;
}

.donation-single .donation-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.donation-single .donation-submit {
    background: #f74f22;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.donation-single .donation-submit:hover {
    background: #e65c00;
}

.donation-single .donation-total {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.donation-single .entry-content {
    margin-top: 2rem;
}

.donation-single .select__field {
    margin-bottom: 0;
}

.donation-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.4;
    color: #333;
    cursor: pointer;
}


#donation-total-amount {
    color: #ff6a00;
    margin-left: 6px;
}

.donation-action-row {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    margin-top: 1.5rem;
}

.donation-single .donation-card {
    display: none;
    box-shadow: none;
    align-self: center;
    overflow: visible;
}

.donation-single .donation-card .card-wrapper {
    overflow: hidden;
}

.donation-single .error-donation {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
}

@media (min-width: 600px) {
    .donation-action-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .donation-single {
        width: 75%;
    }

    body.single-lamanuelita_donation main.site-main {
        max-width: 66.4989378333em;
        margin-left: auto;
        margin-right: auto;
        padding: 0 2.617924em;
        box-sizing: content-box;
    }
}

.donation-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #0073aa; /* Color del tema o del botón primario */
    cursor: pointer;
}

.donation-checkbox a {
    color: #0073aa;
    text-decoration: underline;
}

.donation-checkbox a:hover {
    color: #005077;
}

.donation-single .donation-card input.jp-card-invalid {
    border: 2px solid #e74c3c; /* rojo */
    background-color: #fdecea;
    color: #c0392b;
    outline: none;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    font-family: 'Inter', sans-serif;
}

.pagination .page-number,
.pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

.pagination .page-number:hover {
    background: #f74f22;
    color: #fff;
}

.pagination .page-number.current {
    background-color: #ff5a1f;
    color: #fff;
    border-color: #ff5a1f;
}

.pagination .next {
    font-weight: bold;
}

/* Fix checkbox clickability when card widget is visible */
.donation-checkbox {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.donation-checkbox input[type="checkbox"] {
    pointer-events: auto;
}

.donation-single .donation-card {
    position: relative;
    z-index: 1;
}

.donation-single .donation-card .card-wrapper {
    pointer-events: none;
}

.donation-single .donation-card .fields-card {
    pointer-events: auto;
}

/* Wrapper: grid de dos columnas */
.donation-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
    margin: 0 auto 75px;
    max-width: 1400px;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Columna principal (imagen + formulario) */
.donation-main-content {
    min-width: 0;
}

/* Bloque principal: formulario + contenido */
.donation-layout {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.donation-layout .entry-content {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.donation-sidebar {
    position: sticky;
    top: 2rem;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
}

.donation-sidebar .widget {
    background: transparent;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.donation-sidebar .widget:last-child {
    margin-bottom: 0;
}

.donation-sidebar .widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.donation-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.donation-sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.donation-sidebar .widget li:last-child {
    border-bottom: none;
}

.donation-sidebar .widget a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.donation-sidebar .widget a:hover {
    color: #f74f22;
}

@media (max-width: 768px) {
    .donation-wrapper {
        grid-template-columns: 1fr;
        margin: 0 auto 40px;
        padding: 0 1rem;
    }
    
    .donation-sidebar {
        position: static;
    }

    .donation-single {
        width: 100%;
    }
}