.pgco-calculator {
    display: flex;
    flex-direction: column;
    gap: 24px;

    .pgco-calculator-form {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;

        label {
            position: relative;
            display: flex;
            flex-grow: 1;

            input {
                position: relative;
                background: transparent;
                border-radius: 0;
                padding: 8px 12px;
                border: 1px solid #cccccc;
				flex-grow: 1;

                &:focus {
                    outline: none;
                    border-color: var(--calculator-primary-color);
                }
            }

            span {
                text-wrap: nowrap;
                height: 100%;
                border: 1px solid #cccccc;
                display: flex;
                padding: 12px 16px;
                -webkit-transition: all 100ms linear;
                -moz-transition: all 100ms linear;
                transition: all 100ms linear;
                font-size: 14px;
            }

            span.field_label {
                border-left: 0;
            }

            span.field_unit {
                border-right: 0;
                font-size: 12px;
            }

            &:has(input:focus) {
                span {
                    color: var(--calculator-primary-color);
                    border-color: var(--calculator-primary-color);
                }
            }
        }
    }

    .pgco-calculator-result {
        display: flex;
        justify-content: center;
        background: var(--calculator-primary-color);
        width: fit-content;
        margin-inline: auto;
        padding: 8px 12px;
        color: #FFF;
        align-items: end;
        line-height: 1;
        gap: 4px;

        .counter {
            font-size: 20px;
        }

        .unit{
            font-size: 12px;
            opacity: 0.6;
        }
    }
}