.donation-cart-page {
    --dc-ink: #1f2a24;
    --dc-muted: #5f6d66;
    --dc-line: #d7e0da;
    --dc-panel: #f4f7f5;
    --dc-accent: #1f7a4d;
    --dc-accent-dark: #165c3a;
    --dc-warn: #b45309;
}

.donation-cart-card {
    margin-bottom: 30px;
}

.donation-cart-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 10px;
}

.donation-amount-chip {
    border: 1px solid var(--dc-line);
    background: #fff;
    color: var(--dc-ink);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.donation-amount-chip.is-active,
.donation-amount-chip:hover {
    border-color: var(--dc-accent);
    color: var(--dc-accent);
    background: #eef8f2;
}

.donation-cart-amount-row {
    display: flex;
    align-items: center;
    border: 1px solid var(--dc-line);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #fff;
}

.donation-cart-amount-row .suffix {
    padding: 0 12px;
    color: var(--dc-muted);
    font-weight: 600;
}

.donation-cart-amount-row input {
    border: 0;
    width: 100%;
    padding: 10px 12px;
    outline: none;
    font-size: 15px;
}

.donation-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.donation-cart-actions .boxed-btn {
    margin: 0;
}

.donation-view-link {
    color: var(--dc-accent);
    font-weight: 600;
    text-decoration: underline;
}

.donation-cart-panel {
    position: sticky;
    top: 100px;
    background: var(--dc-panel);
    border: 1px solid var(--dc-line);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 30px;
}

.donation-cart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.donation-cart-panel-head h3 {
    margin: 0;
    font-size: 22px;
    color: var(--dc-ink);
}

.donation-cart-count {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--dc-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.donation-cart-items {
    min-height: 80px;
    margin-bottom: 16px;
}

.donation-cart-empty {
    color: var(--dc-muted);
    margin: 0;
}

.donation-cart-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dc-line);
}

.donation-cart-line h4 {
    margin: 0;
    font-size: 15px;
    color: var(--dc-ink);
}

.donation-cart-line .meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.donation-cart-line input {
    width: 90px;
    border: 1px solid var(--dc-line);
    border-radius: 4px;
    padding: 6px 8px;
}

.donation-cart-line .remove {
    border: 0;
    background: transparent;
    color: #9b1c1c;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.donation-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 16px;
    font-size: 16px;
    color: var(--dc-ink);
}

.donation-cart-checkout-btn {
    width: 100%;
    text-align: center;
}

.donation-cart-checkout-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.donation-cart-clear {
    display: block;
    width: 100%;
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: var(--dc-muted);
    text-decoration: underline;
    cursor: pointer;
}

.donation-cart-modal[hidden] {
    display: none !important;
}

.donation-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(18, 28, 23, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.donation-cart-modal-dialog {
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 10px;
    padding: 28px 24px 24px;
    position: relative;
}

.donation-cart-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--dc-muted);
    cursor: pointer;
}

.donation-cart-checkout-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.donation-cart-checkout-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dc-line);
}

.donation-cart-fab {
    display: none;
}

body.donation-cart-open {
    overflow: hidden;
}

.donation-checkout-area {
    --dc-ink: #1f2a24;
    --dc-muted: #5f6d66;
    --dc-line: #d7e0da;
    --dc-panel: #f4f7f5;
    --dc-accent: #1f7a4d;
}

.donation-checkout-steps {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0 0 28px;
}

.donation-checkout-steps li {
    background: #fff;
    border: 1px solid var(--dc-line);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--dc-muted);
    font-size: 14px;
}

.donation-checkout-steps li.is-active {
    background: var(--dc-accent);
    border-color: var(--dc-accent);
    color: #fff;
}

.donation-checkout-card,
.donation-checkout-summary,
.donation-checkout-donor-card {
    background: #fff;
    border: 1px solid var(--dc-line);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.donation-checkout-card h2,
.donation-checkout-summary h3 {
    margin-top: 0;
    color: var(--dc-ink);
}

.donation-checkout-form .form-group {
    margin-bottom: 16px;
}

.donation-checkout-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dc-ink);
}

.donation-checkout-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.donation-checkout-summary li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dc-line);
}

.donation-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.donation-captcha-row img {
    border: 1px solid var(--dc-line);
    border-radius: 4px;
    background: var(--dc-panel);
}

.donation-captcha-refresh {
    border: 1px solid var(--dc-line);
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.donation-human-check {
    margin: 18px 0;
}

.donation-pay-methods {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.donation-pay-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--dc-line);
    border-radius: 6px;
    padding: 12px 14px;
    cursor: pointer;
    margin: 0;
}

.donation-pay-option input {
    margin: 0;
}

.donation-pay-panel {
    margin-bottom: 18px;
}

.donation-pay-note {
    color: var(--dc-muted);
    font-size: 13px;
}

.donation-single-cart-box {
    margin-bottom: 20px;
}

.donation-type-select-wrap {
    margin-bottom: 16px;
}

.donation-type-select-wrap label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dc-text, #1a1a1a);
}

.donation-type-select-wrap .form-control,
.donation-checkout-form .form-control {
    width: 100%;
    min-height: 44px;
}

.donation-type-select-wrap {
    margin-bottom: 14px;
}

.donation-type-select-wrap label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dc-text, #1d2b24);
}

.donation-type-select-wrap .form-control,
.donation-checkout-form select.form-control {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d5e0d9;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
}

@media (max-width: 991px) {
    .donation-cart-panel {
        position: static;
    }

    .donation-cart-fab {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        right: 16px;
        bottom: 20px;
        z-index: 90;
        border: 0;
        border-radius: 999px;
        background: var(--dc-accent);
        color: #fff;
        padding: 12px 18px;
        box-shadow: 0 10px 24px rgba(22, 92, 58, 0.28);
        cursor: pointer;
    }

    .donation-cart-fab[hidden] {
        display: none !important;
    }

    .donation-cart-fab em {
        font-style: normal;
        background: #fff;
        color: var(--dc-accent-dark);
        border-radius: 999px;
        min-width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
    }
}
