.wccp-redemption-form {
    background: #f8f8f8;
    border: 1px solid #e3e3e3;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.wccp-redemption-form__balance {
    margin-bottom: 15px;
    font-size: 16px;
}

.wccp-redemption-form__value {
    color: #2271b1;
}

.wccp-redemption-form__input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.wccp-redemption-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.wccp-redemption-form__input {
    flex: 1 1 auto;
    min-width: 100px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.wccp-redemption-form__button,
.wccp-redemption-form__remove {
    flex: 0 0 auto;
}

.wccp-redemption-form__hint {
    margin-top: 8px;
    font-size: 13px;
    color: #646970;
}

.wccp-redemption-form__equivalent {
    margin-top: 10px;
    font-weight: 600;
}

.wccp-redemption-form__message {
    margin-top: 10px;
}

.wccp-points-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f8f8;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
}

.wccp-points-balance__value {
    color: #2271b1;
    font-size: 1.2em;
}

.wccp-points-history {
    margin-top: 20px;
}

.wccp-points-history__title {
    margin-bottom: 15px;
}

.wccp-points-history__group {
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.wccp-points-history__toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    background: #f8f8f8;
    border: none;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wccp-points-history__toggle:hover,
.wccp-points-history__toggle[aria-expanded="true"] {
    background: #f0f0f0;
}

.wccp-points-history__toggle-icon {
    font-size: 18px;
    line-height: 1;
    margin-left: 10px;
}

.wccp-points-history__panel {
    background: #fff;
    padding: 15px;
}

.wccp-points-history__panel[hidden] {
    display: none;
}

.wccp-points-history__table {
    width: 100%;
    border-collapse: collapse;
}

.wccp-points-history__table th,
.wccp-points-history__table td {
    padding: 10px;
    border-bottom: 1px solid #e3e3e3;
    text-align: left;
}

.wccp-points-history__total {
    margin-top: 20px;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    overflow: hidden;
}

.wccp-points-history__total-table {
    width: 100%;
    border-collapse: collapse;
}

.wccp-points-history__total-table td {
    padding: 12px 15px;
    background: #f8f8f8;
}

.wccp-points-history__total-table td:last-child {
    text-align: right;
    font-size: 1.2em;
    color: #2271b1;
}

.wccp-points {
    font-weight: 600;
}

.wccp-points.positive {
    color: #2271b1;
}

.wccp-points.negative {
    color: #d63638;
}

.wccp-redemption-form--cart-totals {
    padding: 12px 0;
    margin-bottom: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e3e3e3;
    border-radius: 0;
}

.wccp-redemption-form--cart-totals .wccp-redemption-form__balance {
    margin-bottom: 8px;
    font-size: 14px;
}

.wccp-redemption-form--cart-totals .wccp-redemption-form__input-label {
    margin-bottom: 5px;
    font-size: 14px;
}

.wccp-redemption-form--cart-totals .wccp-redemption-form__row {
    gap: 8px;
}

.wccp-redemption-form--cart-totals .wccp-redemption-form__input {
    padding: 6px 8px;
    min-width: 80px;
}

.wccp-redemption-form--cart-totals .wccp-redemption-form__button,
.wccp-redemption-form--cart-totals .wccp-redemption-form__remove {
    padding: 6px 12px;
    font-size: 13px;
}

.wccp-redemption-form--cart-totals .wccp-redemption-form__hint,
.wccp-redemption-form--cart-totals .wccp-redemption-form__equivalent,
.wccp-redemption-form--cart-totals .wccp-redemption-form__message {
    margin-top: 6px;
    font-size: 13px;
}

.wccp-redemption-form--cart-totals .wccp-redemption-form__applied {
    margin: 0;
}

.wccp-redemption-form--cart-totals .wccp-redemption-form__applied p {
    margin: 0 0 8px;
}

@media (max-width: 600px) {
    .wccp-redemption-form__row {
        flex-direction: column;
    }

    .wccp-redemption-form__input,
    .wccp-redemption-form__button,
    .wccp-redemption-form__remove {
        width: 100%;
    }
}
