.collection-gateway-panel { margin-bottom: 14px; padding: 14px; border: 1px solid #e4b84d; border-radius: 10px; background: #fffcf3; font-size: 13px; }
.collection-gateway-panel[hidden] { display: none; }
.collection-gateway-panel h3 { margin: 0 0 8px; }
.collection-gateway-attempt { border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px; overflow-wrap: anywhere; }
.collection-gateway-attempt button { margin: 4px; }
.collection-page {
    min-height: 100%;
    padding: 16px 14px 112px;
    background: #f5f7f5;
    color: #26332b;
    box-sizing: border-box;
}

.collection-demo-notice {
    margin-bottom: 12px;
    padding: 9px 12px;
    border: 1px solid #e4b84d;
    border-radius: 8px;
    background: #fff8dc;
    color: #654c0d;
    font-size: 12px;
    line-height: 1.4;
}

.collection-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #173f2a 0%, #2e6b49 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(27, 76, 49, 0.18);
}

.collection-summary img {
    width: 68px;
    height: 68px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
}

.collection-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #ccebd7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.collection-summary h2 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
}

.collection-summary p {
    margin: 6px 0 0;
    color: #e6f4eb;
    font-size: 12px;
}

.collection-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 18px 0 12px;
    padding: 4px;
    border-radius: 10px;
    background: #e3e9e5;
}

.collection-tab {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #536159;
    font-weight: 700;
}

.collection-tab.is-active {
    background: #fff;
    color: #17492e;
    box-shadow: 0 2px 8px rgba(25, 52, 35, .1);
}

.collection-state {
    padding: 48px 20px;
    text-align: center;
    color: #66736b;
}

.collection-state h3 {
    margin: 12px 0 4px;
    color: #2d3931;
}

.collection-state p {
    margin: 8px 0;
    line-height: 1.5;
}

.collection-error {
    color: #9c2e2e;
}

.collection-secondary-button {
    min-height: 40px;
    margin-top: 10px;
    padding: 0 20px;
    border: 1px solid #2e6b49;
    border-radius: 8px;
    background: #fff;
    color: #24583c;
    font-weight: 700;
}

.collection-select-all {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 4px;
    color: #425148;
    font-size: 13px;
    font-weight: 700;
}

.collection-select-all input,
.collection-bill-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #2e6b49;
}

.collection-list {
    display: grid;
    gap: 10px;
}

.collection-bill {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 15px;
    border: 1px solid #dce4df;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(30, 55, 38, .06);
}

.collection-bill.is-overdue {
    border-left: 4px solid #d75454;
}

.collection-bill-main h3 {
    margin: 0 0 4px;
    color: #26332b;
    font-size: 15px;
}

.collection-bill-main p {
    margin: 0;
    color: #778179;
    font-size: 12px;
    line-height: 1.45;
}

.collection-bill-amount {
    color: #173f2a;
    font-size: 15px;
    white-space: nowrap;
}

.collection-status {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e9f6ed;
    color: #267342;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.collection-status.is-overdue {
    background: #fdeaea;
    color: #b13636;
}

.collection-status.is-paid {
    background: #e7effb;
    color: #315f9b;
}

.collection-receipt-button {
    grid-column: 2 / 4;
    justify-self: start;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: #246443;
    font-size: 12px;
    font-weight: 700;
}

.collection-checkout {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #dce4df;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -6px 18px rgba(24, 48, 31, .1);
}

.collection-checkout span {
    display: block;
    margin-bottom: 3px;
    color: #6c776f;
    font-size: 11px;
}

.collection-checkout strong {
    color: #173f2a;
    font-size: 18px;
}

.collection-checkout button {
    min-width: 132px;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #2e6b49;
    color: #fff;
    font-weight: 700;
}

.collection-checkout button:disabled {
    background: #a8b2ab;
    color: #eef1ef;
}

@media (max-width: 360px) {
    .collection-summary img {
        width: 54px;
        height: 54px;
    }

    .collection-checkout button {
        min-width: 116px;
    }
}
