.input {

    // Optional leading icon; --wpmcs-input-pl lets compact overrides keep the room.
    .field {
        position: relative;
    }
    .icon {
        position: absolute;
        left: 14px;
        top: 50%;
        z-index: 1;
        display: flex;
        color: #8c8f94;
        transform: translateY(-50%);
        pointer-events: none;
    }
    .withIcon {
        --wpmcs-input-pl: 42px;
    }
    .withIcon :global(.selectInput-__value-container) {
        padding-left: 40px;
    }
    margin-bottom: 15px;
    position: relative;
    label {
        font-style: normal;
        font-weight: 400;
        font-size: 16px;
        line-height: 1.2;
        color: $primary_color;
        margin-bottom: 10px;
        display: inline-block;
    }
    .select {
        position: relative;
    }
    .selectWithCapsule {
        :global(.selectInput-__single-value) {
            margin: 0;
            max-width: 100%;
        }
    }
    .singleValueWithCapsule {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        max-width: 100%;
    }
    .singleValueLabel {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        flex: 1;
    }
    .valueCapsule {
        display: inline-flex;
        flex-shrink: 0;
        align-items: center;
        padding: 3px 10px;
        border-radius: 999px;
        background-color: rgba($secondary_color, 0.05);
        border: 1px solid #e7e7e7;
        code {
            font-family: monospace;
            font-size: 12px;
            line-height: 1.2;
            color: $primary_color;
            background: none;
            padding: 0;
        }
    }

    input {
        width: 100%;
        padding: 15px 20px;
        outline: none;
        border: 1px solid rgba(#000, 0.25);
        border-radius: 8px;
        background-color: transparent;
        font-style: normal;
        font-weight: 400;
        font-size: 16px;
        line-height: 1.2;

        color: $primary_color;
        transition: 0.3s ease all;
        box-shadow: none;
        &:focus {
            transition: 0.3s ease all;
            border: 1px solid $secondary_color;
            outline: none;
            box-shadow: none;
        }
    }
    p.error {
        font-style: normal;
        font-weight: 400;
        font-size: 12px;
        line-height: 1.2;
        color: rgb(192, 0, 0);
        margin-top: 3px;
        position: absolute;
        top: 100%;
        right: 0;
    }
}
