.ppbs-widget {

    margin-bottom: 20px;

    .product-field-wrapper {
        &.error {
            .error {
                display: block !important;
                background-color: #fe3030;
                color: white;
                padding: 5px 10px;
                text-align: center;
                font-weight: bold;
            }
        }
    }

    .product-fields-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        box-sizing: border-box;
        width: 100%;
    }

    .product-field-wrapper, .total-area {

        .info-circle {
            display: inline-block;
            width: 20px;
            height: 20px;
            line-height: 20px;
            background-color: black;
            border-radius: 50%;
            position: relative;
            margin-left: 5px;
            cursor: pointer;

            &:before {
                content: "i";
                font-family: Arial, sans-serif;
                font-size: 12px;
                color: #fff; /* Text color, you can change it as needed */
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }
        }

        .field-input-group {
            position: relative;

            .ppbs-spinner {
                position: absolute;
                top: 0;
                right: 50px;
                width: 30px;
                height: 100%;

                button {
                    border: 1px solid #666;
                    background-color: white;
                    padding: 0;
                    width: 100%;
                    height: 50%;
                    line-height: 100%;
                    i {
                        font-size: 14px;
                    }
                }
            }

            input.spin {
                padding-right: 40px;
            }
        }

        .field-name {
            display: flex;
            align-items: center;
            position: relative;

            .active, &:hover {
                .dimension-image {
                    display: block !important;
                    position: absolute;
                    bottom: 30px;
                    left: 0;
                    border:1px solid #666;
                    z-index:1000;
                }
            }
        }

        .product-field-unit {
            position: absolute;
            right: 0;
            top: 0;
            height: 45px;
            width: 50px;
            line-height: 45px;
            border:1px solid #666;
            border-left: none;
            text-align: center;
        }

        input {
            text-align: center;
        }

        input, select {
            border: 1px solid #666;
            width: calc(100% - 50px);
            padding: 0px 0px 0px 5px;
            height: 45px;
        }

        input:focus, select:focus {
            outline: none;
            border: 2px solid #1d93ab !important;
        }
    }
}

.unit-selector {
    display: flex;
    gap: 10px;
    margin: 10px 0 10px 0;
    cursor: pointer;

    .unit-button {
        padding: 4px 10px;
        border:1px solid #666;
        border-radius: 5px;
        color: #666;
        background-color: white;
    }

    .unit-button.selected {
        border: 2px solid #1d93ab;
        font-weight: 600;
        color:#222;
    }
}