@import "../../../templates/multi-step/theme";

$line-space: v-space(3);

.c-payment-ledger {
    &__horizontal-line {
        @extend %multi-step-form-horizontal-line;
        grid-column: 1 / -2;
    }

    &__price-label,
    &__sponsor-label,
    &__total-label {
        @extend %heading-sm;
        grid-column: 1 / -2;
        color: $grey-50;
        font-weight: $font-weight-normal;
        margin-bottom: v-space(2);
        line-height: $line-space;
        display: grid;
        grid-template-columns: 3fr 1fr;
    }

    &__price-value,
    &__sponsor-value,
    &__total-value {
        @extend %number-value-sm;
        text-align: right;
        font-weight: $font-weight-normal;
        line-height: $line-space;
        align-self: start;
        margin: 0;
    }

    &__price-value,
    &__total-value {
        position: relative;

        &:before {
            content: '$ ';
        }

        &--free:before {
            display: none;
        }

    }

    &__price-detail {
        @extend %caption;
        font-style: italic;
        margin-bottom: 0;
    }

    &__total-label {
        margin-bottom: v-space(6);
    }

    &__price-value {
        &:after {
            @extend %caption;
            content: 'USD';
            position: absolute;
            right: 0;
            top: -#{v-space(2)};
            margin: 0;
        }
    }

    &__sponsor-label {
        font-weight: $font-weight-bold;
    }

    &__sponsor-value {
        font-weight: $font-weight-semibold;
        color: $watermelon;
    }
}
