/* Campaign donate — product grid + tabs (orange theme) */
.cdp-donate {
    --cdp-accent: #fb8c00;
    --cdp-accent-dark: #e65100;
    --cdp-accent-soft: #fff3e0;
}

.cdp-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ffe0b2;
    background: #fff;
}

.cdp-tab {
    border: 0;
    background: #fff;
    color: var(--cdp-accent);
    font-weight: 600;
    font-size: .82rem;
    padding: 10px 8px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.cdp-tab.is-active {
    background: var(--cdp-accent);
    color: #fff;
}

.cdp-panel {
    display: none;
}

.cdp-panel.is-active {
    display: block;
}

.cdp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
}

@media (min-width: 480px) {
    .cdp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cdp-card {
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.cdp-card__media {
    position: relative;
    aspect-ratio: 4/3;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cdp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.cdp-card__ph {
    font-size: 2rem;
    color: #ccc;
}

.cdp-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}

.cdp-card__actions {
    position: absolute;
    top: 8px;
    right: 8px;
}

.cdp-card__add,
.cdp-card__stepper {
    border: 1px solid var(--cdp-accent);
    border-radius: 8px;
    background: #fff;
    color: var(--cdp-accent);
    font-weight: 700;
    font-size: .78rem;
    padding: 4px 14px;
    cursor: pointer;
}

.cdp-card__stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cdp-accent);
    color: #fff;
    padding: 4px 6px;
}

.cdp-card__stepper button {
    border: 0;
    background: transparent;
    color: #fff;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: .9rem;
}

.cdp-card__stepper span {
    min-width: 16px;
    text-align: center;
    font-weight: 700;
}

.cdp-card__body {
    padding: 10px 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cdp-card__title-row {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 6px;
}

.cdp-card__title {
    font-size: .82rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    flex: 1;
    margin: 0;
}

.cdp-card__detail {
    border: 0;
    background: transparent;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: .75rem;
}

.cdp-card__needed {
    font-size: .72rem;
    color: #888;
    margin-bottom: 6px;
}

.cdp-card__progress {
    height: 4px;
    background: #f0f0f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cdp-card__progress span {
    display: block;
    height: 100%;
    background: var(--cdp-accent);
    border-radius: 999px;
}

.cdp-card__price {
    margin-top: auto;
    font-size: .88rem;
    font-weight: 700;
    color: #222;
}

.cdp-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.cdp-footer__total {
    font-size: .9rem;
    color: #555;
}

.cdp-footer__total strong {
    display: block;
    font-size: 1.1rem;
    color: #111;
}

.cdp-breakdown {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.cdp-breakdown__sheet {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
    overflow: auto;
    padding: 16px 18px 24px;
}

.cdp-breakdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cdp-breakdown__head h4 {
    margin: 0;
    font-size: 1rem;
}

.cdp-breakdown__close {
    border: 0;
    background: #f5f5f5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.cdp-breakdown__sub {
    font-size: .85rem;
    color: #666;
    margin: 0 0 10px;
}

.cdp-breakdown__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.cdp-breakdown__table th,
.cdp-breakdown__table td {
    padding: 8px 6px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.cdp-breakdown__table th:last-child,
.cdp-breakdown__table td:last-child {
    text-align: right;
}

.cdp-breakdown__empty {
    color: #888;
    font-size: .85rem;
}

.dm-product-summary {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #fff8e1;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    font-size: .82rem;
}

.dm-product-summary ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.dm-product-summary li {
    margin-bottom: 2px;
}

.cdp-money-panel .donate-box__choose {
    margin-top: 0;
}
